[CalendarServer-changes] [3902] CalendarServer/trunk/twistedcaldav/method/report_common.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 19 20:10:57 PDT 2009


Revision: 3902
          http://trac.macosforge.org/projects/calendarserver/changeset/3902
Author:   cdaboo at apple.com
Date:     2009-03-19 20:10:57 -0700 (Thu, 19 Mar 2009)
Log Message:
-----------
Don't do unnecessary property list.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/method/report_common.py

Modified: CalendarServer/trunk/twistedcaldav/method/report_common.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/report_common.py	2009-03-19 21:41:55 UTC (rev 3901)
+++ CalendarServer/trunk/twistedcaldav/method/report_common.py	2009-03-20 03:10:57 UTC (rev 3902)
@@ -266,9 +266,9 @@
         else:
             qname = property
     
-        props = (yield resource.listProperties(request))
+        has = (yield resource.hasProperty(property, request))
 
-        if qname in props:
+        if has:
             try:
                 prop = (yield resource.readProperty(qname, request))
                 properties_by_status[responsecode.OK].append(prop)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090319/ece1ad6a/attachment-0001.html>


More information about the calendarserver-changes mailing list