-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ross Patterson wrote: > Tres Seaver <[EMAIL PROTECTED]> writes: > >> Ross Patterson wrote: >>> Tres Seaver <[EMAIL PROTECTED]> writes: >>> >>>> Thanks! Can you please add to the PAS collector so we don't lose the patch: >>>> >>>> http://www.zope.org/Collectors/PAS >>> Will do. >>> >>>> I don't understand the need for this handler, or why your overrides.zcml >>>> uses it for IPluginRegistry. The "normal" handers for PAS plugins are >>>> all in PAS itself, and the "normal" one for the registry is in >>>> PluginRegsitry. >>> As I understand it, the PAS setup handlers expect the setup tool to be >>> located *inside* the acl_users folder. I taks this from the fact that >>> the setup handlers get the adapter that does the actual importing and >>> exporting with an adapter for context.getSite(). >>> >>> I wanted to be able to do PAS configuration in a setuphandler executed >>> inside a setup tool for a CMF *portal* for the acl_users folder >>> *subobject* of that portal. As such I adapt >>> getToolByName(context.getSite(), 'acl_users'). >>> >>> Is this incorrect? >> Hmm, I guess I normally just have the PAS dumped as part of the >> "structure" of the site, where the normal handlers get used on the PAS >> as a subobject. >> >> If you want the PAS to go into a different part of the profile, then the >> "structure" dump needs to exclude it, and your handlers would work fine. >> However, still don't see why your overrides.zcml registers the handler >> for the IPluginRegistry. Including your export / import handers as >> steps should do the trick, without the funky override. > > Just to make sure I'm hearing this correctly, you'd put it in > something like profile/default/structure/acl_users/pluginregistry.xml?
Yes, along with the files for the plugins. This is what that looks like on a current project: $ find structure/acl_users structure/acl_users structure/acl_users/.objects structure/acl_users/pluginregistry.xml structure/acl_users/chooser.xml structure/acl_users/sniffer.xml structure/acl_users/credentials_cookie_auth.xml structure/acl_users/credentials_basic_auth.xml structure/acl_users/source_users.xml structure/acl_users/portal_role_manager.xml structure/acl_users/local_roles.xml structure/acl_users/source_groups.xml Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiEPj+gerLs4ltQ4RArF5AKCfYnK85PjI7G1D45A7THT+H78AAQCgm474 W6GFaB8qmRmd3xh/wasx1W4= =qwtk -----END PGP SIGNATURE----- _______________________________________________ Zope-PAS mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope-pas
