# HG changeset patch # User Paul Boddie # Date 1454945706 -3600 # Node ID 5a9722130d257d6227fedbbc529f0f792c690a88 # Parent 9bc020106f0e6dcbf943ec4155bc3d9c2e462822 Used event-related attributes stored in the handler directly. diff -r 9bc020106f0e -r 5a9722130d25 imiptools/handlers/scheduling/quota.py --- a/imiptools/handlers/scheduling/quota.py Mon Feb 08 16:34:24 2016 +0100 +++ b/imiptools/handlers/scheduling/quota.py Mon Feb 08 16:35:06 2016 +0100 @@ -78,7 +78,7 @@ journal = handler.get_journal() entries = journal.get_entries(quota, group) - if _add_to_entries(entries, handler.obj.get_uid(), handler.obj.get_recurrenceid(), format_duration(total)): + if _add_to_entries(entries, handler.uid, handler.recurrenceid, format_duration(total)): journal.set_entries(quota, group, entries) def remove_from_quota(handler, args): @@ -97,7 +97,7 @@ journal = handler.get_journal() entries = journal.get_entries(quota, group) - if _remove_from_entries(entries, handler.obj.get_uid(), handler.obj.get_recurrenceid(), format_duration(total)): + if _remove_from_entries(entries, handler.uid, handler.recurrenceid, format_duration(total)): journal.set_entries(quota, group, entries) def _get_quota_and_group(handler, args):