[Zope-Checkins] CVS: Zope2 - Guards.py:1.5

Matthew T. Kromer matt@digicool.com
Wed, 16 May 2001 17:15:45 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/RestrictedPython
In directory korak.digicool.com:/tmp/cvs-serv5910/lib/python/RestrictedPython

Modified Files:
	Guards.py 
Log Message:
Add unicode methods "unichr" and "unicode" as unrestricted methods.  Note
that the issues remain to allowing unicode objects through Zope that are
not addressed herin, but are related to type('') not equalling type(u''); much
special case code exists that handles strings differently that needs
review to handle unicode as well.



--- Updated File Guards.py in package Zope2 --
--- Guards.py	2001/05/14 21:49:05	1.4
+++ Guards.py	2001/05/16 21:15:44	1.5
@@ -93,6 +93,7 @@
              'len', 'max', 'min', 'oct', 'ord', 'round', 'str', 'pow',
              'apply', 'callable', 'cmp', 'complex', 'isinstance',
              'issubclass', 'long', 'repr', 'range', 'list', 'tuple',
+             'unichr', 'unicode',
              'Exception',
              'ArithmeticError', 'AssertionError', 'AttributeError',
              'EOFError', 'EnvironmentError', 'FloatingPointError',