Commit 0c5a1082 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Move commissioning into snf-common.

parent 9d36266f
from distutils.core import setup
setup (
name = 'commissioning',
version = '0.5',
packages = [
'commissioning',
'commissioning.utils',
]
)
......@@ -2,12 +2,12 @@
from random import random, choice, randint
from math import log
from inspect import isclass
from commissioning.utils.betteron import betteron_decode
from .utils.betteron import betteron_decode
try:
from collections import OrderedDict
except ImportError:
from commissioning.utils.ordereddict import OrderedDict
from .utils.ordereddict import OrderedDict
def shorts(s):
if not isinstance(s, unicode):
......
try:
from collections import OrderedDict
except ImportError:
from commissioning.utils.ordereddict import OrderedDict
from .ordereddict import OrderedDict
from itertools import chain
from cStringIO import StringIO
......
from commissioning import (CallError, register_exception,
InvalidDataError, CorruptedError)
from synnefo.lib.commissioning import (CallError, register_exception,
InvalidDataError, CorruptedError)
@register_exception
class CommissionException(CallError):
......
from commissioning import (CanonifyException, SpecifyException,
Specificator, Null, Integer, Text,
Tuple, ListOf, Dict, Args)
from synnefo.lib.commissioning import (CanonifyException, SpecifyException,
Specificator, Null, Integer, Text,
Tuple, ListOf, Dict, Args)
Context = Dict(classname='Context', null=True)
......
......@@ -4,8 +4,10 @@ from synnefo.lib.quotaholder.api import (
NoQuantityError, NoCapacityError,
ExportLimitError, ImportLimitError)
from commissioning import Callpoint, CorruptedError, InvalidDataError
from commissioning.utils.newname import newname
from synnefo.lib.commissioning import \
Callpoint, CorruptedError, InvalidDataError
from synnefo.lib.commissioning.utils.newname import newname
from django.db.models import Q
from django.db import transaction, IntegrityError
from .models import (Holder, Entity, Policy, Holding,
......
from commissioning import CorruptedError
from synnefo.lib.commissioning import CorruptedError
from django.db.models import Model, BigIntegerField, CharField, ForeignKey
from django.db import transaction
......
......@@ -2,7 +2,7 @@
from django.http import HttpResponse
from django.db import transaction
from django.conf import settings
from commissioning import CallError, get_callpoint
from synnefo.lib.commissioning import CallError, get_callpoint
from .callpoint import API_Callpoint
......
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