I understand the argument. Each of the system have pros and cons. If a plugin resides outside the app you have these problems: 1) app would not be portable because plugins would not be packages with it 2) there would be problems if different apps require different versions of the same plugins
Anyway. You can do this already: Create an app called plugins web2py/applications/plugins Any other app can use the views and the static files of the plugins installed under app plugins. Any other app can call services implemented by actions of the plugins in app plugins. Any other app can import modules defined by plugins in app plugins. Some care must be taken in designing plugins designed to be shared since there must be a mechanism for passing a request/response/session/ cache/T and databases to the plugin. We do not have specifications for this. This is not a technical issues (no more than is there were in fact a web2py/plugins folder instead of a web2py/applications/plugins) but an issue about conventions. Feel free to make a proposal in this respect. Massimo On Mar 15, 4:15 am, selecta <gr...@delarue-berlin.de> wrote: > On Mar 13, 4:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > If I understand you are asking for a web2py level plugin system vs an > > app level plugin system. This has nothing to do with relocation of > > plugins under an app subfolder. Am I correct? > > Well maybe but consider the following > > pseudo ls > /app1/.cvs > /app1/controller/.cvs > /app1/controller/plugin_useradmin.py > > /app2/.cvs > /app2/controller/.cvs > /app2/controller/plugin_useradmin.py > > now the plug-in useradmin is under version control of app1 and app2 > this means that the plug-in is under two different version control > systems but if it would be like that > > /app1/.cvs > /app1/plugins/useradmin/controller/.cvs > /app1/plugins/useradmin/controller/plugin_useradmin.py > > /app2/.cvs > /app2/plugins/useradmin/controller/.cvs > /app2/plugins/useradmin/controller/plugin_useradmin.py > > app1 and app2 could have seperate version control from the plug-in > > I guess the problem could also be solved with at web2py level plugin > system but this solution would be easier to handle since I do not have > to mingle with setting things in the app so the plugin can use the > same db as the app etc. -- 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.