I forgot, this is my code: db.define_table('opening_time', Field('restaurant', 'reference restaurant'), Field('start_time', 'time'), Field('end_time', 'time'), Field('days', 'list:string') )
db.opening_time.days.requires = IS_IN_SET(('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')) On Sat, 2014-03-29 at 14:50 +0200, Jason Brower wrote: > I would love to have a list set with strings but I am able to define if > they should be of a certain string type. > Does this already exist and I did it wrong, or would this be a good idea > to implement. > BR, > Jason Brower > -- 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.