[web2py] Noob Question. How do I make an external link?

2012-05-01 Thread zounds
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

[web2py] Noob question

2011-08-16 Thread Furqan Rauf
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

Re: [web2py] Noob question - Choices definition in Field - DAL

2011-08-14 Thread Martín Mulone
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 =

[web2py] Noob question - Choices definition in Field - DAL

2011-08-13 Thread ram
Is it possible to this using DAL, using Field definition? role = db.StringProperty(required=True, choices=set([executive, manager, producer])) Best regards Ram