Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / lib / db @ d509e6da

# Date Author Comment
b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

b052f360 04/19/2013 12:23 pm Giorgos Korfiatis

Move intdecimalfield.py to snf_django package

Rename it to fields.py and update all migrations that reference the field.

222a4f6a 04/19/2013 11:09 am Giorgos Korfiatis

Move managers.py to snf_django package

befa5997 04/11/2013 02:07 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/api/service.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py

1a736ca8 04/08/2013 04:27 pm Christos Stavrakakis

Use 'python-objpool' instead of 'synnefo.lib.pool'

Use the python-objpool package for pooling resources as object, instead
of the pooling code that existed in snf-common ('synnefo.lib.pool')

Refs #3524

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

d55d4f34 01/23/2013 06:56 pm Giorgos Korfiatis

Custom transaction context

A context which can be used as a decorator;
it commits the transaction if no exception was raised and
the rollback flag was not checked.
Executes customizable code after committing.

0f0dd7df 01/14/2013 05:50 pm Giorgos Korfiatis

Additional parameters in the field constructor

c11dc0ce 01/07/2013 05:20 pm Giorgos Korfiatis

Redefine IntDecimalField to allow support for south migration;
apply the new field to astakos.im.ProjectResourceGrant

00698e35 09/18/2012 10:31 am Christos Stavrakakis

Fix cleanup of DB pooled connections

Fix bug in cleanup of DB pooled connections before putting them back to
the pool. The way the connection was cleaned, resulted in mishandling of
the transactions.

Accoring to psycopg2 docs, in case of a READ COMMITED isolation level:...

702850c4 09/12/2012 01:17 pm Christos Stavrakakis

Enhange logging in db and http pools

c4dcfcf6 09/07/2012 03:36 pm Georgios D. Tsoukalas

port pooled psycopg2 to new pool api

ab133e68 09/07/2012 01:25 pm Vangelis Koukis

Move pooling psycopg2 wrapper to synnefo.lib.db

Move pooling psycopg2 wrapper to synnefo.lib.db,
please see commit e83ed1fb8fb4d0d19c2d3f86152fde60b3cadfd9 for all the
details on how to use the pooling wrapper for psycopg2.