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" <[email protected]> wrote:
> I don't get the logic of this problem. This problem only ocurrs in
> GAE, local works fine.
>
> I'am using the new introduce features list:string
>
> My db definition is similar to this (only the necesary):
>
> db.define_table('posts',
> db.Field('id', 'id'),
> db.Field('keywords', 'list:string'), #tags
> db.Field('fulltext', 'list:string'), migrate=true)
>
> When i changed the content with this (before i insert the record with
> no problem):
>
> posts = db(db.posts.id == id).select()
> if posts:
>         post = posts[0]
>         post.update_record(keywords = 'keywords1 keywords2')
>
> I list the db and all is fine.
>
> Then I modified the same record with this
>
> posts = db(db.posts.id == id).select()
> if posts:
>         post = posts[0]
>         post.update_record(fulltext = 'fulltext1 fulltext2')
>
> I list the db and I have:
>
> ------------> keywords = 'fulltext1 fulltext2'
>
> I am really stuck with this problem.

Reply via email to