[Grok-dev] Deploying into production - site.zcml with credentials

Jan-Wijbrand Kolman janwijbrand at gmail.com
Thu Nov 6 05:43:00 EST 2008


Michael Haubenwallner wrote:
> Michael Haubenwallner wrote:
>> You can move the relevant parts from the site.zcml definition in
>> buildout.cfg to a 'principals.zcml' file (don't forget to include the
>> namespace declarations) and include the new file in your buildout.cfg
>> inside the site.zcml definition like
>>
>>  <include file="../../principals.zcml" />
>>
>> (Adjust the path to where the principals.zcml file is stored relative to
>> the parts/app folder).
>>
> 
> Moreover, you can add the initial principals file to your distribution
> as 'principals.zcml.in' and tell the customer to alter the file and save
> as 'principals.zcml' -- just as it is done with the zope3 checkout.

That's similar to what we do: we have a deploy.cfg extending
thebuildout.cfg that contains information, like credentials, specific to
the deployment. Like portnumbers and other application-configuration.

regards,
jw



More information about the Grok-dev mailing list