I agree that what I call a plugin^1 is not what other people call a plugin^2.
Within the current system you can already create a plugins/ subfolder and put stuff in there as Alexandre and others have proposed. They would not be visible by web2py but you could create a special model models/plugin_generic.py with code that does what you want (explores the plugin folder, looks for plugins^2 declared in current_plugins = [ ... ] etc. etc.) All you need to do it create a modes/plugin_generic.py and a controllers/plugin_generic.py and within my plugin^1 system you will be able to support your plugin^2 system. The opposite is not true. Massimo On Dec 29, 12:25 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > >If plugins have models in their own folder, then should all models be > >executed when a non-plugin controller is called, including plugin > >models? If so, there would be a lot overhead to new directory > >structure. Moreover in which order would they be executed? Whatever > >you choose would not be obvious. If plugin modules where only to be > >executed when plugin controllers are called then they would be > >accessible by appadmin and they would have very limited functionality. > >for example they would not be able to act on non-plugin modules. > > This is why django has... > > installed_applications = [ > 'contrib.auth', > 'my.blog', > 'comments', > ] > > Which solves this problem. Its just one more line in db.py (or settings.py), I > already have to declare admin, why not installed_plugins = [] ?? then > web2py will go through the plugins in that order, create their models, > etc etc... > > For another example, I view Auth, Crud, Mail etc... as 'plugins' that > happen to be included with web2py always > > >For me a plugin is just a subset of an app that you can > >extract from an app and you can apply over an existing app. > > I think we've been trying to get this out of you for quite some time now :) > > So what you call a plugin, is not what I call/imagine a plugin. > > -Thadeus > > On Tue, Dec 29, 2009 at 9:40 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > If plugins have models in their own folder, then should all models be > > executed when a non-plugin controller is called, including plugin > > models? If so, there would be a lot overhead to new directory > > structure. Moreover in which order would they be executed? Whatever > > you choose would not be obvious. If plugin modules where only to be > > executed when plugin controllers are called then they would be > > accessible by appadmin and they would have very limited functionality. > > for example they would not be able to act on non-plugin modules. > > -- 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.