[Zope] python methods

Tres Seaver tseaver@digicool.com
Thu, 30 Nov 2000 09:39:32 -0500


Chris Withers <chrisw@nipltd.com> wrote:
> 
> Terry Kerr wrote:
> > 
> > Hi,
> > 
> > Is there any way to get access to inbuild python functions like 'filter'
> > and 'lambda' within pythonMethods?
> 
> I think the powers that be decided they were 'unsafe' :-(
> 
> Can anyone confirm or deny?

'lambda' is actually a keyword, not a function, and hence works
fine in PM0.1.7.  'map()', 'filter()', et al., were deemed to
be susceptible to being used in DOS attacks, and hence are not
permitted in through-the-web code (they would need to be added
to the '_' namespace, like 'str()', et aliae).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org