[CalendarServer-changes] [11150] CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/ props.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 8 11:55:28 PDT 2013
Revision: 11150
http://trac.calendarserver.org//changeset/11150
Author: cdaboo at apple.com
Date: 2013-05-08 11:55:28 -0700 (Wed, 08 May 2013)
Log Message:
-----------
Allow propfind of a specific named property.
Modified Paths:
--------------
CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/props.py
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/props.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/props.py 2013-05-08 18:13:06 UTC (rev 11149)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/props.py 2013-05-08 18:55:28 UTC (rev 11150)
@@ -34,11 +34,12 @@
names = False
all_props = False
xmllist = False
+ prop = None
path = None
- opts, args = getopt.getopt(shlex.split(options), 'aln')
+ opts, args = getopt.getopt(shlex.split(options), 'alnp:')
- for name, _ignore_value in opts:
+ for name, value in opts:
if name == "-a":
all_props = True
@@ -46,6 +47,8 @@
xmllist = True
elif name == "-n":
names = True
+ elif name == "-p":
+ prop = value
else:
print "Unknown option: %s" % (name,)
print self.usage(cmdname)
@@ -71,6 +74,8 @@
else:
if all_props:
props = None
+ elif prop:
+ props = (prop,)
else:
props = self.shell.account.session.getPropertyNames(resource)
results, bad = self.shell.account.session.getProperties(resource, props, xmllist)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130508/5cdb9aeb/attachment.html>
More information about the calendarserver-changes
mailing list