Yes, I had been reading this very page and examined the codes in gluon/
tools.py
It seems to me that PluginManager class is essentially a dictionary
object but I do not see how that translates to how I can use it to
allow users to install and uninstall plugins.
At best it implies that I should have a dictionary in my main
application, such as
session.installed_plugins = {}
and every plugin, there must be a model file with a line that says
something like
session.installed_plugins['plugin A'] = 'I am plugin A'
I am not sure if this is suppose to be the case.
ML
On Dec 31, 10:54 am, Bruno Rocha <[email protected]> wrote:
> Take a look at the PluginManager
> class:http://web2py.com/book/default/chapter/13#Plugin-Manager
>
> 2010/12/31 Maurice Ling <[email protected]>
>
>
>
> > Hi
>
> > I am developing CyNote (http://cynote.sf.net) which is an electronic
> > laboratory notebook tool. At the moment, I am considering whether I
> > should develop it as a thin system with all optional functionalities
> > as plugins.
>
> > However, this means at least 2 things:
>
> > 1. The user must be able to install and uninstall plugins without
> > using admin application.
>
> > 2. CyNote application must be able to know what plugins had been
> > installed.
>
> > Any idea how this can be done?
>
> > Thanks in advance.
>
> > Maurice Ling
>
> --
>
> Bruno Rochahttp://about.me/rochacbruno/bio