[CalendarServer-changes] [3298] CalendarServer/trunk/twistedcaldav/directory/principal.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 31 10:34:21 PDT 2008


Revision: 3298
          http://trac.macosforge.org/projects/calendarserver/changeset/3298
Author:   wsanchez at apple.com
Date:     2008-10-31 10:34:20 -0700 (Fri, 31 Oct 2008)
Log Message:
-----------
Add __repr__

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/principal.py

Modified: CalendarServer/trunk/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/principal.py	2008-10-31 02:40:23 UTC (rev 3297)
+++ CalendarServer/trunk/twistedcaldav/directory/principal.py	2008-10-31 17:34:20 UTC (rev 3298)
@@ -102,6 +102,9 @@
 
         self.directory = IDirectoryService(directory)
 
+    def __repr__(self):
+        return "<%s: %s %s>" % (self.__class__.__name__, self.directory, self._url)
+
     def locateChild(self, req, segments):
         child = self.getChild(segments[0])
         if child is not None:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081031/3c4621da/attachment.html>


More information about the calendarserver-changes mailing list