[web2py] Virual Field is not working

2012-06-11 Thread Suresh
te.name.requires = IS_NOT_IN_DB(db, db.state.name) db.state.name.requires = IS_NOT_EMPTY() #db.state.country_id.writable = db.state.country_id.readable = False db.state.country_id.requires = IS_IN_DB(db, db.country.id, '%(name)s') db.state.namecountryid.requires = IS_NOT_IN_DB(db, db.state.namecountryid) Last statement does not work. Please help. Suresh

[web2py] Re: Virual Field is not working

2012-06-12 Thread Suresh
) db.state.fullname.compute = lambda row: str(row.country_id)+row.name 1. db.state.fullname.compute doesnot work at all. 2. if I use Field('full_name',compute=lambda row: row.country_id, unique=True), for some reason it does *NOT* access country_id properly. Please Help. Regards.

[web2py] Re: Virual Field is not working

2012-06-14 Thread Suresh
The problem is solved. I have to insert state_id with each insert of record, default doesn't work. Thank you for the help. Suresh On Wednesday, June 13, 2012 7:50:40 PM UTC+5:30, Suresh wrote: > > Thank you very much for your reply. > > I am attaching the file db.py. I hav

[web2py] IDE for using web2py on windows

2014-08-10 Thread Suresh Mali
Am new to web2py looking for better IDE support been using spyder for my other work on windows. Can I continue to use same or need to move to some other IDE? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] Web2py vs ruby on rails for a startup?

2014-08-10 Thread Suresh Mali
I am trying to zero on web framework for our startup, requirements a. Security ( we are working on financial info hence this is important) b. Good way of accessing algos/data of python Machine learning programs c. Low cost of hosting and development (a strartup with not much funds :-) looking

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-11 Thread Suresh Mali
Thank you every one.. I got taste of great community!! very helpful answers everyone... My confidence in web2py has increased. will make decision in couple of days and will be frequenter to the group -Suresh On Sunday, August 10, 2014 12:13:02 PM UTC+5:30, Suresh Mali wrote: > >