Author: bree
Date: Fri Apr 21 13:40:50 2006
New Revision: 2923

Modified:
   azax/branches/plugin/commands.py
Log:
Parameter value should restrict to string only later, this way it can be 
avoided with the new style transport

Modified: azax/branches/plugin/commands.py
==============================================================================
--- azax/branches/plugin/commands.py    (original)
+++ azax/branches/plugin/commands.py    Fri Apr 21 13:40:50 2006
@@ -39,8 +39,11 @@
     
     def __init__(self, name, content=''):
         self.name = name
+        self.content = content
+
+    def force_content_unicode(self):
         # Content must be str with ascii encoding, or unicode!
-        self.content = force_unicode(content)
+        self.content = force_unicode(self.content)
 
     def getName(self):
         return self.name
@@ -101,6 +104,10 @@
         # is available from the page template.
         if not hasattr(self.request, 'debug'):
             self.request.debug = None
+
+        # Force parameters content to be unicode
+        for param in self.getParams():
+            param.force_content_unicode()
     
     # XML output gets rendered via a page template
     # XXX note: barefoot rendering, use python: only after zope2.9
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to