Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / quotaholder_app @ 3466f0a3

Name Size
  management
  migrations
__init__.py 0 Bytes
callpoint.py 10.1 kB
commission.py 5 kB
exception.py 2.5 kB
models.py 3.6 kB
tests.py 10.4 kB

Latest revisions

# Date Author Comment
c3b42b86 06/10/2013 11:45 am Giorgos Korfiatis

quotaholder: Revert migration of log timestamps

Because migrating the timestamp fields of model ProvisionLog from string
to datetime takes too long, we keep them in string format.

Alter migrations 0005 through 0007 introduced in commit 164e64d.

a4451f59 05/28/2013 06:22 pm Giorgos Korfiatis

quotaholder: Add management commands for commissions

Add commands `commission-list' and `commission-show' to display
pending commissions. The former supports option `--overdue' to
restrict the age of pending commissions.

Refs #3557

164e64d5 05/28/2013 06:21 pm Giorgos Korfiatis

quotaholder: Store timestamps using DateTimeField

Add new fields issue_datetime in Commission and issue_datetime,
log_datetime in ProvisionLog. Migrate away from custom string-based
issue_time and log_time fields.

ea1369dc 05/27/2013 05:27 pm Giorgos Korfiatis

quotaholder: pep8 fixes

f7b7da5d 05/20/2013 05:48 pm Giorgos Korfiatis

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...

2e7924de 05/20/2013 03:14 pm Giorgos Korfiatis

astakos: Remove some unused imports

Also add a missing import in quotas.py

01b8fb9a 05/16/2013 06:41 pm Giorgos Korfiatis

quotaholder: Ignore force option when releasing

Since negative usage makes no sense, we always check this lower
boundary when issuing a commission.

aba462a2 05/16/2013 02:55 pm Giorgos Korfiatis

astakos: Adapt tests to 2.6-style unittest

Define assertGreater, assertIn, assertRaises in snf_django.utils.testing

3a8e56bc 05/14/2013 11:14 am Giorgos Korfiatis

quotaholder: Unify included data in overLimit errors

Replace `available' with `usage' and `limit' in NoQuantityError
to make it similar to NoCapacityError.

7585a768 04/30/2013 06:06 pm Giorgos Korfiatis

quotaholder: Allow resolving empty commissions

When resolving a pending commission, handle the case where the commission
has been issued with no provisions.

View revisions

Also available in: Atom