Commit 1c821f5c authored by Christos Stavrakakis's avatar Christos Stavrakakis

Fix stale import statements

Commit 7cfc0ce moved code from webproject to snf_django. This commit
fixes some stale imports that skipped renaming.
parent 54ffba9b
......@@ -36,7 +36,7 @@ from django.core.management.base import CommandError
from astakos.im.models import AuthProviderPolicyProfile as Profile
from synnefo.lib.ordereddict import OrderedDict
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
class Command(SynnefoCommand):
......
......@@ -36,7 +36,7 @@ from optparse import make_option
from snf_django.management.commands import SynnefoCommand, CommandError
from astakos.im.models import Chain
from synnefo.webproject.management import utils
from snf_django.management import utils
from ._common import is_uuid, is_email
......
......@@ -36,7 +36,7 @@ from django.core.management.base import CommandError
from synnefo.lib.ordereddict import OrderedDict
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
from astakos.im.models import Chain, ProjectApplication
from ._common import show_resource_value, style_options, check_style
......
......@@ -41,7 +41,7 @@ from astakos.im.functions import get_user_by_uuid
from astakos.im.management.commands._common import is_uuid, is_email
from snf_django.lib.db.transaction import commit_on_success_strict
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
from ._common import show_quotas, style_options, check_style, units
import logging
......
......@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from synnefo.webproject.management.utils import pprint_table
from snf_django.management.utils import pprint_table
from snf_django.lib.db.transaction import commit_on_success_strict
from astakos.im.models import Component, AstakosUser
from astakos.im.quotas import service_get_quotas, SYSTEM
......
......@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from django.utils import simplejson as json
from synnefo.webproject.management import utils
from snf_django.management import utils
from astakos.im.models import Resource
from astakos.im.register import update_resource
from ._common import show_resource_value, style_options, check_style, units
......
......@@ -35,7 +35,7 @@ from django.core.management.base import CommandError
from astakos.im.models import Service, EndpointData
from synnefo.lib.ordereddict import OrderedDict
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
class Command(SynnefoCommand):
......
......@@ -39,7 +39,7 @@ from astakos.im.quotas import list_user_quotas
from synnefo.lib.ordereddict import OrderedDict
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
from ._common import show_quotas, style_options, check_style
......
......@@ -33,7 +33,7 @@
from django.core.management.base import CommandError
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from snf_django.management import utils
from astakos.quotaholder_app.models import Commission, Provision
......
......@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from synnefo.management.common import get_flavor
from synnefo.webproject.management.utils import parse_bool
from snf_django.management.utils import parse_bool
from logging import getLogger
......
......@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from synnefo.management.common import get_backend, convert_api_faults
from synnefo.webproject.management.utils import parse_bool
from snf_django.management.utils import parse_bool
from synnefo.db.models import Network, Backend
from synnefo.logic import networks
......
......@@ -39,7 +39,7 @@ from synnefo.db.models import (Network, Backend, BackendNetwork,
pooled_rapi_client)
from synnefo.management.common import (validate_network_info, get_network,
get_backend)
from synnefo.webproject.management.utils import parse_bool
from snf_django.management.utils import parse_bool
from synnefo.logic.backend import create_network, delete_network
HELP_MSG = """Modify a network.
......
......@@ -38,7 +38,7 @@ from synnefo.management.common import (format_vm_state, get_vm,
from snf_django.lib.astakos import UserCache
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
ASTAKOS_BASE_URL)
from synnefo.webproject.management import utils
from snf_django.management import utils
class Command(SynnefoCommand):
......
......@@ -38,7 +38,7 @@ from synnefo.logic.backend import (get_physical_resources,
create_network_synced,
connect_network_synced)
from synnefo.management.common import check_backend_credentials
from synnefo.webproject.management.utils import pprint_table
from snf_django.management.utils import pprint_table
HYPERVISORS = [h[0] for h in Backend.HYPERVISORS]
......
......@@ -34,7 +34,7 @@
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from synnefo.db.models import Backend
from synnefo.webproject.management.utils import parse_bool
from snf_django.management.utils import parse_bool
from synnefo.management.common import (get_backend, check_backend_credentials)
HYPERVISORS = [h[0] for h in Backend.HYPERVISORS]
......
......@@ -41,7 +41,7 @@ from optparse import make_option
from django.core.management.base import BaseCommand
from synnefo.management.common import get_backend
from synnefo.logic import reconciliation
from synnefo.webproject.management.utils import parse_bool
from snf_django.management.utils import parse_bool
class Command(BaseCommand):
......
......@@ -31,7 +31,7 @@
from django.core.management.base import BaseCommand
from optparse import make_option
from synnefo.webproject.management.utils import pprint_table
from snf_django.management.utils import pprint_table
from synnefo.plankton.utils import image_backend
......
......@@ -31,7 +31,7 @@
from django.core.management.base import BaseCommand, CommandError
from synnefo.plankton.utils import image_backend
from synnefo.webproject.management import utils
from snf_django.management import utils
class Command(BaseCommand):
......
......@@ -39,7 +39,7 @@ from optparse import make_option
from synnefo import quotas
from synnefo.quotas.util import (get_db_holdings, get_quotaholder_holdings,
transform_quotas)
from synnefo.webproject.management.utils import pprint_table
from snf_django.management.utils import pprint_table
from synnefo.settings import CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN
......
import sys
from synnefo.webproject.management import utils
from snf_django.management import utils
# Use backported unittest functionality if Python < 2.7
try:
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
from pithos.api.manage_accounts import ManageAccounts
from synnefo.webproject.management.utils import pprint_table
from snf_django.management.utils import pprint_table
import argparse
......
......@@ -39,7 +39,7 @@ from pithos.api.util import get_backend
from pithos.api.resources import resources
from pithos.backends.modular import DEFAULT_SOURCE
from synnefo.webproject.management import utils
from snf_django.management import utils
from astakosclient.errors import QuotaLimit, NotFound
......
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