Log message for revision 66165:
  
        - Applied patch by Yoshinori Okuji to fix some XML export/import
          problems
  

Changed:
  U   Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
  U   Zope/branches/Zope-2_8-branch/lib/python/Shared/DC/xml/ppml.py

-=-
Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
===================================================================
--- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt       2006-03-26 08:54:40 UTC 
(rev 66164)
+++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt       2006-03-26 08:55:24 UTC 
(rev 66165)
@@ -18,6 +18,9 @@
 
     Bugs fixed
 
+      - Applied patch by Yoshinori Okuji to fix some XML export/import
+        problems
+
       - Collector #2037: fixed broken ACTUAL_URL for '/'
 
       - Collector #2039: 'ZPublisher.HTTPRequest.HTTPRequest._authUserPW'

Modified: Zope/branches/Zope-2_8-branch/lib/python/Shared/DC/xml/ppml.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Shared/DC/xml/ppml.py      
2006-03-26 08:54:40 UTC (rev 66164)
+++ Zope/branches/Zope-2_8-branch/lib/python/Shared/DC/xml/ppml.py      
2006-03-26 08:55:24 UTC (rev 66165)
@@ -414,14 +414,14 @@
     def load_binput(self):
         i = mloads('i' + self.read(1) + '\000\000\000')
         last = self.stack[-1]
-        if getattr(last, 'id', last) is not last:
+        if getattr(last, 'id', last) is last:
             last.id = self.idprefix + `i`
     dispatch[BINPUT] = load_binput
 
     def load_long_binput(self):
         i = mloads('i' + self.read(4))
         last = self.stack[-1]
-        if getattr(last, 'id', last) is not last:
+        if getattr(last, 'id', last) is last:
             last.id = self.idprefix + `i`
     dispatch[LONG_BINPUT] = load_long_binput
 
@@ -643,10 +643,10 @@
         'pickle': lambda self, tag, attrs: [tag, attrs],
         }
     end_handlers={
-        'pickle': lambda self, tag, data: data[2]+'.',
+        'pickle': lambda self, tag, data: str(data[2])+'.',
         'none': lambda self, tag, data: 'N',
         'int': save_int,
-        'long': lambda self, tag, data: 'L'+data[2]+'L\012',
+        'long': lambda self, tag, data: 'L'+str(data[2])+'L\012',
         'float': save_float,
         'string': save_string,
         'reference': save_reference,

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to