[Zope-Checkins] CVS: Zope2 - dtml-funcs.stx:1.6

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


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

Modified Files:
	dtml-funcs.stx 
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 dtml-funcs.stx in package Zope2 --
--- dtml-funcs.stx	2001/04/18 00:24:44	1.5
+++ dtml-funcs.stx	2001/05/16 21:15:44	1.6
@@ -191,6 +191,15 @@
     default is given, the default is returned. If no condition is true
     and there is no default, None is returned.
 
+    unichr(number) -- Return a unicode string representing the value of
+    number as a unicode character.  This is the inverse of ord() for
+    unicode characters. 
+
+    unicode(string[, encoding[, errors ] ]) -- Decodes string using the
+    codec for encoding. Error handling is done according to errors. The
+    default behavior is to decode UTF-8 in strict mode, meaning that
+    encoding errors raise ValueError.
+
   Attributes
 
     None -- The 'None' object is equivalent to the Python built-in object