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

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 5 14:41:32 PST 2006


Revision: 702
          http://trac.macosforge.org/projects/calendarserver/changeset/702
Author:   wsanchez at apple.com
Date:     2006-12-05 14:41:31 -0800 (Tue, 05 Dec 2006)

Log Message:
-----------
Make principalForURI().  I don't think it makes much sense to call this from outside of the class.

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

Modified: CalendarServer/trunk/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/principal.py	2006-12-05 22:39:44 UTC (rev 701)
+++ CalendarServer/trunk/twistedcaldav/directory/principal.py	2006-12-05 22:41:31 UTC (rev 702)
@@ -93,7 +93,7 @@
             return None
         return typeResource.getChild(record.shortName)
 
-    def principalForURI(self, uri):
+    def _principalForURI(self, uri):
         if uri.startswith(self._url):
             path = uri[len(self._url) - 1:]
         else:
@@ -118,7 +118,7 @@
 
     def principalForCalendarUserAddress(self, address):
         # First see if the address is a principal URI
-        principal = self.principalForURI(address)
+        principal = self._principalForURI(address)
         if principal:
             return principal
 

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


More information about the calendarserver-changes mailing list