Revert backend base.
[pithos] / pithos / backends / base.py
index fbf434c..3651236 100644 (file)
@@ -55,6 +55,10 @@ class BaseBackend(object):
         'default_policy': A dictionary with default policy settings
     """
     
+    def __init__(self, db_module, db_connection, block_module, block_path):
+        """Initialize backend with supplied modules and options."""
+        pass
+    
     def close(self):
         """Close the backend connection."""
         pass
@@ -294,16 +298,6 @@ class BaseBackend(object):
         """
         return []
     
-    def list_public(self, user, account, container):
-        """Return a list of object (name, version_id) tuples existing under a container and are public.
-        
-        Raises:
-            NotAllowedError: Operation not permitted
-            
-            NameError: Container does not exist
-        """
-        return []
-    
     def list_object_meta(self, user, account, container, until=None):
         """Return a list with all the container's object meta keys.