Revision b18ef3ad pithos/backends/base.py

b/pithos/backends/base.py
111 111
        """
112 112
        return
113 113
    
114
    def list_containers(self, user, account, marker=None, limit=10000, until=None):
114
    def list_containers(self, user, account, marker=None, limit=10000, shared=False, until=None):
115 115
        """Return a list of container names existing under an account.
116 116
        
117 117
        Parameters:
118 118
            'marker': Start list from the next item after 'marker'
119 119
            'limit': Number of containers to return
120
            'shared': Only list containers with permissions set
120 121
        
121 122
        Raises:
122 123
            NotAllowedError: Operation not permitted
......
195 196
        """
196 197
        return
197 198
    
198
    def list_objects(self, user, account, container, prefix='', delimiter=None, marker=None, limit=10000, virtual=True, keys=[], until=None):
199
    def list_objects(self, user, account, container, prefix='', delimiter=None, marker=None, limit=10000, virtual=True, keys=[], shared=False, until=None):
199 200
        """Return a list of object (name, version_id) tuples existing under a container.
200 201
        
201 202
        Parameters:
......
209 210
                       If set, the result will include all names after 'prefix',\
210 211
                       up to and including the 'delimiter' if it is found
211 212
            'keys': Include objects that have meta with the keys in the list
213
            'shared': Only list objects with permissions set
212 214
        
213 215
        Raises:
214 216
            NotAllowedError: Operation not permitted

Also available in: Unified diff