Index: /main/waeup.sirp/trunk/src/waeup/sirp/imagestorage.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/imagestorage.py	(revision 7072)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/imagestorage.py	(revision 7073)
@@ -335,5 +335,5 @@
         return fd
 
-    def getFileByContext(self, context):
+    def getFileByContext(self, context, attr=None):
         """Get a file for given context.
 
@@ -343,5 +343,9 @@
 
         This method takes into account registered handlers and file
-        name choosers for context types.
+        name choosers for context types to build an intermediate file
+        id for the context and `attr` given.
+
+        Both, `context` and `attr` are used to find (`context`)
+        and feed (`attr`) an appropriate file name chooser.
 
         This is a convenience method that internally calls
@@ -351,5 +355,5 @@
                      :class:`DefaultFileStoreHandler`.
         """
-        file_id = IFileStoreNameChooser(context).chooseName()
+        file_id = IFileStoreNameChooser(context).chooseName(attr=attr)
         return self.getFile(file_id)
 
