SQLFORM.factory is just like SQLFORM however it does not connect to a database(meaning you don't have to have any physical models)
you use SQLFORM.factory just like db.define_table() form = SQLFORM.factory(Field('user', requires=IS_IN_DB()), Field('someotherfieldfromalargerelationship', 'boolean')) then form.accepts(request.vars, session) db[userid] = request.vars.id db[someother] where userid==userid = request.vars.someotherfieldblahblah -Thadeus On Wed, Sep 23, 2009 at 12:51 PM, Arvind <arvind.ran...@gmail.com> wrote: > > > > I don't find it terribly useful to use FORM - using SQLFORM or crud is > > generally more useful. > > I find, that for SQLFORM i have to specify some database ...which I do > not want to . > > My single object spans across multiple tables... > > So to create my single object, i need over 10 fields in a form, Maybe, > it seems, that MVC is not the pattern for me here. > > Also why not SQLFORM.factory ? > > Lots of things out there, but, my understanding is not very clear. > > any advice ? > > thanks > Arvind > > p.s. how do you open a web2py shell ? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---