[CalendarServer-changes] [5396] CalendarServer/trunk/txdav/propertystore/base.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 24 20:39:18 PDT 2010


Revision: 5396
          http://trac.macosforge.org/projects/calendarserver/changeset/5396
Author:   wsanchez at apple.com
Date:     2010-03-24 20:39:18 -0700 (Wed, 24 Mar 2010)
Log Message:
-----------
PropertyName.fromString() should return a PropertyName, not a tuple.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/propertystore/base.py

Modified: CalendarServer/trunk/txdav/propertystore/base.py
===================================================================
--- CalendarServer/trunk/txdav/propertystore/base.py	2010-03-25 03:37:42 UTC (rev 5395)
+++ CalendarServer/trunk/txdav/propertystore/base.py	2010-03-25 03:39:18 UTC (rev 5396)
@@ -43,7 +43,7 @@
         if (index is -1 or not len(sname) > index or not sname[0] == "{"):
             raise TypeError("Invalid sname: %r" % (sname,))
 
-        return (sname[1:index], sname[index+1:])
+        return PropertyName(sname[1:index], sname[index+1:])
 
     def __init__(self, namespace, name):
         self.namespace = namespace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100324/7da62898/attachment.html>


More information about the calendarserver-changes mailing list