[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py Generated layer and skin interfaces could not be pickled, because their

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Apr 1 21:02:08 EST 2005


Log message for revision 29826:
  Generated layer and skin interfaces could not be pickled, because their 
  name and module path were unicode strings and not simple strings as the 
  pickling protocol demands.
  
  

Changed:
  U   Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py

-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py	2005-04-01 23:43:13 UTC (rev 29825)
+++ Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py	2005-04-02 02:02:08 UTC (rev 29826)
@@ -146,8 +146,8 @@
             "You cannot specify the 'interface' and 'base' together.")
 
     if interface is None:
-        interface = InterfaceClass(name, (base, ),
-                                   __doc__='Layer: %s' %name,
+        interface = InterfaceClass(str(name), (base, ),
+                                   __doc__='Layer: %s' %str(name),
                                    __module__='zope.app.layers')
         # Add the layer to the layers module.
         # Note: We have to do this immediately, so that directives using the
@@ -254,9 +254,10 @@
             "You must specify the 'name' or 'interface' attribute.")
 
     if name is not None and layers is not None:
-        interface = InterfaceClass(name, layers,
-                                   __doc__='Skin: %s' %name,
+        interface = InterfaceClass(str(name), layers,
+                                   __doc__='Skin: %s' %str(name),
                                    __module__='zope.app.skins')
+
         # Add the layer to the skins module.
         # Note: We have to do this immediately, so that directives using the
         # InterfaceField can find the layer.



More information about the Zope3-Checkins mailing list