... but you can use jquery plugin multiselect which comes by default
if you install plugin_wiki.

On Dec 15, 12:38 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Sorry you cannod use the SQLFORM.widgets.checkboxes.widget  with a
> list:reference
>
> On Dec 15, 12:11 pm, Luis Díaz <diazluis2...@gmail.com> wrote:
>
> > is't code:
>
> > db.define_table('tag',
> >     Field('nombre', 'string', length=32, ondelete='CASCADE'),
> >     format='%(nombre)s'
> > )
>
> > db.define_table('producto',
> >     Field('nombre', 'string', length=64, ondelete='CASCADE'),
> >     Field('codigo', 'string', length=10),
> >     Field('tag', 'list:reference tag'),
> >     Field('descripcion', 'text', length=512),
> >     Field('faq', 'text', length=256),
> >     Field('precio', 'decimal(6,2)'),
> >     Field('user', db.auth_user, default=id_user, writable=False,
> > readable=False),
> >     format = '%(nombre)s'
> > )
>
> > db.producto.tag.widget = SQLFORM.widgets.checkboxes.widget
>
> > error:
> > 'int' object has no attribute 'split'
>
> > Version 1.89.5 (2010-11-21 22:12:54)
>
> > --
> > Díaz Luis
> > TSU Analisis de Sistemas
> > Universidad de Carabobo
>
> >http://web2pyfacil.blogspot.com/
> > Facultad de 
> > Odontología<http://www.odontologia.uc.edu.ve/index.php?option=com_content&view=ar...>
>
>

Reply via email to