[CalendarServer-changes] [4993] CalendarServer/trunk/calendarserver/tools/manageaugments.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 1 09:03:05 PST 2010
Revision: 4993
http://trac.macosforge.org/projects/calendarserver/changeset/4993
Author: cdaboo at apple.com
Date: 2010-02-01 09:03:05 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Minor tweaks.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/manageaugments.py
Modified: CalendarServer/trunk/calendarserver/tools/manageaugments.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/manageaugments.py 2010-01-31 09:13:39 UTC (rev 4992)
+++ CalendarServer/trunk/calendarserver/tools/manageaugments.py 2010-02-01 17:03:05 UTC (rev 4993)
@@ -79,7 +79,8 @@
error("Cannot add guid '%s' because it already exists in augment file: '%s'" % (guid, xmlfile,))
# Create new record
- augments_node.getchildren()[-1].tail = "\n "
+ if len(augments_node.getchildren()):
+ augments_node.getchildren()[-1].tail = "\n "
record = addSubElement(augments_node, xmlaugmentsparser.ELEMENT_RECORD, "\n ")
addSubElement(record, xmlaugmentsparser.ELEMENT_GUID, guid, 4)
addSubElement(record, xmlaugmentsparser.ELEMENT_ENABLE, "true", 4)
@@ -174,7 +175,7 @@
help="XML augment file to manipulate", metavar="FILE")
parser.add_option("-g", "--guid", dest="guid",
help="OD GUID to manipulate", metavar="GUID")
- parser.add_option("-h", "--guidfile", dest="guidfile",
+ parser.add_option("-i", "--guidfile", dest="guidfile",
help="File containing a list of GUIDs to manipulate", metavar="GUIDFILE")
parser.add_option("-n", "--node", dest="node",
help="Partition node to assign to GUID", metavar="NODE")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100201/435c7804/attachment.html>
More information about the calendarserver-changes
mailing list