Fixed. 1.88.2 but please check it

On Oct 29, 3:47 pm, Martín Mulone <mulone.mar...@gmail.com> wrote:
> I mail you the app.
>
> this is the app
>
> *in db.py*
>
> db.define_table('posts',
>  Field('id', 'id'),
>  Field('title', 'string', length=255),
>  Field('keywords', 'list:string'),
>  migrate=True)
>
> posts = db(db.posts.id>0).select()
> if not posts:
>     nid=db.posts.insert(title="The Moon",keywords=['moon','space','dark'])
>     nid=db.posts.insert(title="The
> Earth",keywords=['earth','blue','humans'])
>
> *in controller/default.py*
>
> posts=db(db.posts.keywords.contains('moon')).select()
> return dict(posts=posts)
>
> Now in this version return nothing, and in previous version work.
>
> 2010/10/29 Martín Mulone <mulone.mar...@gmail.com>
>
>
>
> > Massimo, seems there are a problem with list: string, and using contains.
> > Iam going to make an example. Or do you change anything about using contains
> > in list string?. Because sentence like
> > db(db.posts.keywords.contains('tag')).select() is returning nothing
>
> > 2010/10/29 mdipierro <mdipie...@cs.depaul.edu>
>
> > Give it a try...
>
> >> Changelog
> >> ## 1.88.1
> >> - better list: string support, thanks Bob
> >> - jquery 1.4.3
> >> - scripts/autoroutes.py
> >> - new admin wizard
> >> - added retrieve_username to navbar (if username)
> >> - internal rewrite for arbitrary paths (abspath), thanks Jonathan
> >> - populate support for list: and decimal, thanks Chirstian
> >> - markmin2latex has extra attribute
> >> - better mercual admin allows list of files, versions and retrieve
> >> - new error report system, thanks Thadeus and Selecta
> >> - SQLFORM.accepts(detect_record_change).record_changed
> >> - fixed cron for bytecode compiled apps, thanks Álvaro J. Iradier Muro
> >> - other bugs fixes and pep8 compliant fixes
>
> > --
> > My blog:http://martin.tecnodoc.com.ar
> > My portfolio *spanish*:http://www.tecnodoc.com.ar
> > Checkout my last proyect instant-press:http://www.instant2press.com
>
> --
> My blog:http://martin.tecnodoc.com.ar
> My portfolio *spanish*:http://www.tecnodoc.com.ar
> Checkout my last proyect instant-press:http://www.instant2press.com

Reply via email to