[CalendarServer-changes] [1222]
CalendarServer/trunk/twistedcaldav/directory/principal.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 20 18:53:01 PST 2007
Revision: 1222
http://trac.macosforge.org/projects/calendarserver/changeset/1222
Author: wsanchez at apple.com
Date: 2007-02-20 18:53:00 -0800 (Tue, 20 Feb 2007)
Log Message:
-----------
logging
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/principal.py
Modified: CalendarServer/trunk/twistedcaldav/directory/principal.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/principal.py 2007-02-21 02:25:11 UTC (rev 1221)
+++ CalendarServer/trunk/twistedcaldav/directory/principal.py 2007-02-21 02:53:00 UTC (rev 1222)
@@ -91,6 +91,7 @@
def principalForShortName(self, type, name):
typeResource = self.getChild(type)
if typeResource is None:
+ log.err("No directory record type resource %s" % (type,))
return None
return typeResource.getChild(name)
@@ -242,6 +243,7 @@
if record is None:
record = self.directory.recordWithShortName(self.recordType, name)
if record is None:
+ log.err("No directory record (%s)%s; cannot create principal resource." % (self.recordType, name))
return None
else:
assert name is None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070220/e3c38f16/attachment.html
More information about the calendarserver-changes
mailing list