Commits

Jeffrey Johnson  committed da4f7d1

sdf

  • Participants
  • Parent commits 4317382

Comments (0)

Files changed (1)

File trollop/lib.py

 
         # If we've been passed the data, then remember it and don't bother
         # fetching later.
-        if data:
-            self._data = data
+        #if data:
+        #    self._data = data
 
     def __getattr__(self, attr):
         if attr == '_data':
             # Something is trying to access the _data attribute.  If we haven't
             # fetched data from Trello yet, do so now.  Cache the result on the
             # object.
-            if not '_data' in self.__dict__:
-                self._data = json.loads(self._conn.get(self._path))
+            #if not '_data' in self.__dict__:
+            self._data = json.loads(self._conn.get(self._path))
 
             return self._data
         else:
         self.cls = cls
 
     def __get__(self, instance, owner):
-        if not hasattr(self, '_list'):
-            cls = get_class(self.cls)
-            path = instance._prefix + instance._id + cls._prefix
-            data = json.loads(instance._conn.get(path))
-            self._list = [cls(instance._conn, d['id'], d) for d in data]
+        #if not hasattr(self, '_list'):
+        cls = get_class(self.cls)
+        path = instance._prefix + instance._id + cls._prefix
+        data = json.loads(instance._conn.get(path))
+        self._list = [cls(instance._conn, d['id'], d) for d in data]
         return self._list
 
 ### BEGIN ACTUAL WRAPPER OBJECTS