[CalendarServer-changes] [15692] CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/ proxies.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 23 07:03:48 PDT 2016


Revision: 15692
          http://trac.calendarserver.org//changeset/15692
Author:   cdaboo at apple.com
Date:     2016-06-23 07:03:48 -0700 (Thu, 23 Jun 2016)
Log Message:
-----------
Allow short names for proxies.

Modified Paths:
--------------
    CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/proxies.py

Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/proxies.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/proxies.py	2016-06-23 00:42:02 UTC (rev 15691)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/proxies.py	2016-06-23 14:03:48 UTC (rev 15692)
@@ -185,6 +185,8 @@
         choice = utils.textInput("New principal [q - quit]: ")
         if choice == "q":
             return None
+        if choice.startswith("user") or choice.startswith("puser"):
+            choice = "/principals/users/%s" % (choice,)
         principal = self.shell.account.getPrincipal(URL(url=choice))
         if principal:
             principals.append(principal)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160623/cae6f4f5/attachment.html>


More information about the calendarserver-changes mailing list