[web2py] Re: Auth on GAE silently fails to login

2010-01-16 Thread Carl
Additional information... In thinking that perhaps GAE hadn't delete *all* my data and hence had hidden corruption I looked at an earlier version of my app. GAE allows me to run different versions of an app against the same database (big table data). I ran my previous version that is built on

[web2py] Why id=0 is not assessible by [0]

2010-01-16 Thread KMax
Hello Lets define at db.py db.define_table ('a', SQLField('a')) And lets insert to this table (not by web2py admin panel) sqlite insert into a values(0,0); And then def test(): return dict(message=db.a[0].a) --- Will give: Traceback (most recent call last): File

[web2py] Is web2py configured to listen on localhost only?

2010-01-16 Thread vfclists
I just installed web2py and it is connecting on localhost only. Is it necessary to configure it to listen on the external IP address as well? /vfclists -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: Why id=0 is not assessible by [0]

2010-01-16 Thread mdipierro
id starts counting a zero. It is not a rule but a convention in SQL. web2py makes sure it is followed. Massimo On Jan 16, 7:42 am, KMax mkostri...@gmail.com wrote: Hello  Lets define at db.py db.define_table ('a',     SQLField('a')) And lets insert to this table (not by web2py admin panel)

[web2py] Re: Is web2py configured to listen on localhost only?

2010-01-16 Thread mdipierro
You have to use web2py.py -i 0.0.0.0 -p 80 instead of web2py.py -i 127.0.0.1 -p 8000 you can use 0.0.0.0 in the startup widget as well. On Jan 16, 4:58 am, vfclists vfcli...@googlemail.com wrote: I just installed web2py and it is connecting on localhost only. Is it necessary  to configure

[web2py] jQuery to Zoho

2010-01-16 Thread Jonathan Lundell
Some of you may have gotten a message like this today. I pass it along a) because the subject of GGroups has been a topic here, and b) because of the note about their having moved all their old discussions to the new system, a big plus. OTOH, I have no experience at all with Zoho The

[web2py] Re: jQuery to Zoho

2010-01-16 Thread Yarko Tymciurak
to put some context on this: http://discussions.zoho.com/pricing On Jan 16, 11:43 am, Jonathan Lundell jlund...@pobox.com wrote: Some of you may have gotten a message like this today. I pass it along a) because the subject of GGroups has been a topic here, and b) because of the note about

[web2py] Re: Why id=0 is not assessible by [0]

2010-01-16 Thread KMax
So, I make a resume. Using zero id was bad idea. Thank you. On 16 янв, 23:16, mdipierro mdipie...@cs.depaul.edu wrote: id starts counting a zero. It is not a rule but a convention in SQL. web2py makes sure it is followed. Massimo -- You received this message because you are subscribed to the

[web2py] Re: Why id=0 is not assessible by [0]

2010-01-16 Thread mdipierro
The fact is you should not be able to choose the value of the ID of a new record. if you an auto increment fiels starting at 1 (which is the default for many SQL implementations). Massimo On Jan 16, 1:38 pm, KMax mkostri...@gmail.com wrote: So, I make a resume. Using zero id was bad idea.

[web2py] Re: Why id=0 is not assessible by [0]

2010-01-16 Thread KMax
I note about force id value on insert: sqlite insert into a values(0,0); Yes, it is hack. Yes, I was trying to cheat with id for my own reasons. And then I was surprised that db.a[0].a does not exist while db.a[1].a is. Looking in to the sourcecode does not give me the answer 'Why' due to luck of

[web2py] Re: restore db tcp connection

2010-01-16 Thread KMax
remider On 20 дек, 23:25, mdipierro mdipie...@cs.depaul.edu wrote:  Please remind me when the new DAL is out (in 2-3 weeks) so you test it. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: restore db tcp connection

2010-01-16 Thread mdipierro
currently, if you are pooling connections and a connection is closed by the DB, one request will fail badly (no rollback bacause the connection is closed) and the connection does not go in pool again so the error should be very rare. Do you experience this problem frequently? What kind of

[web2py] Re: New with web2py here

2010-01-16 Thread mdipierro
In web2py we do not have the concept of a project. We have applications. Each application is a subfolder under applications. With other frameworks the concept of a project is needed because there is a single place where the project is configured (such as database uri). In the case of web2py there

Re: [web2py] Re: New with web2py here

2010-01-16 Thread Thadeus Burgess
I also will have one version of web2py and simlink my projects to the applications folder. So for example my web2py blog actually resides in /home/thadeusb/Workspace/Web/ThadeusB/ Here you find the following folders - docs - src -- databases/models/controllers/views/static/etc... I have

[web2py] Re: Anybody going to PyCon?

2010-01-16 Thread John Heenan
On Jan 16, 5:33 pm, mdipierro mdipie...@cs.depaul.edu wrote: Back to PyCon. Rejecting all web2py talks for 3 years in a row is not a fluke. We do have more users that some of the projects that will be talked about at PyCon 2010. Just check

[web2py] Left (outer) Joins revisited

2010-01-16 Thread Julio
This one is on MySQL by I believe this is also happening in Postgres based on previous searches in the groups, the problem appears to be in the parsing of the ORM code Consider the following controller code: # Grab all questions questions = db( (db.questions.is_visible==True) \

[web2py] from the book: programming g. app engine

2010-01-16 Thread Peterle
Several major frameworks for Python work well with App Engine. Django, Pylons, web2py, and CherryPy work as is or with the help of an adapter component, and some frameworks (such as web2py) have added explicit support for App Engine. -- You received this message because you are subscribed to the

[web2py] Determine the return type

2010-01-16 Thread Thadeus Burgess
What is the best way to determine if your controller is returning a dict for a view to be rendered or straight content (like a file or csv data or RPC result) ? -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py] Disadvantage of the comment / tagging mechanism for foreign keys

2010-01-16 Thread Thadeus Burgess
So there is a major disadvantage for using the following format for keeping track of foreign keys in things like comments plugin and tagging plugin db.define_table('comments_link', Field('table_name'), Field('record_id'), Field('comment_id', db.comment), ) SO you end up with the following csv

[web2py] Re: Anybody going to PyCon?

2010-01-16 Thread mikech
Well, maybe next year. Massimo, do try again. On Jan 16, 4:30 pm, John Heenan johnmhee...@gmail.com wrote: On Jan 16, 5:33 pm, mdipierro mdipie...@cs.depaul.edu wrote: Back to PyCon. Rejecting all web2py talks for 3 years in a row is not a fluke. We do have more users that some of the