Re: [web2py] Default Values.

2010-12-26 Thread Branko Vukelić
Oops. Correction: str(field.type)[:10] 2010/12/27 Branko Vukelić : > Have you tried ``str(field.type[:10])``? Just a wild guess. I think > just saying ``field.type[:10]`` would actually return a class > instance, not a string. > > On Mon, Dec 27, 2010 at 2:05 AM, David J. wrote: >> Thanks fo

Re: [web2py] Default Values.

2010-12-26 Thread Branko Vukelić
Have you tried ``str(field.type[:10])``? Just a wild guess. I think just saying ``field.type[:10]`` would actually return a class instance, not a string. On Mon, Dec 27, 2010 at 2:05 AM, David J. wrote: > Thanks for the Tips; > > Does this have sqlite have some sort of limitations? > > I seem to

Re: [web2py] Default Values.

2010-12-26 Thread David J.
Thanks for the Tips; Does this have sqlite have some sort of limitations? I seem to get this exception; Traceback (most recent call last): File "/Users/book/Desktop/python-projects/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/Users/book/Deskt

Re: [web2py] Default Values.

2010-12-26 Thread pbreit
Definitely suggest running through chapter 3 of the book (and all chapters if possible).

Re: [web2py] Default Values.

2010-12-26 Thread David J.
Thanks; just what I was looking for. On 12/26/10 6:19 PM, Bruno Rocha wrote: Field ('created_on','datetime',default=request .now), Field

Re: [web2py] Default Values.

2010-12-26 Thread Bruno Rocha
Field ('created_on', 'datetime', default=request .now), Field ('created_by', db.auth_user, default=auth.user_id), Field