Changeset 7090


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

Extend ExtFileStore? interface with methods to remove files from file
store. This way we start to define what we expect from delete methods.

File:
1 edited

Legend:

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

    r7071 r7090  
    652652        """
    653653
     654    def deleteFile(file_id):
     655        """Delete file stored under `file_id`.
     656
     657        Remove file from filestore so, that it is not available
     658        anymore on next call to getFile for the same file_id.
     659
     660        Should not complain if no such file exists.
     661        """
     662
     663    def deleteFileByContext(context, attr=None):
     664        """Delete file for given `context` and `attr`.
     665
     666        Both, `context` and `attr` might be used to find (`context`)
     667        and feed (`attr`) an appropriate file name chooser.
     668
     669        This is a convenience method.
     670        """
     671
    654672    def createFile(filename, f):
    655673        """Create file given by f with filename `filename`
Note: See TracChangeset for help on using the changeset viewer.