[CalendarServer-changes] [10796] CalendarServer/trunk/twext/who/util.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 21 20:00:51 PST 2013


Revision: 10796
          http://trac.calendarserver.org//changeset/10796
Author:   wsanchez at apple.com
Date:     2013-02-21 20:00:51 -0800 (Thu, 21 Feb 2013)
Log Message:
-----------
Have describe() return the name if there is no description.

Modified Paths:
--------------
    CalendarServer/trunk/twext/who/util.py

Modified: CalendarServer/trunk/twext/who/util.py
===================================================================
--- CalendarServer/trunk/twext/who/util.py	2013-02-22 03:12:21 UTC (rev 10795)
+++ CalendarServer/trunk/twext/who/util.py	2013-02-22 04:00:51 UTC (rev 10796)
@@ -70,7 +70,7 @@
 
 
 def describe(constant):
-    return getattr(constant, "description", str(constant))
+    return getattr(constant, "description", constant.name)
 
 
 def iterFlags(flags):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130221/6216c00c/attachment.html>


More information about the calendarserver-changes mailing list