[CalendarServer-changes] [5772] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 17 10:45:39 PDT 2010


Revision: 5772
          http://trac.macosforge.org/projects/calendarserver/changeset/5772
Author:   cdaboo at apple.com
Date:     2010-06-17 10:45:39 -0700 (Thu, 17 Jun 2010)
Log Message:
-----------
Put large calendars in user9 account.

Modified Paths:
--------------
    CalendarServer/trunk/testserver
    CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py

Modified: CalendarServer/trunk/testserver
===================================================================
--- CalendarServer/trunk/testserver	2010-06-17 17:39:47 UTC (rev 5771)
+++ CalendarServer/trunk/testserver	2010-06-17 17:45:39 UTC (rev 5772)
@@ -63,10 +63,10 @@
 
 export PYTHONPATH=$("${wd}/run" -p);
 
-if [ ! -e "${documentroot}/calendars/__uids__/user01" ]; then
-  curl "http://localhost:8008/calendars/__uids__/user01/";
+if [ ! -e "${documentroot}/calendars/__uids__/user09" ]; then
+  curl "http://localhost:8008/calendars/__uids__/user09/";
 fi;
 
-python twistedcaldav/test/data/makelargecalendars.py -n 1 -d "${documentroot}";
+python twistedcaldav/test/data/makelargecalendars.py -o 9 -d "${documentroot}";
 
 cd "${cdt}" && python testcaldav.py -s "${serverinfo}" "$@";

Modified: CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	2010-06-17 17:39:47 UTC (rev 5771)
+++ CalendarServer/trunk/twistedcaldav/test/data/makelargecalendars.py	2010-06-17 17:45:39 UTC (rev 5772)
@@ -24,13 +24,16 @@
     wd = os.path.dirname(__file__)
     document_root = "."
     user_max = 99
+    user_one = None
     calendars = ("calendar.10", "calendar.100", "calendar.1000",)
 
-    options, args = getopt.getopt(sys.argv[1:], "n:d:")
+    options, args = getopt.getopt(sys.argv[1:], "n:d:o:")
 
     for option, value in options:
         if option == "-n":
             user_max = int(value)
+        elif option == "-o":
+            user_one = int(value)
         elif option == "-d":
             document_root = os.path.abspath(value)
         else:
@@ -38,7 +41,7 @@
             raise ValueError
 
     
-    for ctr in xrange(1, user_max + 1): 
+    for ctr in (xrange(user_one, user_one + 1) if user_one else xrange(1, user_max + 1)): 
         path = os.path.join(document_root, "calendars/__uids__/us/er/user%02d" % (ctr,))
     
         try: os.makedirs(path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100617/930c5b7e/attachment.html>


More information about the calendarserver-changes mailing list