Commit c34a8574 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

snf-django: Move ListCommand to snf-django

snf-webproject contained the generic ListCommand, and because of this it
had a dependency from snf-django-lib. This commit moves this command from
snf-webproject to snf-django-lib and removes this dependency. Also,
updates all imports of ListCommand.

Refs #4041
parent 4ea656c3
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from astakos.im.models import AuthProviderPolicyProfile from astakos.im.models import AuthProviderPolicyProfile
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
def get_groups(profile): def get_groups(profile):
......
...@@ -35,7 +35,7 @@ from django.core.management.base import CommandError ...@@ -35,7 +35,7 @@ from django.core.management.base import CommandError
from astakos.im.models import AuthProviderPolicyProfile as Profile from astakos.im.models import AuthProviderPolicyProfile as Profile
from synnefo.lib.ordereddict import OrderedDict from synnefo.lib.ordereddict import OrderedDict
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from astakos.im.models import Component from astakos.im.models import Component
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
class Command(ListCommand): class Command(ListCommand):
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from astakos.im.models import Group from astakos.im.models import Group
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
def users_count(group): def users_count(group):
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
from optparse import make_option from optparse import make_option
from synnefo.webproject.management.commands import SynnefoCommand, CommandError from snf_django.management.commands import SynnefoCommand, CommandError
from astakos.im.models import Chain from astakos.im.models import Chain
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
......
...@@ -35,7 +35,7 @@ from optparse import make_option ...@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import CommandError from django.core.management.base import CommandError
from synnefo.lib.ordereddict import OrderedDict from synnefo.lib.ordereddict import OrderedDict
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
from astakos.im.models import Chain, ProjectApplication from astakos.im.models import Chain, ProjectApplication
from ._common import show_resource_value, style_options, check_style from ._common import show_resource_value, style_options, check_style
......
...@@ -40,7 +40,7 @@ from astakos.im.quotas import ( ...@@ -40,7 +40,7 @@ from astakos.im.quotas import (
from astakos.im.functions import get_user_by_uuid from astakos.im.functions import get_user_by_uuid
from astakos.im.management.commands._common import is_uuid, is_email 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.lib.db.transaction import commit_on_success_strict
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
from ._common import show_quotas, style_options, check_style, units from ._common import show_quotas, style_options, check_style, units
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
from optparse import make_option from optparse import make_option
from astakos.im.models import Resource from astakos.im.models import Resource
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from ._common import show_resource_value, style_options, check_style from ._common import show_resource_value, style_options, check_style
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from astakos.im.models import Service from astakos.im.models import Service
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
class Command(ListCommand): class Command(ListCommand):
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
from django.core.management.base import CommandError from django.core.management.base import CommandError
from astakos.im.models import Service, EndpointData from astakos.im.models import Service, EndpointData
from synnefo.lib.ordereddict import OrderedDict from synnefo.lib.ordereddict import OrderedDict
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
from optparse import make_option from optparse import make_option
from astakos.im.models import AstakosUser from astakos.im.models import AstakosUser
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
def get_providers(user): def get_providers(user):
......
...@@ -38,7 +38,7 @@ from astakos.im.models import AstakosUser, get_latest_terms, Chain ...@@ -38,7 +38,7 @@ from astakos.im.models import AstakosUser, get_latest_terms, Chain
from astakos.im.quotas import list_user_quotas from astakos.im.quotas import list_user_quotas
from synnefo.lib.ordereddict import OrderedDict from synnefo.lib.ordereddict import OrderedDict
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
from ._common import show_quotas, style_options, check_style from ._common import show_quotas, style_options, check_style
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from django.core.management.base import CommandError from django.core.management.base import CommandError
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from optparse import make_option from optparse import make_option
from astakos.quotaholder_app.models import Commission from astakos.quotaholder_app.models import Commission
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from django.core.management.base import CommandError from django.core.management.base import CommandError
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils from synnefo.webproject.management import utils
from astakos.quotaholder_app.models import Commission, Provision from astakos.quotaholder_app.models import Commission, Provision
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# interpreted as representing official policies, either expressed # interpreted as representing official policies, either expressed
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from synnefo.db.models import Flavor, VirtualMachine from synnefo.db.models import Flavor, VirtualMachine
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
from optparse import make_option from optparse import make_option
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from synnefo.db.models import Network from synnefo.db.models import Network
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN, from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
ASTAKOS_BASE_URL) ASTAKOS_BASE_URL)
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
from optparse import make_option from optparse import make_option
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from synnefo.db.models import VirtualMachine from synnefo.db.models import VirtualMachine
from synnefo.management.common import get_backend from synnefo.management.common import get_backend
from synnefo.api.util import get_image from synnefo.api.util import get_image
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from django.core.management.base import CommandError from django.core.management.base import CommandError
from synnefo.webproject.management.commands import SynnefoCommand from snf_django.management.commands import SynnefoCommand
from synnefo.management.common import (format_vm_state, get_vm, from synnefo.management.common import (format_vm_state, get_vm,
get_image) get_image)
from snf_django.lib.astakos import UserCache from snf_django.lib.astakos import UserCache
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from synnefo.db.models import Backend from synnefo.db.models import Backend
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from synnefo.api import util from synnefo.api import util
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# or implied, of GRNET S.A. # or implied, of GRNET S.A.
from synnefo.db.models import FloatingIP from synnefo.db.models import FloatingIP
from synnefo.webproject.management.commands import ListCommand from snf_django.management.commands import ListCommand
from synnefo.settings import CYCLADES_SERVICE_TOKEN, ASTAKOS_BASE_URL from synnefo.settings import CYCLADES_SERVICE_TOKEN, ASTAKOS_BASE_URL
from logging import getLogger from logging import getLogger
log = getLogger(__name__) log = getLogger(__name__)
......
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