[CalendarServer-changes] [13527] CalDAVTester/trunk/odsetup.py

source_changes at macosforge.org source_changes at macosforge.org
Wed May 21 14:27:22 PDT 2014


Revision: 13527
          http://trac.calendarserver.org//changeset/13527
Author:   sagen at apple.com
Date:     2014-05-21 14:27:22 -0700 (Wed, 21 May 2014)
Log Message:
-----------
Remove large calendar installation

Modified Paths:
--------------
    CalDAVTester/trunk/odsetup.py

Modified: CalDAVTester/trunk/odsetup.py
===================================================================
--- CalDAVTester/trunk/odsetup.py	2014-05-21 21:18:20 UTC (rev 13526)
+++ CalDAVTester/trunk/odsetup.py	2014-05-21 21:27:22 UTC (rev 13527)
@@ -412,28 +412,6 @@
 
 
 
-def addLargeCalendars(hostname, docroot):
-    largeCalendarUser = "user09"
-    calendars = ("calendar.10", "calendar.100", "calendar.1000",)
-    largeGuid = guids[largeCalendarUser]
-    path = os.path.join(
-        docroot,
-        "calendars",
-        "__uids__",
-        largeGuid[0:2],
-        largeGuid[2:4],
-        largeGuid,
-    )
-
-    cmd("mkdir -p \"%s\"" % (docroot))
-    cmd("chown calendar:calendar \"%s\"" % (docroot))
-    for calendar in calendars:
-        cmd("sudo -u calendar mkdir -p \"%s\"" % (path))
-        cmd("sudo -u calendar tar -C \"%s\" -zx -f data/%s.tgz" % (path, calendar,))
-        cmd("chown -R calendar:calendar \"%s\"" % (os.path.join(path, calendar) ,))
-
-
-
 def loadLists(path, records):
     if path == "/Places":
         result = cmd(cmdutility, locationlistcmd)
@@ -731,9 +709,6 @@
             # Create an appropriate serverinfo.xml file from the template
             buildServerinfo(serverinfo_default, hostname, port, sslport, authtype, docroot)
 
-            # Add large calendars to user account
-            if protocol == "caldav":
-                addLargeCalendars(hostname, docroot)
 
         elif args[0] == "create-users":
             # Read the caldavd.plist file and extract some information we will need.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140521/1e23d01a/attachment.html>


More information about the calendarserver-changes mailing list