[CalendarServer-changes] [11239] CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/ share.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 23 08:55:11 PDT 2013
Revision: 11239
http://trac.calendarserver.org//changeset/11239
Author: cdaboo at apple.com
Date: 2013-05-23 08:55:11 -0700 (Thu, 23 May 2013)
Log Message:
-----------
No need to specify what type of resource is being acted on for sharing.
Modified Paths:
--------------
CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/share.py
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/share.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/share.py 2013-05-23 02:54:13 UTC (rev 11238)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/share.py 2013-05-23 15:55:11 UTC (rev 11239)
@@ -38,12 +38,9 @@
interactive = False
path = None
- addressbook = False
- calendar = False
- group = False
try:
- opts, args = getopt.getopt(shlex.split(options), 'acgi')
+ opts, args = getopt.getopt(shlex.split(options), 'i')
except getopt.GetoptError, e:
print str(e)
print self.usage(cmdname)
@@ -53,34 +50,11 @@
if name == "-i":
interactive = True
- elif name == "-a":
- if calendar or group:
- print "Only one of -a, -c, or -g must be present"
- print self.usage(cmdname)
- raise WrongOptions
- addressbook = True
- elif name == "-c":
- if addressbook or group:
- print "Only one of -a, -c, or -g must be present"
- print self.usage(cmdname)
- raise WrongOptions
- calendar = True
- elif name == "-c":
- if addressbook or calendar:
- print "Only one of -a, -c, or -g must be present"
- print self.usage(cmdname)
- raise WrongOptions
- group = True
else:
print "Unknown option: %s" % (name,)
print self.usage(cmdname)
raise WrongOptions
- if not (addressbook or calendar or group):
- print "One of -a, -c, or -g must be present"
- print self.usage(cmdname)
- raise WrongOptions
-
if len(args) > 1:
print "Wrong number of arguments: %d" % (len(args),)
print self.usage(cmdname)
@@ -132,12 +106,6 @@
Options:
-i interactive mode for adding, changing and deleting invitees.
if not present, existing invitees will be printed.
-
--a sharing for an address book
--c sharing for a calendar
--g sharing for an address book group
-
-One of -a, -c or -g must be present.
""" % (name,)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130523/d7229bca/attachment.html>
More information about the calendarserver-changes
mailing list