[CalendarServer-changes] [1404]
CalendarServer/trunk/twistedcaldav/config.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 20 10:31:03 PDT 2007
Revision: 1404
http://trac.macosforge.org/projects/calendarserver/changeset/1404
Author: dreid at apple.com
Date: 2007-03-20 10:31:02 -0700 (Tue, 20 Mar 2007)
Log Message:
-----------
use self.__dict__ instead of calling hasattr and self._data in the __setattr__
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/config.py
Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py 2007-03-19 22:59:35 UTC (rev 1403)
+++ CalendarServer/trunk/twistedcaldav/config.py 2007-03-20 17:31:02 UTC (rev 1404)
@@ -199,7 +199,7 @@
self._defaults = copy.deepcopy(defaults)
def __setattr__(self, attr, value):
- if hasattr(self, '_data') and attr in self._data:
+ if '_data' in self.__dict__ and attr in self.__dict__['_data']:
self._data[attr] = value
else:
self.__dict__[attr] = value
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070320/77d1172c/attachment.html
More information about the calendarserver-changes
mailing list