I have this in my db.py:
db.define_table('carrier',
Field('name',),
Field('url',),
format='%(name)s')
db.define_table('shipment',
Field('shipment_id', represent=lambda value,row: \
A(value, _href=(row.carrier.url + value, ))),
Field('carrier', db.carrier))
The
Hey guys,
I have another noob question just came to my mind while reading some online
article. Web2py implements MVC logic just like .NET MVC3 right? so why
companies shy away from using small frameworks as far as I am concern I
believe Web2py is nice for small projects and simpler than .NET (just
Field http://web2py.com/book/default/docstring/Field('gender',
requires=IS_IN_SET
http://web2py.com/book/default/docstring/IS_IN_SET(['Male',
'Female', 'Other'])),
2011/8/13 ram ramasesh...@gmail.com
Is it possible to this using DAL, using Field definition?
role =
Is it possible to this using DAL, using Field definition?
role = db.StringProperty(required=True, choices=set([executive,
manager, producer]))
Best regards
Ram
4 matches
Mail list logo