[CalendarServer-changes] [10922] CalendarServer/trunk/calendarserver/tools/purge.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 14 10:29:55 PDT 2013
Revision: 10922
http://trac.calendarserver.org//changeset/10922
Author: sagen at apple.com
Date: 2013-03-14 10:29:55 -0700 (Thu, 14 Mar 2013)
Log Message:
-----------
Allow purge to work on principals whose augment record now says they are no longer enabled for calendaring
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/purge.py
Modified: CalendarServer/trunk/calendarserver/tools/purge.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/purge.py 2013-03-14 15:08:38 UTC (rev 10921)
+++ CalendarServer/trunk/calendarserver/tools/purge.py 2013-03-14 17:29:55 UTC (rev 10922)
@@ -792,10 +792,14 @@
# FIXME: probably want a more elegant way to accomplish this,
# since it requires the aggregate directory to examine these first:
record = DirectoryRecord(self.directory, "users", uid, shortNames=(uid,), enabledForCalendaring=True)
- record.enabled = True
self.directory._tmpRecords["shortNames"][uid] = record
self.directory._tmpRecords["uids"][uid] = record
+ # Override augments settings for this record
+ record.enabled = True
+ record.enabledForCalendaring = True
+ record.enabledForAddressBooks = True
+
cua = "urn:uuid:%s" % (uid,)
principalCollection = self.directory.principalCollection
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130314/8e311745/attachment.html>
More information about the calendarserver-changes
mailing list