[web2py:29116] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-22 Thread Jason Brower
It's ok, your still awesome. :þ Besides, hiking is something I think a lot of use should be doing on a weekend like this. (But I am programming.) Regards, Jason On Fri, 2009-08-21 at 20:28 -0700, Iceberg wrote: On Aug22, 1:11am, mdipierro mdipie...@cs.depaul.edu wrote: Note to self...

[web2py:29119] Re: Displaying variable in drop-down menu

2009-08-22 Thread Varun Kumar
db1 { field1 } db2 { field2 } db3 { field3 } db1.field1.requires = IS_IN_DB ( db2.field2 or db3.field3 ) what is the syntax for above IS_IN_DB statement ( is it possible to add drop down menu also for this command ) ? On Sat, Aug 22, 2009 at 8:20 AM, Iceberg iceb...@21cn.com wrote:

[web2py:29118] Re: Routes in GAE

2009-08-22 Thread Prabhu
Thanks Victor and Yarko. It works if I specify routes_in = (('.*:/cc/$a','/ccweb/default/$a')) or routes_out = (('/ccweb/default/$a', '/cc/$a')) If I say routes_in = (('.*:/cc/$a','/ccweb/default/$a')) routes_out = (('/ccweb/default/$a', '/cc/$a')) in routes.py, I still get the syntax error.

[web2py:29120] Re: Displaying variable in drop-down menu

2009-08-22 Thread Iceberg
On Aug22, 2:55pm, Varun Kumar varunk.ap...@gmail.com wrote: db1 {    field1} db2 {    field2} db3 {    field3 } db1.field1.requires = IS_IN_DB ( db2.field2 or db3.field3 ) what is the syntax for above IS_IN_DB statement ( is it possible to add drop down menu also for this command )

[web2py:29122] Re: Help query

2009-08-22 Thread tititi
Hi, I'm testing a similiar join query but not getting success in extracting the dictionary r = db.reviews u = db.users query = ((db.reviews.id==request.args[0]) (db.users.id==1)) left= (r.on(u.id==r.user_id)) reviews=db(query).select

[web2py:29123] Re: Problem with mysql setup in web2py with dreamhost hosting.

2009-08-22 Thread mr.freeze
I think you may need to put the database name after the port: mysql://username:passw...@server:3306/database On Aug 21, 11:33 pm, Jason Brower encomp...@gmail.com wrote: Can't seem to get this to work.  Keep's telling me I have an invlaid URI or something similar. I think it would tell me if

[web2py:29125] Re: moving database to new server results in 'auth_user' already exists

2009-08-22 Thread mr.freeze
I experienced the same error simply changing the MySQL user's password. I was able to get around it by setting migrate=False on every define_table call on my model. On Aug 20, 10:10 am, Fred fre...@gmail.com wrote: I ended up doing this: Create empty database on new server. Change db.py to

[web2py:29128] Re: Problem with mysql setup in web2py with dreamhost hosting.

2009-08-22 Thread Yarko Tymciurak
On Sat, Aug 22, 2009 at 10:23 AM, mr.freeze nat...@freezable.com wrote: I think you may need to put the database name after the port: mysql://username:passw...@server:3306/database yes - and you need to be sure you've created the empty database in advance. On Aug 21, 11:33 pm, Jason

[web2py:29127] Re: Help query

2009-08-22 Thread Yarko Tymciurak
you are doing a join accross tables; to see what the results of that select() looks like, try it from a shell, e.g. type in your select from: python web2py.py -S myapp -M Then take a look at reviews[0]; If you have ipython installed, you might like looking at it that way, as tab-completion will

[web2py:29129] Re: Help query

2009-08-22 Thread Mladen Milankovic
Hi. When you use multiple tables in a query, it return DALStorage object in DALStorage object for each table you requested. Simpler every row object is a dict which contains dict object for each table. try: {{for review in reviews:}} b{{=review.reviews.headline}}/b:

[web2py:29130] Re: postgresql error

2009-08-22 Thread ctalley
I'm just getting back to this after being on travel for a week. The path of consequence for python import statements is sys.path. import sys print sys.path [... 'C:\\Python26\\lib\\site-packages' ...] site-packages is indeed where psycopg2 is installed so no problem there. Lng story

[web2py:29131] Re: postgresql error

2009-08-22 Thread Yarko Tymciurak
Ach! Good to know - thanks... On Sat, Aug 22, 2009 at 6:18 PM, ctalley ctal...@caci.com wrote: I'm just getting back to this after being on travel for a week. The path of consequence for python import statements is sys.path. import sys print sys.path [...

[web2py:29132] Re: web2py, bigtable and the '09 DAL

2009-08-22 Thread Robin B
You can access the 'table._tableobj' which is the generated GAE Model object, however this is not a public interface and not subject to backwards compatibility. Posts = db['posts']._tableobj Posts.get_by_id(long(id)) Robin On Aug 21, 3:45 am, dlypka dly...@gmail.com wrote: Here are my GAE

[web2py:29133] Password 2 field - Using Custom on Registration.

2009-08-22 Thread Yannick
Hello mate, quick question... I'm trying to customize the Registration form using Auth. I was wondering about the Password_two field ??? here is what I'm doing but not working: {{=regform.custom.begin}} {{=regform.custom.widget.first_name}}

[web2py:29134] correct path in href?

2009-08-22 Thread jayvandal
HI, I have a controller named person I have a controller welcome. I created a def home() in welcome controller. I want to have the user go to a controller named person that has definitions for person., show_person, new_person. I was trying to use this statement below, but I don't know how to

[web2py:29135] Re: correct path in href?

2009-08-22 Thread Jonathan Lundell
On Aug 22, 2009, at 10:16 PM, jayvandal wrote: I have a controller named person I have a controller welcome. I created a def home() in welcome controller. I want to have the user go to a controller named person that has definitions for person., show_person, new_person. I was trying to