Hans-Peter Locher, on 2008-08-15:
>
> Hi,
> I want to test a policy product (egg), which sets up various products  
> on installation.
>
> The policy product does this by including the packages zcml, and  
> quickinstalling them in a setuphandler.
>
> One of the products I need to install creates some content in the site.
> The prolem is, when loading the configure.zcml in the deferred startup  
> method,
> I get an unauthorized error when adding content.
>
> How can this be solved?

How can you add content during the loading of the zcml?  Is something
happening simply by importing a module?  Zope has not properly been
started yet until after the zcml has been loaded.  So in the browser
you would not even be able to replicate this.

> Is it possible e.g. to set a role Manager, before ptc.setupPloneSite?
> or can the zcml be loaded after the setupPloneSite?

I would say it is impossible and you are doing something funky in your
zcml or while importing a module.

Maybe go in with a pdb.set_trace() and see what is going on during
that zcml load.


-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to