1.1 --- a/imiptools/stores/common.py Thu Mar 10 01:43:31 2016 +0100
1.2 +++ b/imiptools/stores/common.py Fri Mar 11 01:33:45 2016 +0100
1.3 @@ -19,18 +19,12 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from imiptools.dates import format_datetime
1.8 +from imiptools.dates import format_datetime, get_datetime
1.9
1.10 class StoreBase:
1.11
1.12 "The core operations of a data store."
1.13
1.14 - def acquire_lock(self, user, timeout=None):
1.15 - pass
1.16 -
1.17 - def release_lock(self, user):
1.18 - pass
1.19 -
1.20 # User discovery.
1.21
1.22 def get_users(self):
1.23 @@ -240,7 +234,7 @@
1.24
1.25 # Otherwise, return the providers.
1.26
1.27 - return t[1:]
1.28 + return t
1.29
1.30 def _set_freebusy_providers(self, user, dt_string, t):
1.31
1.32 @@ -567,6 +561,15 @@
1.33
1.34 pass
1.35
1.36 + def set_limit(self, quota, group, limit):
1.37 +
1.38 + """
1.39 + For the given 'quota', set for a user 'group' the given 'limit' on
1.40 + resource usage.
1.41 + """
1.42 +
1.43 + pass
1.44 +
1.45 # Free/busy period access for users within quota groups.
1.46
1.47 def get_freebusy(self, quota, user, mutable=False):