Changeset 6291
- Timestamp:
- 6 Jun 2011, 22:49:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/image/image.py
r6284 r6291 36 36 """ 37 37 implements(IWAeUPImageFile) 38 39 def _get_file(self):40 """Get the real file.41 42 We have to override this method from43 :class:`hurry.file.HurryFile` base because we need a more44 careful utility lookup.45 """46 storage = queryUtility(IFileRetrieval)47 if storage is None:48 # can happen on startup, see https://trac.waeup.org/ticket/3249 return StringIO(self.data)50 return storage.getFile(self.data)51 52 file = property(_get_file)
Note: See TracChangeset for help on using the changeset viewer.