add enumerate and delete method for manage storage
[tiramisu.git] / tiramisu / storage / dictionary / storage.py
index 876f5da..759e5e0 100644 (file)
 
 
 from tiramisu.i18n import _
+from tiramisu.error import ConfigError
+
+
+def enumerate():
+    return []
+
+
+def delete(session_id):
+    raise ConfigError(_('dictionary storage cannot delete session'))
 
 
 class Storage(object):
     __slots__ = tuple()
     storage = 'dictionary'
 
-    def __init__(self, config_id, is_persistent):
+    def __init__(self, session_id, is_persistent):
         if is_persistent:
             raise ValueError(_('a dictionary cannot be persistent'))