incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1445551 - /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py
Date Wed, 13 Feb 2013 11:00:18 GMT
Author: gjm
Date: Wed Feb 13 11:00:18 2013
New Revision: 1445551

URL: http://svn.apache.org/r1445551
Log:
fix key names to get the data and fields for table.field = value style updates - #378

Modified:
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py?rev=1445551&r1=1445550&r2=1445551&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py Wed Feb 13 11:00:18
2013
@@ -83,9 +83,8 @@ class ModelBase(object):
     
     def __setattr__(self, name, value):
         """Overridden to allow table.field = value style field setting."""
-        data = self.__dict__.get('data')
-        fields = self.__dict__.get('fields')
-        
+        data = self.__dict__.get('_data')
+        fields = self.__dict__.get('_all_fields')
         if data and fields and name in fields:
             self._data[name] = value
         else:



Mime
View raw message