Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/local/mountset.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/local/mountset.py')
-rw-r--r--sugar_network/local/mountset.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sugar_network/local/mountset.py b/sugar_network/local/mountset.py
index ef74648..c8a3337 100644
--- a/sugar_network/local/mountset.py
+++ b/sugar_network/local/mountset.py
@@ -63,7 +63,8 @@ class Mountset(dict, ad.CommandsProcessor, Commands, SyncCommands):
mount.set_mounted(False)
dict.__delitem__(self, mountpoint)
- @ad.volume_command(method='GET', cmd='mounts')
+ @ad.volume_command(method='GET', cmd='mounts',
+ mime_type='application/json')
def mounts(self):
result = []
for path, mount in self.items():
@@ -75,7 +76,8 @@ class Mountset(dict, ad.CommandsProcessor, Commands, SyncCommands):
})
return result
- @ad.volume_command(method='GET', cmd='mounted')
+ @ad.volume_command(method='GET', cmd='mounted',
+ mime_type='application/json')
def mounted(self, mountpoint):
mount = self.get(mountpoint)
if mount is None: