Changeset 61286 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/useraccount.py
- Timestamp:
- May 30, 2016 12:22:41 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107578
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/useraccount.py
r61270 r61286 121 121 def __init__(self, oDb): 122 122 ModelLogicBase.__init__(self, oDb) 123 self. ahCache = None;123 self.dCache = None; 124 124 125 125 def fetchForListing(self, iStart, cMaxRows, tsNow): … … 232 232 Raises exception on DB error. 233 233 """ 234 if self. ahCache is None:235 self. ahCache = self._oDb.getCache('UserAccount');236 237 oUser = self. ahCache.get(uid, None);234 if self.dCache is None: 235 self.dCache = self._oDb.getCache('UserAccount'); 236 237 oUser = self.dCache.get(uid, None); 238 238 if oUser is None: 239 239 self._oDb.execute('SELECT *\n' … … 255 255 if self._oDb.getRowCount() == 1: 256 256 oUser = UserAccountData().initFromDbRow(self._oDb.fetchOne()); 257 self. ahCache[uid] = oUser;257 self.dCache[uid] = oUser; 258 258 return oUser; 259 259
Note:
See TracChangeset
for help on using the changeset viewer.