Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / lib / db @ 39b2cb50

Latest revisions

# Date Author Comment
39b2cb50 04/05/2013 06:48 pm Giorgos Korfiatis

wip Restructure astakos views

Replace custom transaction context with:

- decorator `commit_on_success_strict', which uses
transaction.commit_manually and ensures that
the transaction rolls back on any exception

- context ExceptionHandler, which logs and...

1fd14d3d 03/22/2013 04:23 pm Giorgos Korfiatis

Return EmptyQuerySet on an EmptyResultSet

Refs #3489

Call to as_sql() raises EmptyResultSet in a couple of occasions,
more importantly when filtering based on an empty list: filter(field__in=[]).

a6a152d6 03/22/2013 03:55 pm Giorgos Korfiatis

Move managers.py in synnefo.lib.db

This makes it easier to maintain, since it is used in multiple applications
(astakos.im and quotaholder_app).

0275cd41 02/15/2013 12:13 pm Giorgos Korfiatis

pep8 fixes and copyright notice

c5d7bb5d 02/14/2013 04:27 pm Giorgos Korfiatis

Simplify handler's call

f77af2cc 01/30/2013 03:39 pm Giorgos Korfiatis

Rollback, even if transaction is not dirty

This is a temporary bug fix for
https://code.djangoproject.com/ticket/9964 .
Django prior to 1.3 does not set a transaction
dirty when the DB throws an exception, and thus
does not trigger rollback, resulting in a...

11ed5cdc 01/28/2013 09:05 pm Giorgos Korfiatis

Do not postprocess if it's marked for rollback

26e15cff 01/28/2013 07:39 pm Giorgos Korfiatis

Run postprocess in a transaction context too

7d95385b 01/24/2013 12:00 pm Giorgos Korfiatis

Cleanup transaction context

1c65202f 01/23/2013 07:00 pm Giorgos Korfiatis

Remove a debugging print

View revisions

Also available in: Atom