Changeset 4854 for waeup/branches
- Timestamp:
- 18 Jan 2010, 12:56:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-importers/src/waeup/interfaces.py
r4851 r4854 26 26 up a catalog. 27 27 """ 28 catalog = None29 _cached_values = None30 28 def getValues(self): 31 if self._cached_values is not None: 32 return self._cached_values 33 self.catalog = getUtility(ICatalog, name='courses_catalog') 34 self._cached_values = list( 35 self.catalog.searchResults(code=('', 'z*'))) 36 return self._cached_values 29 catalog = getUtility(ICatalog, name='courses_catalog') 30 return list(catalog.searchResults(code=('', 'z*'))) 37 31 38 32 def getToken(self, value):
Note: See TracChangeset for help on using the changeset viewer.