Hi everyone,

I'm new to web2py but learning fast, and building an online clients and 
tasks database for work, with some extra functionality. (similar to a CRM 
app...)

When I restrict the values in a table field by assigning IS_IN_SET 
directly, it works (a proper itemized dropdown list appears in the new 
records form):

in db.py: TASK_TYPES = ('Call', 'Meet', 'Email')
               db.tasks.task_type.requires=IS_IN_SET(TASK_TYPES)

BUT .... when I place the same list in appconfig.ini and call it in db.py, 
the list is no longer 3 ordered choices, but a vertical list made of all 
the characters plus brackets and quote marks...

in appconfig.ini: 
[dropdown_choices]
tasks = ('Call', 'Meet', 'Email')

in 
db.py: 
db.tasks.task_type.requires=IS_IN_SET(myconf.take('dropdown_choices.tasks'))

tried converting it to a list with ...=list(......) but the result is the 
same.

what am I doing wrong? 

thanks in advance!

Luca

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to