Hi Folks,

I am implementing a list:reference table but it should not allow empty
values. How can I do that? I have tried using a list [ ] but I lost my
multiselect box, I don't want that, and then I have tried to use _and= but
I got
<type 'exceptions.NotImplementedError'>

Doesn't allow an empty value shouldn't be default in IS_IN_DB?

db.define_table('site',
    Field('name'),
    format='%(name)s')

db.define_table('another_table',
Field('site', 'list:reference site', requires=IS_IN_DB(db,'site.id
','%(name)s',multiple=True,_and=IS_NOT_EMPTY())),
)

Thanks in advance,

Tito

-- 

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to