Re: [web2py] Re: New Exception in Trunk.

2011-05-18 Thread David J.

Ross;Massimo; sometimes the most obvious solution is the best;

I just updated again and restarted; seems to be ok;

Not sure what the trouble was; seems like something was modified since 
last time I updated from trunk.


AOK;

Thanks for your help.

David


On 5/18/11 3:26 PM, Ross Peoples wrote:
Did you subclass the Auth class or something? And more importantly, 
did you restart your web2py server after updating from trunk? 




Re: [web2py] Re: New Exception in Trunk.

2011-05-18 Thread Ross Peoples
Did you subclass the Auth class or something? And more importantly, did you 
restart your web2py server after updating from trunk?

Re: [web2py] Re: New Exception in Trunk.

2011-05-18 Thread David J.

Seems to complain about auth.define_tables()

I have other table but I commented out.



On 5/18/11 11:45 AM, Massimo Di Pierro wrote:

what's in your db.py?

On May 18, 9:50 am, "David J."  wrote:

More Info...

S'Traceback (most recent call last):\n  File
"/apps/www/web2py.trunk/gluon/restricted.py", line 184, in
restricted\nexec ccode in environment\n  File
"/apps/www/web2py.trunk/applications/app/models/db.py", line 92, in
\nauth.define_tables()   # creates
all needed tables\n  File "/apps/www/web2py.trunk/gluon/tools.py", line
1179, in define_tables\nformat=\'%(first_name)s %(last_name)s
(%(id)s)\')\n  File "/apps/www/web2py.trunk/gluon/dal.py", line 4089, in
define_table\nlimits =
(int(vars.get(\'min\',0)),int(vars.get(\'max\',1000)))\n  File
"/apps/www/web2py.trunk/gluon/dal.py", line 4392, in __init__\n
\'define_table argument is not a Field or Table: %s\' %

field\nSyntaxError: define_table argument is not a Field or Table:.first_name\n'
p6516

On 5/18/11 10:48 AM, David J. wrote:








I just upgraded my trunk;
I get this exception
S"('define_table argument is not a Field or Table:.first_name',)"
Any ideas?




[web2py] Re: New Exception in Trunk.

2011-05-18 Thread Massimo Di Pierro
what's in your db.py?

On May 18, 9:50 am, "David J."  wrote:
> More Info...
>
> S'Traceback (most recent call last):\n  File
> "/apps/www/web2py.trunk/gluon/restricted.py", line 184, in
> restricted\n    exec ccode in environment\n  File
> "/apps/www/web2py.trunk/applications/app/models/db.py", line 92, in
> \n    auth.define_tables()                           # creates
> all needed tables\n  File "/apps/www/web2py.trunk/gluon/tools.py", line
> 1179, in define_tables\n    format=\'%(first_name)s %(last_name)s
> (%(id)s)\')\n  File "/apps/www/web2py.trunk/gluon/dal.py", line 4089, in
> define_table\n    limits =
> (int(vars.get(\'min\',0)),int(vars.get(\'max\',1000)))\n  File
> "/apps/www/web2py.trunk/gluon/dal.py", line 4392, in __init__\n    
> \'define_table argument is not a Field or Table: %s\' %
> field\nSyntaxError: define_table argument is not a Field or Table:  table>.first_name\n'
> p6516
>
> On 5/18/11 10:48 AM, David J. wrote:
>
>
>
>
>
>
>
> > I just upgraded my trunk;
>
> > I get this exception
>
> > S"('define_table argument is not a Field or Table:  > table>.first_name',)"
>
> > Any ideas?


[web2py] Re: New Exception in Trunk.

2011-05-18 Thread David J.

More Info...

S'Traceback (most recent call last):\n  File 
"/apps/www/web2py.trunk/gluon/restricted.py", line 184, in 
restricted\nexec ccode in environment\n  File 
"/apps/www/web2py.trunk/applications/app/models/db.py", line 92, in 
\nauth.define_tables()   # creates 
all needed tables\n  File "/apps/www/web2py.trunk/gluon/tools.py", line 
1179, in define_tables\nformat=\'%(first_name)s %(last_name)s 
(%(id)s)\')\n  File "/apps/www/web2py.trunk/gluon/dal.py", line 4089, in 
define_table\nlimits = 
(int(vars.get(\'min\',0)),int(vars.get(\'max\',1000)))\n  File 
"/apps/www/web2py.trunk/gluon/dal.py", line 4392, in __init__\n
\'define_table argument is not a Field or Table: %s\' % 
field\nSyntaxError: define_table argument is not a Field or Table: table>.first_name\n'

p6516


On 5/18/11 10:48 AM, David J. wrote:

I just upgraded my trunk;

I get this exception

S"('define_table argument is not a Field or Table: table>.first_name',)"


Any ideas?