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

astakos: Remove some unused imports

Also add a missing import in quotas.py
parent 7bd75bfc
......@@ -41,7 +41,6 @@ from snf_django.lib import api
from snf_django.lib.api import faults
from astakos.im.util import epoch
from astakos.im.quotas import get_user_quotas
from .util import (
get_uuid_displayname_catalogs as get_uuid_displayname_catalogs_util,
......
......@@ -41,8 +41,7 @@ from astakos.im import functions
from astakos.im import settings
from astakos.im import forms
from astakos.im.quotas import (qh_sync_user, qh_sync_users,
register_pending_apps)
from astakos.im.quotas import qh_sync_user
import astakos.im.messages as astakos_messages
......
......@@ -60,15 +60,12 @@ from astakos.im.settings import (
GROUP_CREATION_SUBJECT, HELPDESK_NOTIFICATION_EMAIL_SUBJECT,
INVITATION_EMAIL_SUBJECT, GREETING_EMAIL_SUBJECT, FEEDBACK_EMAIL_SUBJECT,
EMAIL_CHANGE_EMAIL_SUBJECT,
PROJECT_CREATION_SUBJECT, PROJECT_APPROVED_SUBJECT,
PROJECT_TERMINATION_SUBJECT, PROJECT_SUSPENSION_SUBJECT,
PROJECT_MEMBERSHIP_CHANGE_SUBJECT)
)
from astakos.im.notifications import build_notification, NotificationError
from astakos.im.models import (
AstakosUser, Invitation, ProjectMembership, ProjectApplication, Project,
UserSetting,
get_resource_names, new_chain)
from astakos.im.quotas import (qh_sync_user, qh_sync_users,
UserSetting, new_chain)
from astakos.im.quotas import (qh_sync_user,
register_pending_apps, qh_sync_project)
from astakos.im.project_notif import (
membership_change_notify, membership_enroll_notify,
......
......@@ -44,7 +44,6 @@ from base64 import b64encode
from urlparse import urlparse
from urllib import quote
from random import randint
from collections import defaultdict, namedtuple
from django.db import models, IntegrityError, transaction
from django.contrib.auth.models import User, UserManager, Group, Permission
......
......@@ -31,11 +31,12 @@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
import copy
from astakos.im.models import (
Resource, AstakosUserQuota, AstakosUser,
Project, ProjectMembership, ProjectResourceGrant, ProjectApplication)
import astakos.quotaholder_app.callpoint as qh
from astakos.quotaholder_app.exception import QuotaholderError, NoCapacityError
from astakos.quotaholder_app.exception import NoCapacityError
from django.db.models import Q
......
......@@ -67,7 +67,6 @@ from django.core.xheaders import populate_xheaders
from django.core.exceptions import ValidationError, PermissionDenied
from django.views.decorators.http import require_http_methods
from django.db.models import Q
from django.core.exceptions import PermissionDenied
from django.utils import simplejson as json
from django.contrib.auth.views import redirect_to_login
......
......@@ -36,7 +36,6 @@ from snf_django.lib.db.fields import intDecimalField
from django.db.models import (Model, BigIntegerField, CharField,
ForeignKey, AutoField)
from django.db import transaction
from snf_django.lib.db.managers import ForUpdateManager
......
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