[Zope3-Users] Getting current user and current user's group in a buildout script

Benji York benji at zope.com
Mon Oct 1 16:15:42 EDT 2007


Derek Richardson wrote:
> So, is there an easy way to do it? I know I can write a recipe, but a 
> recipe seems heavyweight for this. It seems to me that access to these 
> two values should be built into buildout as implicit variables. Is this 
> contrary to the lightweight, pluggable design philosophy?

The way we've handled similar needs is to require the user to enter that 
kind of information in their default.cfg.  That way you don't have to 
sniff the environment, and the user has explicit control over what 
values buildout sees.
-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-users mailing list