[CalendarServer-changes] [11828] CalendarServer/branches/users/cdaboo/performance-tweaks/contrib/ tools/fix_calendar

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:24:36 PDT 2014


Revision: 11828
          http://trac.calendarserver.org//changeset/11828
Author:   cdaboo at apple.com
Date:     2013-10-21 07:45:55 -0700 (Mon, 21 Oct 2013)
Log Message:
-----------
Whitespace.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/performance-tweaks/contrib/tools/fix_calendar

Modified: CalendarServer/branches/users/cdaboo/performance-tweaks/contrib/tools/fix_calendar
===================================================================
--- CalendarServer/branches/users/cdaboo/performance-tweaks/contrib/tools/fix_calendar	2013-10-18 20:54:58 UTC (rev 11827)
+++ CalendarServer/branches/users/cdaboo/performance-tweaks/contrib/tools/fix_calendar	2013-10-21 14:45:55 UTC (rev 11828)
@@ -28,9 +28,9 @@
 def usage():
     print """Usage: xattr_fix CALENDARS
 Options:
-    
+
 CALENDARS - a list of directories that are to be treated as calendars
-    
+
 Description:
 This utility will add xattrs to the specified directories and their contents
 to make them appear to be calendars and calendar resources when used with
@@ -40,8 +40,10 @@
 root without properly preserving the xattrs.
 """
 
+
+
 def fixCalendar(path):
-    
+
     # First fix the resourcetype & getctag on the calendar
     x = xattr.xattr(path)
     x["WebDAV:{DAV:}resourcetype"] = """<?xml version='1.0' encoding='UTF-8'?>
@@ -60,7 +62,7 @@
         if not child.endswith(".ics"):
             continue
         fullpath = os.path.join(path, child)
-        
+
         # getcontenttype
         x = xattr.xattr(fullpath)
         x["WebDAV:{DAV:}getcontenttype"] = """<?xml version='1.0' encoding='UTF-8'?>
@@ -94,7 +96,7 @@
             if not os.path.exists(arg):
                 print "Path does not exist: '%s'. Ignoring." % (arg,)
                 continue
-            
+
             if os.path.basename(arg) in ("inbox", "outbox", "dropbox",):
                 print "Cannot be used on inbox, outbox or dropbox."
                 continue
@@ -103,4 +105,3 @@
 
     except Exception, e:
         sys.exit(str(e))
-    
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/c91ab0ba/attachment.html>


More information about the calendarserver-changes mailing list