[CalendarServer-changes] [5562] CalendarServer/branches/users/wsanchez/transations/twext/web2/dav/ element/base.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 4 16:56:39 PDT 2010
Revision: 5562
http://trac.macosforge.org/projects/calendarserver/changeset/5562
Author: glyph at apple.com
Date: 2010-05-04 16:56:36 -0700 (Tue, 04 May 2010)
Log Message:
-----------
These are classmethods, don't try to confuse me.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/transations/twext/web2/dav/element/base.py
Modified: CalendarServer/branches/users/wsanchez/transations/twext/web2/dav/element/base.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/twext/web2/dav/element/base.py 2010-05-04 22:41:58 UTC (rev 5561)
+++ CalendarServer/branches/users/wsanchez/transations/twext/web2/dav/element/base.py 2010-05-04 23:56:36 UTC (rev 5562)
@@ -75,11 +75,11 @@
protected = False # See RFC 3253 section 1.4.1
unregistered = False # Subclass of factory; doesn't register
- def qname(self):
- return (self.namespace, self.name)
+ def qname(cls):
+ return (cls.namespace, cls.name)
- def sname(self):
- return "{%s}%s" % (self.namespace, self.name)
+ def sname(cls):
+ return "{%s}%s" % (cls.namespace, cls.name)
qname = classmethod(qname)
sname = classmethod(sname)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100504/65e9fb62/attachment.html>
More information about the calendarserver-changes
mailing list