Thanks for you reply.

if you want to end up with a tuple (as VCARDID_NAVLIST is), you can convert 
> the list:reference string with:
>
>     navlist=VCARDID_NAVLIST + tuple(form.vars.navID[1:-1].split('|'))
>

I tried your solution, but got this error:

navlist=VCARDID_NAVLIST + tuple(form.vars.navID[1:-1].split('|'))
AttributeError: 'list' object has no attribute 'split'




This is the field definition in db.py:

Field('navID','list:reference 
nav',requires=IS_EMPTY_OR(IS_IN_DB(db(db.nav.id.belongs(MSITE_OPTIONS)),'nav.id','%(name)s',orderby='nav.id',multiple=(1,
 
5))),ondelete='RESTRICT'),


Kind regards,

Annet

-- 

--- 
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