I would like to add what was NOT discussed. 1) convention for a plugin to store variables in sessions 2) convention for plugin-defined table names 3) mechanism of hooks for plugin to register stuff with the app (for example change the menu)
Right now: 1) session.plugin_<name>.variable OR session.plugin_<name>_variable? 2) db.plugin_<name>_tablename while for input plugins.<name>.configuration_parameter we have nothing about 3. On Mar 10, 8:20 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > It was late. We closed the discussion soon after you left. Thadeus > will summarize what we said and we will circulate a draft proposal. > The main issue was how to write plugin models so that they can be > configurable and do not pollute the name space. > > I think the structure we agreed upon was something like this... > > ### in db,py > plugins=PluginCentral() > # configure all plugins > plugins.<name>.db = db > > ### in models/plugin_<name>.py > def _(plugin): > # set default values or return error on failure, for example > if not plugin.db and db: plugin.db = db > # you can use any local variable you want here private of _ > ... > # define plugin tables > plugin.db.define_table(....) > return > # instantiate the plugin by passing the config parameteres > _(plugins.<name>) > # define public functions here > > but let us follow on the discussion and a write a better document with > more examples and motivations. > > Massimo > > On Mar 10, 8:04 am, Álvaro Justen [Turicas] <alvarojus...@gmail.com> > wrote: > > > Could someone please send a short description of what was decided > > yesterday? Massimo? > > > On Wed, Mar 10, 2010 at 10:47, Timothy Farrell <tfarr...@swgen.com> wrote: > > > Disregard. I see the other thread. > > > > On 3/10/2010 7:44 AM, Timothy Farrell wrote: > > > >> So for those of us who couldn't make it, what were the conclusions? > > > >> On 3/9/2010 8:28 PM, mr.freeze wrote: > > > >>> Yes - plugins, plugins, plugins!!! I'm anxious to start converting all > > >>> of my modules to plugins once the spec is somewhat backwards > > >>> compatible. > > > >>> On Mar 9, 8:18 pm, mdipierro<mdipie...@cs.depaul.edu> wrote: > > > >>>> We have a meeting on IRC tonight at 10om central time, right? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@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. > > > -- > > Álvaro Justen - Turicas > > http://blog.justen.eng.br/ > > 21 9898-0141 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.