Changeset 7073


Ignore:
Timestamp:
11 Nov 2011, 07:47:44 (13 years ago)
Author:
uli
Message:

Update ExtFileStore? to reflect last interface change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/imagestorage.py

    r7066 r7073  
    335335        return fd
    336336
    337     def getFileByContext(self, context):
     337    def getFileByContext(self, context, attr=None):
    338338        """Get a file for given context.
    339339
     
    343343
    344344        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.
    346350
    347351        This is a convenience method that internally calls
     
    351355                     :class:`DefaultFileStoreHandler`.
    352356        """
    353         file_id = IFileStoreNameChooser(context).chooseName()
     357        file_id = IFileStoreNameChooser(context).chooseName(attr=attr)
    354358        return self.getFile(file_id)
    355359
Note: See TracChangeset for help on using the changeset viewer.