Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / management / commands / resource-import.py @ a3e3917f

History | View | Annotate | Download (3.3 kB)

# Date Author Comment
a3e3917f 10/09/2013 04:52 pm Giorgos Korfiatis

astakos: Remove custom commit_on_success decorator

Prior to 1.3, django wouldn't set the transaction dirty upon a DB
exception and thus wouldn't trigger a rollback, resulting in a dangling
aborted DB exception. See https://code.djangoproject.com/ticket/9964...

38807757 06/04/2013 06:19 pm Giorgos Korfiatis

astakos: Register resources with services

If service-import finds resource definitions included in a service
definition, it imports them, too.

ea2c0e6f 06/04/2013 05:48 pm Giorgos Korfiatis

astakos: Cleanup and pep8 fixes in commands

c25f5ed0 06/04/2013 05:48 pm Giorgos Korfiatis

astakos: Support reading from stdin in import commands

In commands resource-import and service-import, read from standard input
with `--json -'.

bd1f667b 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Import new-style services and resources

781c7b4b 05/15/2013 06:49 pm Giorgos Korfiatis

astakos: Remove two options from resource-import

--service: We do not support automatic importing of resources
--conf: Use resource-modify to configure resource limit

73c02f75 05/14/2013 05:04 pm Giorgos Korfiatis

astakos: Return resource object upon creation

3a527b3a 04/25/2013 04:01 pm Giorgos Korfiatis

astakos: Separate importing resources from setting limits

`snf-manage resource-import' does not provide a way to change the
default base quota any more. When importing a resource for the first
time, it sets the limit to zero.

Use `snf-manage resource-modify' to change limits. It supports both...

b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

b1ea24f3 04/18/2013 12:20 pm Giorgos Korfiatis

Import resources from definition and config files

Register a service's resources giving option --json <file>.
The json file is expected to represent a dictionary with keys
"service" and "resources".

Currently the default base quota (uplimit) for each resource is read...

9747707e 04/18/2013 12:20 pm Giorgos Korfiatis

Sync quotas efficiently when importing resources

When changing the default base quota (uplimit) for a preexisting resource,
do a bulk update of the related holdings.
When importing a new resource, create the new related holdings.

Prompt the admin for the uplimit in the management command, if a config...