Thanks!

On Tue, Apr 23, 2013 at 1:35 PM, Anthony <[email protected]> wrote:

> IS_IN_DB(..., multiple=(1, 1000))
>
> The multiple argument can be a list/tuple specifying the minimum and
> maximum number of items that can be selected.
>
> Anthony
>
>
> On Tuesday, April 23, 2013 11:24:47 AM UTC-4, Tito Garrido wrote:
>>
>> 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.
>
>
>



-- 

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