[CalendarServer-changes] [5687] CalendarServer/branches/new-store/twistedcaldav/static.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 4 15:08:55 PDT 2010


Revision: 5687
          http://trac.macosforge.org/projects/calendarserver/changeset/5687
Author:   glyph at apple.com
Date:     2010-06-04 15:08:49 -0700 (Fri, 04 Jun 2010)
Log Message:
-----------
get rid of __repr__ while properties are in flux

Modified Paths:
--------------
    CalendarServer/branches/new-store/twistedcaldav/static.py

Modified: CalendarServer/branches/new-store/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-04 19:56:49 UTC (rev 5686)
+++ CalendarServer/branches/new-store/twistedcaldav/static.py	2010-06-04 22:08:49 UTC (rev 5687)
@@ -133,11 +133,11 @@
     """
     CalDAV-accessible L{DAVFile} resource.
     """
-    def __repr__(self):
-        if self.isCalendarCollection():
-            return "<%s (calendar collection): %s>" % (self.__class__.__name__, self.fp.path)
-        else:
-            return super(CalDAVFile, self).__repr__()
+#    def __repr__(self):
+#        if self.isCalendarCollection():
+#            return "<%s (calendar collection): %s>" % (self.__class__.__name__, self.fp.path)
+#        else:
+#            return super(CalDAVFile, self).__repr__()
 
     def __eq__(self, other):
         if not isinstance(other, CalDAVFile):
@@ -578,8 +578,9 @@
         """
         Create a new sync-token which is also the ctag.
         """
+        # FIXME: new implementation is in txcaldav.file, this should be
+        # deleted.
         assert self.isCollection()
-        
         # Initialise it
         caluuid = uuid4()
         revision = 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100604/9fa4c3ce/attachment.html>


More information about the calendarserver-changes mailing list