server/sources/storages.py
branchstable
changeset 5625 6ee2a7b6f194
parent 5599 be94157bd754
child 5627 a7e40cccdc9b
child 5693 8af6623f3d4e
--- a/server/sources/storages.py	Wed Jun 02 13:00:27 2010 +0200
+++ b/server/sources/storages.py	Wed Jun 02 13:01:45 2010 +0200
@@ -33,10 +33,10 @@
     """abstract storage
 
     * If `source_callback` is true (by default), the callback will be run during
-      query result process of fetched attribute's valu and should have the
+      query result process of fetched attribute's value and should have the
       following prototype::
 
-        callback(self, source, value)
+        callback(self, source, session, value)
 
       where `value` is the value actually stored in the backend. None values
       will be skipped (eg callback won't be called).
@@ -99,7 +99,7 @@
         self.default_directory = defaultdir
         self.fsencoding = fsencoding
 
-    def callback(self, source, value):
+    def callback(self, source, session, value):
         """sql generator callback when some attribute with a custom storage is
         accessed
         """