1.1 --- a/imip_store.py Mon Feb 08 18:46:31 2016 +0100
1.2 +++ b/imip_store.py Mon Feb 08 20:18:15 2016 +0100
1.3 @@ -961,6 +961,24 @@
1.4 def __init__(self, store_dir=None):
1.5 FileBase.__init__(self, store_dir or JOURNAL_DIR)
1.6
1.7 + # Quota and user identity/group discovery.
1.8 +
1.9 + def get_quotas(self):
1.10 +
1.11 + "Return a list of quotas."
1.12 +
1.13 + return listdir(self.store_dir)
1.14 +
1.15 + def get_quota_users(self, quota):
1.16 +
1.17 + "Return a list of quota users."
1.18 +
1.19 + filename = self.get_object_in_store(quota, "journal")
1.20 + if not filename or not isdir(filename):
1.21 + return []
1.22 +
1.23 + return listdir(filename)
1.24 +
1.25 # Groups of users sharing quotas.
1.26
1.27 def get_groups(self, quota):