[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
I will elaborate. I have 2 different interest: The first one has to do with my personal feeling of understanding the inner-workings of the implementation of messaging options in web2py, on the architectural level. I do NOT want to re-invent the weal by any means, but I do want to understand th

Re: [web2py] Re: web2py shell vs terminal shell

2013-04-07 Thread Nico Zanferrari
Yes, Massimo already explained this in the past, and I've added this note on http://web2py.com/books/default/chapter/29/03#Design (under the Shell paragraph): Be careful using the web based shell - because different shell requests will be executed in different threads. This easily gives errors, es

[web2py] PAM + Kerberos + LDAP Problem

2013-04-07 Thread Apoorve Mohan
Hi All I am using PAM to login into my website. I have configured my system PAM with LDAP and KERBEROS. Now the problem I am facing is that not all my users are able to login using that service. I also checked my KERBEROS setting using KINIT command and I was able to successfully authenticat

[web2py] making your web2py application online

2013-04-07 Thread aabhas majumdar
i have my college site (web.iiit.ac.in/~aabhas.majumdar), i need to make web2py project go online on that site .What is the procedure and what are the things i need to check or install ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

[web2py] cookies related

2013-04-07 Thread dave Zeng
Hi, I am new to Web dev, and my question seems not web2py specific, but i am using web2py framework, so i am hoping i can get helpful input from the community, thanks in advance. i have 2-page website, the first page is to collect user's input and remember user's input(via cookies to reme

[web2py] Re: preserve search criteria in sqlform.grid after component reLOAD

2013-04-07 Thread Niphlod
you have to pass the keywords fragment to the page ... On Saturday, April 6, 2013 11:39:22 PM UTC+2, Tim Richardson wrote: > > I have a SQLFORM.grid for a table. The user can modify a boolean flag via > an ajax call, which returns javascript causing the grid to reLOAD. > When doing the reload, h

[web2py] Fail to add entry to list:reference field

2013-04-07 Thread Spring
Hello there, I'm using a list:reference type field (f_keypersons in the code below). Having two issues here: 1. When adding/editing a record the dropdown appears on the corresponding field with correct options, but NO "+/-" sign as usual list fields. 2. After select one option value and submit

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
As for the Tornado-web-socket example, I looked at the code, and couldn't figure out how this would work in a production environment... Does it spawn a separate python interpreter for Tornado? If so, how does it meld with we2py's controllers? It is unclear how this works... What serves the Tornad

Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-07 Thread António Ramos
Can you check again Massimo in the app i posted? controller default - Action trabalhador Thank you António 2013/4/6 António Ramos > Sorry i meant trabalhador > > Action trabalhador > Thank you > No dia 06/04/2013 17:31, "Massimo Di Pierro" > escreveu: > > Sorry I cannot find action "empreit

Re: [web2py] Re: database is locked

2013-04-07 Thread vince
from my experience if u running web2py on apache with mod_wsgi u will get database locked more often than running web2py alone with it's buildin webserver. u should also avoid using session on sqlite database. On Saturday, April 6, 2013 11:14:16 PM UTC+8, BlueShadow wrote: > > I know that I wi

[web2py] Re: cookies related

2013-04-07 Thread Anthony
> > 1. i am using session to transfer user's input from first page to > second page via 'redirect', but i don't want to maintain session in > filesystem or DB, while seems it's not feasible for web2py, as i tested, > there are session files in session directory. so, is it possible to use >

[web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread Anthony
> > Field('f_keypersons', type='list:reference t_contacts', requires= > IS_IN_DB(db, 't_contacts.id', '%(f_name)s'), For list:reference fields, it should be IS_IN_DB(..., multiple=True). Actually, you shouldn't need to set the "requires" attribute explicitly anyway because you will get IS_

[web2py] Re: Server-Sent Events

2013-04-07 Thread Niphlod
On Sunday, April 7, 2013 1:51:11 PM UTC+2, Arnon Marcus wrote: > > As for the Tornado-web-socket example, I looked at the code, and couldn't > figure out how this would work in a production environment... > Does it spawn a separate python interpreter for Tornado? > yes, it's very clear that th

[web2py] Re: auth.user.id in restful api

2013-04-07 Thread Philipp Müller
Hello, yes, all the methods are decorated with @requires_login(). The login itself is not the problem, that works fine. The issue is, that I want to return user-specific results in my api. Exposing one table by writing something along the lines of: @request.restful() @auth.requires_login() def

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread 冷春辉
Hi Anthony, I read in the book that "requires' will be set by default for "list:reference". I tried this, and the output is the same as with IS_IN_DB(..., multiple=True), which is a multiple item box listing all options as shown in the pic below: [image: Inline image 1] And I still don't understan

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
10x Niphlod Have you read my previous comment? the one just before the one you commented on? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubs

[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread Massimo Di Pierro
It you could post a path on google code or a pull request on github it sould be best so there is a record and I will not forget. On Saturday, 6 April 2013 23:16:29 UTC-5, 黄祥 wrote: > > no worries, should i commit it into github or just send you the files? i > have malay language translation too,

[web2py] Re: making your web2py application online

2013-04-07 Thread Massimo Di Pierro
You need to contact your system administrator. Usually those kind of accounts (/~username) are for static files only. You can make a static file that redirects to your own machine running web2py or they can change the .htaccess config for you. Whether they will host web2py for you or not is a p

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread Massimo Di Pierro
Reference fields are long integers. >>> a = 1 >>> print a 1 >>> print repr(a) 1 >>> b = 1L >>> print b 1 >>> print repr(b) 1L read more: http://stackoverflow.com/questions/2104884/how-does-python-manage-int-and-long For practical purpose they are the same but with long integers you do not run

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread Anthony
> > > I read in the book that "requires' will be set by default for > "list:reference". I tried this, and the output is the same as with > IS_IN_DB(..., > multiple=True), which is a multiple item box listing all options as shown > in the pic below: > [image: Inline image 1] > The above looks

[web2py] Re: Server-Sent Events

2013-04-07 Thread Niphlod
yep, but you clearly have just started documenting and have a lot of ideas going around. as far as message passing between processes is concerned, you mentioned a lot of good "players". as far as message passing in a web application, there are not so many: - ajax (bi-directional, long-polling) -

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
How about engine.io? or SockJS? Most libraries have fallbacks/pollifills/shims or whatever... The thing is, it seems I would need some kind of centralized broker, if I want to share the messaging code across all use-cases, and I DO want the messages committed, in most cases, so I am not looking

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread 冷春辉
The intention is to create a list of items each of which are selected from the dropdown of referenced table, similar to 'list:string' with a "+/-" sign at the end to add another item. When click the "+/-" sign it pops another dropdown list to add new item. I photoshoped the pic below to show what I

[web2py] Re: Server-Sent Events

2013-04-07 Thread Niphlod
On Sunday, April 7, 2013 6:25:06 PM UTC+2, Arnon Marcus wrote: > > How about engine.io? or SockJS? as I was saying, you're reading too much too soon, just naming buzzwords without actually **thinking** to what you need. Engine.io is just the "protocol" for socket.io. Sockjs is another abstra

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread Anthony
> > The intention is to create a list of items each of which are selected from > the dropdown of referenced table, similar to 'list:string' with a "+/-" > sign at the end to add another item. When click the "+/-" sign it pops > another dropdown list to add new item. I photoshoped the pic below

Re: [web2py] Re: database is locked

2013-04-07 Thread Martin Weissenboeck
2013/4/7 vince > from my experience if u running web2py on apache with mod_wsgi u will get > database locked more often than running web2py alone with it's buildin > webserver. web2py + apache + mod_wsgi is my configuration. ok, I will try the internal webserver. > > u should also avoid using

[web2py] Re: making your web2py application online

2013-04-07 Thread aabhas majumdar
i found this site very useful :) http://killer-web-development.com/section/1/4 On Sunday, April 7, 2013 10:04:35 AM UTC+5:30, aabhas majumdar wrote: > > i have my college site (web.iiit.ac.in/~aabhas.majumdar), i need to make > web2py project go online on that site .What is the procedure and what

[web2py] Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread David Marko
Is there anyone testing Pyp with web2py. Is it usable now or in future as faster plarfotm? http://morepypy.blogspot.cz/2013/04/pypy-20-beta-2-released.html -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group an

[web2py] Re: Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread Niphlod
someone is using pypy for sure, as some bugs were reported and fixed. However, noone is testing it with 2.0 but you can ! On Sunday, April 7, 2013 8:17:58 PM UTC+2, David Marko wrote: > > Is there anyone testing Pyp with web2py. Is it usable now or in future as > faster plarfotm? > > http:/

[web2py] Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread Derek
i tested with 1.9. worked without scheduler. no gevent though, so i stayed away from implementing it. should work with 2.0 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, s

Re: [web2py] Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread Alfonso de la Guarda
Hi, Well i get an error unbound method __setattr__() must be called with int instance as first argument (got Reference instance instead) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. Traceback (most recent call last):

[web2py] Re: web2py with ExtJS - advice required on restructing

2013-04-07 Thread Alan Etkin
> You are right we cant get web2py form helpers but can you authentication, session management, jsonifying etc. We already have > placed extjs library and our custom developed .js in static folders, now planning to integrate all extjs into a single app. Consider using this plugin for connecting

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
Don't wan't to start a flame-fest, but I feel like I am under fire here, and unjustly so... as I was saying, you're reading too much too soon, just naming buzzwords > without actually **thinking** to what you need. > I admit I don't have experience with many of the things I was writing about,

Re: [web2py] Pypy 2.0 beta2 - is there anyone testing this with web2py?

2013-04-07 Thread Niphlod
you're right, there's a typo in dal.py. Patch sent to Massimo. On Sunday, April 7, 2013 8:54:51 PM UTC+2, Alfonso de la Guarda Reyes wrote: > > Hi, > > Well i get an error > unbound method __setattr__() must be called > with int instance as first argument (got Reference instance instead) > > 1

[web2py] Re: Wiki with Oracle?

2013-04-07 Thread Jason Phillips
The resolution of issue#1432 (submitted under my other account, I need to unify these) has now solved the first error you listed (*ORA-00904: "WIKI_TAG"."WIKI_PAGE": invalid identifier*), which was a IS_NOT_IN_DB query error of the type I

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
Here is an interesting presentation I am currently watching, describing a messaging architecture using ZeroMQ + Redis : http://www.youtube.com/watch?v=Z-4EqEZbfBM -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this g

[web2py] Difference in headers upload/download vs static file, also in auth.wiki

2013-04-07 Thread Nico de Groot
While debugging why the tag behaves differently (at least in Mac Chrome) depending on specifying (1) a static link to a soundfile or (2) using the auth.wiki syntax 2/sound.mp3 I notice quite a few differences in the headers. (1) static: The two sets of settings can be shown by using

[web2py] Re: Server-Sent Events

2013-04-07 Thread Niphlod
On Sunday, April 7, 2013 9:23:16 PM UTC+2, Arnon Marcus wrote: > > Don't wan't to start a flame-fest, but I feel like I am under fire here, > and unjustly so... > > I was not trying too, I'm just noticing how much this discussion is starting to involve a lot of things that are "offtopic". It's

Re: [web2py] plugin_mptt seems broken under 2.2.1

2013-04-07 Thread MJo
On Monday, November 19, 2012 10:45:36 PM UTC+2, Richard wrote: > > ... > > Some tests doesn't pass in plugin_mptt, mainly : > > ... > > AttributeError: 'Row' object has no attribute 'name' > > I tried to put 'name'-field to plugin_mptt_node-table (it got inserted to sqlite_sequence table) but sti

[web2py] Building Query object based on Rows avoiding 'belongs'

2013-04-07 Thread Marcin Jaworski
Hi web2py users! My environment: GAE SDK 1.7.5, web2py version 2.0.9. I need a query object as an argument for grid. I've got a database rows (ids) as the potential base for query (list_of_ids) - unfortunately there are more than 30 of them so the construct with 'belongs' does not work on GAE:

Re: [web2py] Re: How to benchmark my web2py website? I have got scary results :-/

2013-04-07 Thread Tito Garrido
Thanks Ales! On Sun, Apr 7, 2013 at 2:22 AM, LightDot wrote: > Well, It seems that terra.com.br's firewall and/or web server's security > mechanisms got you... You can't blame them, they likely have reasonably > good protections against DOS attacks and you probably forgot to tell them > to tu

[web2py] Re: Server-Sent Events

2013-04-07 Thread Arnon Marcus
I was not trying too, I'm just noticing how much this discussion is > starting to involve a lot of things that are "offtopic". It's one thing > searching for answer (and expecting them) on a specific topic and another > one to try to follow every bit of your proposed > libraries/solutions/fra

[web2py] Difficulty with auth.signature when renaming auth tables

2013-04-07 Thread Jason Phillips
When I follow what I thought to be standard practice (following this documentation) for using alternative names for the auth tables, I'm seeing an incorrect foreign key reference on any subsequent table defined that uses a

Re: [web2py] Need to automatically update a SQLFORM grid if new records are inserted in table

2013-04-07 Thread Michael Ellis
Hey Ricardo! Thanks very much for this and apologies for my tardy reply. I got pulled away onto other things and just now got back to testing it. It works beautifully. On Saturday, March 16, 2013 10:16:28 PM UTC-4, Ricardo Pedroso wrote: > > On Sat, Mar 16, 2013 at 10:42 PM, Michael Ellis > >

[web2py] Re: Difficulty with auth.signature when renaming auth tables

2013-04-07 Thread Anthony
Looks like by default, auth.signature gets defined when Auth is initialized, which is before you have set the custom table names. To avoid this do: auth = Auth(db, signature=False) In that case, auth.signature will instead be defined when you call auth.define_tables(), by which point the custo

Re: [web2py] Re: Fail to add entry to list:reference field

2013-04-07 Thread 冷春辉
Hi Anthony, I compared the layout.html against older version, the jQuery issue was resulted because I manually add: (I thought jQuery was not included in Layout.html) Removing this line solved the problem. Also I will try to build a custom widget. Thank a lot. Spring On Mon, Apr 8, 2013 at 1:0

[web2py] Re: Difficulty with auth.signature when renaming auth tables

2013-04-07 Thread Jason Phillips
Thank you so much, that solved it. (It might be helpful to others if that important caveat makes it into the relevant section of documentation at some point, though I know that not every detail can be explained succinctl

[web2py] web2py and pypy

2013-04-07 Thread Massimo Di Pierro
Thanks Niphlod, all tests passed: https://travis-ci.org/web2py/web2py/jobs/6140021 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@goo

[web2py] Re: Difficulty with auth.signature when renaming auth tables

2013-04-07 Thread Anthony
I agree -- this is certainly not obvious (had to look at the code to figure out what was going on). Anthony On Sunday, April 7, 2013 8:55:15 PM UTC-4, Jason Phillips wrote: > > Thank you so much, that solved it. > > (It might be helpful to others if that important caveat makes it into the > re

[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread 黄祥
what do you mean about post a path on google code? for github i've already forked the web2py in https://github.com and take these step, but the commit history is not update on https://github.com, is there something i've missed in my step? *git clone https://github.com/sugizo/web2py.git* *cd web2

[web2py] legacy database with reserved word field name

2013-04-07 Thread Martin Barnard
Continuing on my Oracle adventures, I have found a table which I need to access, which has an integer field called '*drop*'. For *obvious* reasons, it is disallowed. Is there any way to force this field name through the DAL (my account is read-only, so I know that I *probably* can't actually dr

[web2py] Re: Building Query object based on Rows avoiding 'belongs'

2013-04-07 Thread Christian Foster Howes
speaking without reading the docs.so i might be misguided. assuming that you can setup a grid with a rows object, you can use that patch. just & the rows together and magic will happen. the key no matter what is to setup multiple queries on GAE and & the results together, or re-imagine

[web2py] Re: auth.user.id in restful api

2013-04-07 Thread Christian Foster Howes
Philipp, i understand you nowunfortunately i have not used db.parse_as_rest so i don't know the answer... best i have is http://web2py.com/books/default/chapter/29/10?search=restful#parse_as_rest-%28experimental%29 perhaps someone can chime in with more details. good luck! cfh On Sunda

[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread Massimo Di Pierro
I cannot find these in your github fork: *git add applications/admin/languages/id.py* *git add applications/admin/languages/my.py* *git add applications/welcome/languages/id.py* *git add applications/welcome/languages/my.py* * * *Can you email them to as attachements?* On Sunday, 7 April 2013 21:0

[web2py] Re: Problem with form.process().accepted ?

2013-04-07 Thread Nguyen Minh Tuan
Thanks Anthony, When I submit with blank data, no error msg displayed. I expected error msg displayed because I set this field mandatory as below db.define_table('person', Field('personname', 'string', requires = IS_NOT_EMPTY())) I found that : if form.process().accepted: always return false

[web2py] Re: list:string type field is empty value on edit page

2013-04-07 Thread 黄祥
i've already start testing using the simple table (start from scratch) but got the same result. here is my conclusion, please correct me if i'm wrong : - if you combine list:string field with IS_IN_SET validator, in form edit you will receive blank value in drop down, not the existing value that

[web2py] Re: web2py 2.4.2 is OUT

2013-04-07 Thread Luc Chase
+ and - definitely don't work on (2, 4, 6, 'stable', datetime.datetime(2013, 4, 6, 17, 37, 38)) -- Luc. On Sunday, 10 March 2013 14:31:04 UTC, Massimo Di Pierro wrote: > > This should now be fixed. Can you check? > > On Tuesday, 5 March 2013 17:21:03 UTC-6, Ralo Tannahill wrote: >> >> +1 for w

[web2py] Re: UnicodeEncodeError on GAE

2013-04-07 Thread Spring
Encountered the same issue, removing 'str()' and it worked. Thanks 在 2012年2月16日星期四UTC+8下午10时59分28秒,sherdim写道: > > I Think it is a bug as for 1.99.4 > When a form "tries" to keep values w/ non ascii characters > > if form.accepts(request.vars,session, formname=sP, keepvalues=True): > File "C

[web2py] Re: Problem with form.process().accepted ?

2013-04-07 Thread Anthony
Is it possible that your browser isn't accepting cookies, or that you are somehow clearing the session? Without cookies, the session won't work, and by default, SQLFORM uses the session to store the _formkey token to protect against CSRF attacks. To see if that's the problem, you can try: if fo

Re: [web2py] Re: REF: Trying out matplotlib

2013-04-07 Thread Teddy Nyambe
Massimo, maybe to bring this issue to a close for me and others who may be interested in using matplotlib in the shortest future, since you have successfully used matplotlib could you post just a few lines of called addressing challenges: 1. Installation of Matplotlib On the Mac os x i did sudo p

[web2py] running a script without the opening lines

2013-04-07 Thread guruyaya
I have some script I'm running via linux cron, using web2py panel, like so web2py.py -S app -M -R application/app/scripts/myscript.py When It starts, it shows these lines: No handlers could be found for logger "web2py" web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2013 Version