Hi Daniel, > 1. > How about custom forms - forms which are independent and are defined > in views but validation just works for them as expected. > Something like > this:http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html > Is it possible ? Does it work in a current version of web2py ?
yes. In controller def index(): form=SQLFORM(db.table) return dict(form=form) and in view {{=form.custom.begin}} <div>{{=form.custom.widget.somefield1}}</div> <div>{{=form.custom.widget.somefield2}}</div> {{=form.custom.submit}} {{=form.custom.end}} > 2. > Taglibs - is it possible to define my global custom function (with a > specified name space or something similar) with parameters which I can > call in my views ? Anything defined or imported in model files files is visible in views. You can also import modules explicitly in views {{import ....}} > 3. > Is it possible to cache only just parts of my views ? You know I would > like to create for example event calendar (using taglib function for > example) then call it in a view and be able to use some build in > web2py caching. yes. Given any function f you can cache it in views {{=cache.ram ("cache_key",f,5000)}} > 4. > How about legacy databases. Id name overriding + custom field names > overriding. Is it possible. I do not care this so much but it would be > nice to have these features included. You can access legacy databases if tables have a unique ID called it. Currently you cannot override table and field names, you must use custom views. This will be possible in the new DAL coming out soon. It is almost done. > 5. > How about database migrations + independent development and production > modes ? This is normally done by production=True if production: db=SQLDB(".. produciton db uri ...") else: db=SQLDB(".. development db uri ...") web2py will treat migrations separately automatically. > 6. > Deployment possibilities - apache or java wars with jython ... ? Since 1.64.2 it works with Jython out of the box (support sqlite and postgresql only). I am building a .war file. Let me know if you want to help testing the war file. Mind that Jython is considerably slower than CPython. Massimo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---