This was discussed. I did not rule it out but now as then I have to point out that things are more complex than it seems.
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. A similar arguments applies to controllers. We would need special routing rules for a plugin. Can it be done in backward compatible way? What if there is already a controller with the same name as a plugin? What about a plugin designed to overrides views/layout.html or views/ web2py_ajax.html or static/base.css? It would not be possible. You would not be able to use your proposed structure to create a plugin that applies a layout to an existing app. I think the current plugin mechanism is more general and therefore it is better. 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. Some plugin have files that start with plugin_... so you can avoid naming conflicts and you know how to call them when applied. Massimo On Dec 29, 7:43 am, Alexandre Andrade <[email protected]> wrote: > Sugestion: > > I think that a better spec would be a directory to plugins, with a diretory > for the plugin, and a application-like struture. So web2py read it as read > application directory. > > - application > --cache > --controllers > .. > --models > --modules > .. > --plugins > ---myplugin > ----cache > ----controllers > ----docs (instructions, examples) > .. > ----models > ----modules > .. > ----views > --views > > it make easy install/uninstall plugins, just creating/delete the directory. > > More ideias? > > 2009/12/29 mdipierro <[email protected]> > > > > > I cannot find it either. > > > On Dec 28, 8:51 pm, Thadeus Burgess <[email protected]> wrote: > > > Buried beyond 100's of google posts. > > > > Good Luck! > > > > There is also a screen cast on plugins at vimeo. > > > >http://www.vimeo.com/7182692 > > > > The reason there is no "official" spec is because the system most > > > likely change. In my recent efforts making plugins, it leads to a > > > quite archaic design pattern for the plugins... and honestly, the > > > current spec is not a "plugin" its a naming convention. A "true" > > > plugin system really needs to be developed, but the reason it hasn't > > > is because there is no reason for them at this point in the ballgame. > > > > So here is the spec in a nutshell. > > > > Take web2py controllers/modules/views... and append the word plugin_ > > > in front of the filename, database tables, etc. > > > > You now have a web2py plugin, congratulations. > > > > -Thadeus > > > > On Mon, Dec 28, 2009 at 6:29 AM, Alexandre Andrade > > > > <[email protected]> wrote: > > > > where we find the "not finalised" plugin spec? > > > > > 2009/12/9 Darcy Clark <[email protected]> > > > > >> sorry to answer my own (dumb) question ..... looks like the plugin > > > >> spec isn't finalised yet, so understandably there aren't many docs > > > >> floating around yet > > > > >> On Dec 9, 4:08 pm, Darcy Clark <[email protected]> wrote: > > > >> > where would I look if I was interested in learning how to develop > > > >> > plugins for web2py ? > > > > >> -- > > > > >> You received this message because you are subscribed to the Google > > Groups > > > >> "web2py-users" group. > > > >> To post to this group, send email to [email protected]. > > > >> To unsubscribe from this group, send email to > > > >> [email protected]<web2py%[email protected]> > > . > > > >> For more options, visit this group at > > > >>http://groups.google.com/group/web2py?hl=en. > > > > > -- > > > > Atenciosamente > > > > > -- > > > > ========================= > > > > Alexandre Andrade > > > > Hipercenter.com > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "web2py-users" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<web2py%[email protected]> > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/web2py?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<web2py%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/web2py?hl=en. > > -- > Atenciosamente > > -- > ========================= > Alexandre Andrade > Hipercenter.com -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

