Changeset 7073 for main/waeup.sirp/trunk/src
- Timestamp:
- 11 Nov 2011, 07:47:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/imagestorage.py
r7066 r7073 335 335 return fd 336 336 337 def getFileByContext(self, context ):337 def getFileByContext(self, context, attr=None): 338 338 """Get a file for given context. 339 339 … … 343 343 344 344 This method takes into account registered handlers and file 345 name choosers for context types. 345 name choosers for context types to build an intermediate file 346 id for the context and `attr` given. 347 348 Both, `context` and `attr` are used to find (`context`) 349 and feed (`attr`) an appropriate file name chooser. 346 350 347 351 This is a convenience method that internally calls … … 351 355 :class:`DefaultFileStoreHandler`. 352 356 """ 353 file_id = IFileStoreNameChooser(context).chooseName( )357 file_id = IFileStoreNameChooser(context).chooseName(attr=attr) 354 358 return self.getFile(file_id) 355 359
Note: See TracChangeset for help on using the changeset viewer.