quotaholder: Lock holdings in a single query
Order by primary key when selecting multiple holdings for update;this most probably ensures that locking will happen in that order.
As per commit 2f90645, we select all holdings for the given holders,rather that specifying all tuples (holder, source, resource), in order...
astakos: Remove some unused imports
Also add a missing import in quotas.py
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
quotaholder: Unify included data in overLimit errors
Replace `available' with `usage' and `limit' in NoQuantityErrorto make it similar to NoCapacityError.
quotaholder: Allow resolving empty commissions
When resolving a pending commission, handle the case where the commissionhas been issued with no provisions.
quotaholder: Add migrations
Migration 0001 should be faked on an existing database.Migration 0002 adds new fields.Migration 0003 populates the new fields based on the old ones.Migration 0004 deletes unneeded fields and tables.
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.