Commit 04ed1128 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Move transaction.py to snf_django package

parent 615986c3
......@@ -35,7 +35,7 @@ from django.utils import simplejson as json
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
from astakos.api.util import json_response
from snf_django.lib import api
......
......@@ -38,7 +38,7 @@ from astakos.im.models import AstakosUser
from astakos.im.quotas import sync_all_users, sync_users
from astakos.im.functions import get_user_by_uuid
from astakos.im.management.commands._common import is_uuid, is_email
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
import logging
logger = logging.getLogger(__name__)
......
......@@ -36,7 +36,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from astakos.im.functions import (terminate, suspend, resume, check_expiration,
approve_application, deny_application)
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
class Command(BaseCommand):
......
......@@ -37,7 +37,7 @@ from django.core.management.base import BaseCommand, CommandError
from django.db.utils import IntegrityError
from django.utils import simplejson as json
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
from astakos.im.resources import add_resource
......
......@@ -44,7 +44,7 @@ from astakos.im.functions import (activate, deactivate,
set_pending_application_limit,
unset_pending_application_limit)
from ._common import remove_user_permission, add_user_permission
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
class Command(BaseCommand):
......
......@@ -114,7 +114,7 @@ from astakos.im.api import get_services_dict
from astakos.im import settings as astakos_settings
from astakos.im.api.callpoint import AstakosCallpoint
from astakos.im import auth_providers as auth
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
from astakos.im.ctx import ExceptionHandler
logger = logging.getLogger(__name__)
......
......@@ -50,7 +50,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'synnefo.settings'
from astakos.im.api.callpoint import AstakosCallpoint
from astakos.im.functions import get_chain_of_application_id
from views import submit, approve, join, leave
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
USERS = {}
PROJECTS = {}
......
......@@ -36,7 +36,7 @@ from datetime import datetime, timedelta
from astakos.im.models import AstakosUser
from astakos.im.functions import (join_project, leave_project,
submit_application, approve_application)
from synnefo.lib.db.transaction import commit_on_success_strict
from snf_django.lib.db.transaction import commit_on_success_strict
@commit_on_success_strict()
def join(proj_id, user_id, ctx=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment