[Zope-PAS] using plugins programmatically
Lennart Regebro
regebro at nuxeo.com
Mon Feb 7 07:44:24 EST 2005
Janko Hauser wrote:
> Another question regarding PAS. As I understand it, the plugins
> mechanism is mainly used for TTW configuration.
Huh?
> The current path to use PAS in code is:
"Use"?
> - instantiate a PAS instance, which automatically instantiates the
> pluginregistry.
>
> - import the addmethods of the plugins one likes to use
>
> - add these plugins
>
> - configure the plugins to register themself for the various
> interfaces.
>
> So in the code I use the plugin-mechanism only in the last step. Is
> this the right way, or do I miss something?
Are you trying to create and configure a PAS instance programatically?
Is that what you mean with "use"? In that casse, I would say yes, thats
the way to do it.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
More information about the Zope-PAS
mailing list