Re: [web2py] adding an item in a list:reference :

2012-04-03 Thread Manuele Pesenti
Il 02/04/2012 16:05, bussiere adrien ha scritto: ok i thought about this too. But when you have a long list that's not really nice. And it take twolines. Summon Massimo can't we make a one line methode to do that ? c'mon two lines are not too

Re: [web2py] adding an item in a list:reference :

2012-04-03 Thread Massimo Di Pierro
I guess it can be done in one line but it would not change the logic db.mytable http://db.mytable.id/[1] = dict(listfield=db.mytablehttp://db.mytable.id/ [1].listfield+[newelement]) On Tuesday, 3 April 2012 03:21:26 UTC-5, Manuele wrote: Il 02/04/2012 16:05, bussiere adrien ha scritto: ok

Re: [web2py] adding an item in a list:reference :

2012-04-02 Thread Manuele Pesenti
Il 01/04/2012 23:23, bussiere adrien ha scritto: ok i see the example : db.define_table('tag',Field('name'),format='%(name)s') db.define_table('product', Field('name'), Field('tags','list:reference tag')) a=db.tag.insert(name='red') b=db.tag.insert(name='green')

Re: [web2py] adding an item in a list:reference :

2012-04-02 Thread bussiere adrien
ok i thought about this too. But when you have a long list that's not really nice. And it take twolines. Summon Massimo can't we make a one line methode to do that ? Regards and thanks Bussiere Le lundi 2 avril 2012 10:00:23 UTC+2, Manuele a écrit

Re: [web2py] adding an item in a list:reference :

2012-04-01 Thread Kenny Chung
Im curious on this as well. Also, is list:reference valid for mysql? On Apr 1, 2012 2:23 PM, bussiere adrien bussi...@gmail.com wrote: ok i see the example : db.define_table('tag',Field('name'),format='%(name)s') db.define_table('product', Field('name'),

Re: [web2py] adding an item in a list:reference :

2012-04-01 Thread Massimo Di Pierro
Not efficient in searches but supported by all backends. On Sunday, 1 April 2012 18:30:31 UTC-5, Kenny wrote: Im curious on this as well. Also, is list:reference valid for mysql? On Apr 1, 2012 2:23 PM, bussiere adrien bussi...@gmail.com wrote: ok i see the example :