[CalendarServer-changes] [6057] CalendarServer/branches/users/glyph/sql-store/twistedcaldav/ storebridge.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 11 14:14:40 PDT 2010


Revision: 6057
          http://trac.macosforge.org/projects/calendarserver/changeset/6057
Author:   glyph at apple.com
Date:     2010-08-11 14:14:39 -0700 (Wed, 11 Aug 2010)
Log Message:
-----------
use 'breadcrumbs' API to provide a nicer repr to CalendarCollectionResource

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/sql-store/twistedcaldav/storebridge.py

Modified: CalendarServer/branches/users/glyph/sql-store/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/branches/users/glyph/sql-store/twistedcaldav/storebridge.py	2010-08-11 21:14:14 UTC (rev 6056)
+++ CalendarServer/branches/users/glyph/sql-store/twistedcaldav/storebridge.py	2010-08-11 21:14:39 UTC (rev 6057)
@@ -660,6 +660,12 @@
         self._initializeWithCalendar(calendar, home)
 
 
+    def __repr__(self):
+        return "<Calendar Collection Resource %r:%r>" % (
+            self._newStoreCalendar.ownerHome().uid(),
+            self._newStoreCalendar.name())
+
+
     def name(self):
         return self._newStoreCalendar.name()
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100811/747a5332/attachment.html>


More information about the calendarserver-changes mailing list