[web2py] Re: problem list:string in GAE

2010-09-01 Thread Martin.Mulone
Thanks Massimo, now working right! On Sep 1, 10:58 am, mdipierro wrote: > Interesting the bug is because of an off feature of GAE (at least on > localhost). If two fields are type StringListProperty they must be two > different instances of the StringListProperty class else the two > fields are j

[web2py] Re: problem list:string in GAE

2010-09-01 Thread mdipierro
Interesting the bug is because of an off feature of GAE (at least on localhost). If two fields are type StringListProperty they must be two different instances of the StringListProperty class else the two fields are just alias of each other. I did not see this documented anywhere. Massimo On Sep

[web2py] Re: problem list:string in GAE

2010-09-01 Thread mdipierro
There was a bug and I just fixed it in trunk. Also do not use posts = db(db.posts.id == 1).select() on GAE because ids are not sequential but random uuid. On Sep 1, 6:24 am, "Martin.Mulone" wrote: > * > /models/db.py > ** > > db.define_table('posts', > d

[web2py] Re: problem list:string in GAE

2010-09-01 Thread Martin.Mulone
* /models/db.py ** db.define_table('posts', db.Field('id', 'id'), db.Field('keywords', 'list:string'), #tags db.Field('fulltext', 'list:string'), migrate=True) posts=db(db.posts.id>0).select() if not posts: db.posts.insert(keywords=['key1','key2','key3'],full

[web2py] Re: problem list:string in GAE

2010-09-01 Thread Martin.Mulone
This is a writing mistake, Massimo please take a look to the application, i make it with keywords = ['keywords1','keywords2'] and the problem still there. On 1 sep, 00:21, mdipierro wrote: > there is an error right here: > > post.update_record(keywords = 'keywords1 keywords2') > > should be > >

[web2py] Re: problem list:string in GAE

2010-08-31 Thread mdipierro
there is an error right here: post.update_record(keywords = 'keywords1 keywords2') should be post.update_record(keywords = ['keywords1','keywords2']) On Aug 31, 9:45 am, "Martin.Mulone" wrote: > I don't get the logic of this problem. This problem only ocurrs in > GAE, local works fine. > > I

[web2py] Re: problem list:string in GAE

2010-08-31 Thread Martin.Mulone
I made a simple app, that show the bug, the problem is only in GAE. http://rapidshare.com/files/416295273/web2py.app.listproblem.w2p On Aug 31, 11:45 am, "Martin.Mulone" wrote: > I don't get the logic of this problem. This problem only ocurrs in > GAE, local works fine. > > I'am using the new i