Commit c34a8574 authored by Christos Stavrakakis's avatar Christos Stavrakakis

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 @@
# or implied, of GRNET S.A.
from astakos.im.models import AuthProviderPolicyProfile
from synnefo.webproject.management.commands import ListCommand
from snf_django.management.commands import ListCommand
def get_groups(profile):
......
......@@ -35,7 +35,7 @@ from django.core.management.base import CommandError
from astakos.im.models import AuthProviderPolicyProfile as Profile
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
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
from astakos.im.models import Component
from synnefo.webproject.management.commands import ListCommand
from snf_django.management.commands import ListCommand
class Command(ListCommand):
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
from astakos.im.models import Group
from synnefo.webproject.management.commands import ListCommand
from snf_django.management.commands import ListCommand
def users_count(group):
......
......@@ -33,7 +33,7 @@
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 synnefo.webproject.management import utils
......
......@@ -35,7 +35,7 @@ from optparse import make_option
from django.core.management.base import CommandError
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 astakos.im.models import Chain, ProjectApplication
from ._common import show_resource_value, style_options, check_style
......
......@@ -40,7 +40,7 @@ from astakos.im.quotas import (
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 synnefo.webproject.management.commands import SynnefoCommand
from snf_django.management.commands import SynnefoCommand
from synnefo.webproject.management import utils
from ._common import show_quotas, style_options, check_style, units
......
......@@ -33,7 +33,7 @@
from optparse import make_option
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
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
from astakos.im.models import Service
from synnefo.webproject.management.commands import ListCommand
from snf_django.management.commands import ListCommand
class Command(ListCommand):
......
......@@ -34,7 +34,7 @@
from django.core.management.base import CommandError
from astakos.im.models import Service, EndpointData
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
......
......@@ -34,7 +34,7 @@
from optparse import make_option
from astakos.im.models import AstakosUser
from synnefo.webproject.management.commands import ListCommand
from snf_django.management.commands import ListCommand
def get_providers(user):
......
......@@ -38,7 +38,7 @@ from astakos.im.models import AstakosUser, get_latest_terms, Chain
from astakos.im.quotas import list_user_quotas
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 ._common import show_quotas, style_options, check_style
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
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 astakos.quotaholder_app.models import Commission
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
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 astakos.quotaholder_app.models import Commission, Provision
......
......@@ -31,7 +31,7 @@
# interpreted as representing official policies, either expressed
# 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
......
......@@ -33,7 +33,7 @@
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.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
ASTAKOS_BASE_URL)
......
......@@ -33,7 +33,7 @@
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.management.common import get_backend
from synnefo.api.util import get_image
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
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,
get_image)
from snf_django.lib.astakos import UserCache
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
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
......
......@@ -32,7 +32,7 @@
# or implied, of GRNET S.A.
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 logging import getLogger
log = getLogger(__name__)
......
This diff is collapsed.
......@@ -60,7 +60,6 @@ CLASSIFIERS = []
INSTALL_REQUIRES = [
'Django >=1.2, <1.3',
'snf-common',
'snf-django-lib',
]
EXTRAS_REQUIRES = {
......
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