[Zope-PAS] using plugins programmatically

Kapil Thangavelu hazmat at objectrealms.net
Mon Feb 7 17:37:26 EST 2005


fwiw, there was a sprint this last week in san jose, to work on plonepas
integration.. its in the collective, and programatically adds pas,
plugins, and plugin types.

http://cvs.sf.net/viewcvs.py/collective/PlonePAS

hth,

-kapil

On Mon, 2005-02-07 at 14:06 +0100, Janko Hauser wrote:
> Lennart Regebro schrieb:
> > Janko Hauser wrote:
> >
> >>Another question regarding PAS. As I understand it, the plugins
> >>mechanism is mainly used for TTW configuration.
> >
> >>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.
> >
> Yes, sorry, I had written this in the mail before. I'm adding a PAS
> in the code, which sets up a site. I have managed this. In the code it
> all looked rather explicit, and I had the feeling, that I bypassing
> the plugin mechanism somehow. So I asked.
> 
> Thanks for the confirmation.
> 
> __Janko
> 
> 
> _______________________________________________
> Zope-PAS mailing list
> Zope-PAS at zope.org
> http://mail.zope.org/mailman/listinfo/zope-pas
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-pas/attachments/20050207/7a2ae2ac/attachment.bin


More information about the Zope-PAS mailing list