[reportlab-users] Reportlab in Zope?
Chris Withers
reportlab-users@reportlab.com
Tue, 16 Mar 2004 08:33:31 +0000
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