[reportlab-users] Reportlab in Zope?

Florian Reiser reportlab-users@reportlab.com
Tue, 16 Mar 2004 15:15:45 +0100


Hello Chris,

do you already have the __init__.py file I need
for the security machinery?

Would you please be so kind and mail it to me?

With kind regards
Florian Reiser

-----Original Message-----
From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com] On Behalf Of Chris Withers
Sent: Tuesday, March 16, 2004 9:34 AM
To: reportlab-users@reportlab.com
Subject: Re: [reportlab-users] Reportlab in Zope?


Dinu Gherman wrote:

> This has been answered on the list before, I think. Could we
> add this to some FAQ, please?

Either that or you could try and persuade the ReportLab guys to add
something 
like the following to reportlab's __init__.py:

try:
     from AccessControl import ModuleSecurityInfo
except ImportError:
     # no Zope around
     pass
else:
     ModuleSecurityInfo('reportlab').declareObjectPublic()
     ModuleSecurityInfo('reportlab').declarePublic(...stuff in here...)

...and this will define security as required by Zope, and yet not interfere
when 
it's used in a non-Zope context...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users