[CalendarServer-changes] [2301] CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops .patch

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 11 03:15:02 PDT 2008


Revision: 2301
          http://trac.macosforge.org/projects/calendarserver/changeset/2301
Author:   wsanchez at apple.com
Date:     2008-04-11 03:14:59 -0700 (Fri, 11 Apr 2008)

Log Message:
-----------
Compress pickled data

Modified Paths:
--------------
    CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch

Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch
===================================================================
--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch	2008-04-11 09:57:24 UTC (rev 2300)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch	2008-04-11 10:14:59 UTC (rev 2301)
@@ -55,7 +55,7 @@
  
 -        doc = davxml.WebDAVDocument.fromString(value)
 +        try:
-+            return unpickle(data)
++            return decompress(unpickle(data))
 +        except UnpicklingError:
 +            try:
 +                # Data is not pickled; try reading as compressed XML text
@@ -78,7 +78,7 @@
 -        self.attrs[self._encode(property.qname())] = property.toxml()
 +        for n in range(20):
 +            try:
-+                data = pickle(property)
++                data = compress(pickle(property))
 +            except PicklingError, e:
 +                log.err("Unable to pickle property %r: %s" % (property, e))
  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080411/1af8e5f6/attachment.html


More information about the calendarserver-changes mailing list