[Zope-dev] _.min and _.max still used by ZMI

Dirk dummy at habmalnefrage.de
Sat Jan 10 17:07:15 EST 2004


Hi Johan,

maybe the patch can fix your problem.

Regards,
Dirk
-------------- next part --------------
--- DT_Util.py.orig	Sat Jan 10 22:58:45 2004
+++ DT_Util.py	Sat Jan 10 22:56:43 2004
@@ -58,6 +58,11 @@
     else:
         d[name] = f
 
+from AccessControl.ZopeGuards import guarded_min, guarded_max
+
+d['min'] = NotBindable(guarded_min)
+d['max'] = NotBindable(guarded_max)
+
 if LIMITED_BUILTINS:
     # Replace certain builtins with limited versions.
     from RestrictedPython.Limits import limited_builtins


More information about the Zope-Dev mailing list