You could for example make a plugin, that assumes db, goes over all tables and all fields and, when the type is compatible, automatically replaces the widgets with one of yours.
Massimo On Nov 7, 4:47 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > On Nov 7, 4:06 pm, "mr.freeze" <nat...@freezable.com> wrote: > > > Hmmm...Interesting proposition. A couple of questions first: > > > 1) How will the plugin know what the instances of Auth,Crud,Mail and > > DAL are named? Are auth,crud,mail and db pretty much reserved words > > now? > > I think plugins should assume db, auth, crud, mail, service. > Don't you do the same with your code? A plugin is nothing more than a > means to package and distribute your code. > > > 2) How would I let the user decide which db to put the tables in if > > they have multiple? Do they have to edit the plugin? > > I think the plugin should assume db. I do not see a problem with > people editing the plugin anyway. > That could be a way to customize it. > > I do not exclude a more specialized plugin that assume more and/or > something different. > > > On Nov 7, 3:57 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > I think this is nice. > > > > If you now call that files models/plugin_settings.py and if all tables > > > have a prefix plugin_settings_* > > > > then you can distribute it as a web2py.plugin.settings.py > > > > Massimo > > > > On Nov 7, 3:22 pm, "mr.freeze" <nat...@freezable.com> wrote: > > > > > I put this together to let non-developer admins manage settings > > > > through appadmin. It basically puts all settings that are string, > > > > int, double or boolean in the database. I would like feedback on the > > > > perils/merits of doing this. > > > > >http://www.web2pyslices.com/main/slices/take_slice/26 > > > > > Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---