[reportlab-users] Reportlab in Zope?

Andy Robinson reportlab-users@reportlab.com
Tue, 16 Mar 2004 13:01:31 -0000


Excellent suggestion Chris.  

I'd never seen this explained so simply on a list before.
Let's do it.

- Andy

> > 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
>