Ignore:
Timestamp:
13 Nov 2011, 10:22:25 (13 years ago)
Author:
Henrik Bettermann
Message:

File name choosers generally don't know the extension of the file stored. So we have to feed the chooseName method with the extension (ext) of the file stored in the file system.

This may conflict somehow with the idea behind the file name chooser. I think you (Uli) intended to use only the attr parameter to select a proper extension. In my opinion it's better to use attr and ext.

File:
1 edited

Legend:

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

    r7092 r7103  
    158158        self.context = context
    159159
    160     def chooseName(self, name=None, attr=None):
     160    def chooseName(self, name=None, attr=None, ext=None):
    161161        # this name chooser returns different file ids depending on
    162162        # the `attr` parameter, a simple string.
Note: See TracChangeset for help on using the changeset viewer.