[CalendarServer-changes] [8873] CalendarServer/trunk/calendarserver/tools/shell/vfs.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 14 17:07:35 PDT 2012


Revision: 8873
          http://trac.macosforge.org/projects/calendarserver/changeset/8873
Author:   wsanchez at apple.com
Date:     2012-03-14 17:07:34 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
Look up record if not provided.

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/shell/vfs.py

Modified: CalendarServer/trunk/calendarserver/tools/shell/vfs.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/vfs.py	2012-03-14 23:09:30 UTC (rev 8872)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py	2012-03-15 00:07:34 UTC (rev 8873)
@@ -242,6 +242,9 @@
     def __init__(self, service, path, uid, record=None):
         Folder.__init__(self, service, path)
 
+        if record is None:
+            record = self.service.directory.recordWithUID(uid)
+
         if record is not None:
             assert uid == record.uid
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120314/8baa45bf/attachment.html>


More information about the calendarserver-changes mailing list