[CalendarServer-changes] [5450] CalendarServer/trunk/twistedcaldav/config.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 8 16:07:12 PDT 2010


Revision: 5450
          http://trac.macosforge.org/projects/calendarserver/changeset/5450
Author:   sagen at apple.com
Date:     2010-04-08 16:07:11 -0700 (Thu, 08 Apr 2010)
Log Message:
-----------
So as not to cause a flurry of updates, don't mark ourselves dirty when the attribute begins with an underscore

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/config.py

Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py	2010-04-08 20:21:05 UTC (rev 5449)
+++ CalendarServer/trunk/twistedcaldav/config.py	2010-04-08 23:07:11 UTC (rev 5450)
@@ -144,8 +144,12 @@
             self._data[attr] = value
         else:
             self.__dict__[attr] = value
-        self.__dict__["_dirty"] = True
 
+        # So as not to cause a flurry of updates, don't mark ourselves
+        # dirty when the attribute begins with an underscore
+        if not attr.startswith("_"):
+            self.__dict__["_dirty"] = True
+
     def __getattr__(self, attr):
         if self._dirty:
             self.update()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100408/d1daa70d/attachment.html>


More information about the calendarserver-changes mailing list