[CalendarServer-changes] [13510] CalendarServer/trunk/calendarserver/tools

source_changes at macosforge.org source_changes at macosforge.org
Mon May 19 17:05:19 PDT 2014


Revision: 13510
          http://trac.calendarserver.org//changeset/13510
Author:   sagen at apple.com
Date:     2014-05-19 17:05:19 -0700 (Mon, 19 May 2014)
Log Message:
-----------
Default locations and resources to having calendars/contacts

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/gateway.py
    CalendarServer/trunk/calendarserver/tools/principals.py

Modified: CalendarServer/trunk/calendarserver/tools/gateway.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/gateway.py	2014-05-20 00:04:32 UTC (rev 13509)
+++ CalendarServer/trunk/calendarserver/tools/gateway.py	2014-05-20 00:05:19 UTC (rev 13510)
@@ -241,7 +241,9 @@
 
         if oldFields is None:
             fields = {
-                FieldName.recordType: recordType
+                self.dir.fieldName.recordType: recordType,
+                self.dir.fieldName.hasCalendars: True,
+                self.dir.fieldName.hasContacts: True,
             }
             create = True
         else:

Modified: CalendarServer/trunk/calendarserver/tools/principals.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/principals.py	2014-05-20 00:04:32 UTC (rev 13509)
+++ CalendarServer/trunk/calendarserver/tools/principals.py	2014-05-20 00:05:19 UTC (rev 13510)
@@ -455,6 +455,8 @@
         directory.fieldName.uid: uid,
         directory.fieldName.shortNames: shortNames,
         directory.fieldName.fullNames: fullNames,
+        directory.fieldName.hasCalendars: True,
+        directory.fieldName.hasContacts: True,
     }
     record = DirectoryRecord(directory, fields)
     yield record.service.updateRecords([record], create=True)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140519/1d60c6b2/attachment.html>


More information about the calendarserver-changes mailing list