Added mount() and mounts() methods to datastore.
This commit is contained in:
parent
4f748dba9b
commit
e894bb54a6
@ -142,3 +142,8 @@ def find(query, sorting=None, limit=None, offset=None, reply_handler=None,
|
||||
|
||||
return objects, total_count
|
||||
|
||||
def mount(uri, options):
|
||||
return dbus_helpers.mount(uri, options)
|
||||
|
||||
def mounts():
|
||||
return dbus_helpers.mounts()
|
||||
|
@ -59,10 +59,16 @@ def get_filename(uid):
|
||||
return filename
|
||||
|
||||
def find(query, reply_handler, error_handler):
|
||||
logging.debug('dbus_helpers.find')
|
||||
logging.debug('dbus_helpers.find: %r' % query)
|
||||
if reply_handler and error_handler:
|
||||
return _data_store.find(query, reply_handler=reply_handler,
|
||||
error_handler=error_handler)
|
||||
else:
|
||||
return _data_store.find(query)
|
||||
|
||||
def mount(uri, options):
|
||||
return _data_store.mount(uri, options)
|
||||
|
||||
def mounts():
|
||||
return _data_store.mounts()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user