Commit fd8bceb5 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Remove obsolete code II

parent 17d35baf
......@@ -40,7 +40,7 @@ from django.utils import simplejson as json
from django.conf import settings
from django.core.urlresolvers import reverse
from astakos.im.models import AstakosUser, GroupKind, Service, Resource
from astakos.im.models import AstakosUser, Service, Resource
from astakos.im.api.faults import Fault, ItemNotFound, InternalServerError, BadRequest
from astakos.im.settings import (
INVITATIONS_ENABLED, COOKIE_NAME, EMAILCHANGE_ENABLED, QUOTAHOLDER_URL)
......
......@@ -40,7 +40,6 @@ from smtplib import SMTPException
from astakos.im.models import (
AstakosUser,
# AstakosGroup, GroupKind,
Resource, Service, RESOURCE_SEPARATOR,
Project, ProjectApplication, ProjectMembership, filter_queryset_by_property)
from astakos.im.api.backends.base import (
......@@ -303,19 +302,4 @@ class DjangoBackend(BaseBackend):
# TODO return information for unknown ids
q = Resource.objects.filter(service__id=service_id,
id__in=ids)
q.delete()
# @safe
# def create_group(self, **kwargs):
# policies = kwargs.pop('policies', ())
# permissions = kwargs.pop('permissions', ())
# members = kwargs.pop('members', ())
# owners = kwargs.pop('owners', ())
#
# g = self._create_object(AstakosGroup, **kwargs)
#
# g.permissions = permissions
# g.policies = policies
# # g.members = members
# g.owners = owners
# return self._details(g)
\ No newline at end of file
q.delete()
\ No newline at end of file
......@@ -37,7 +37,6 @@ from astakos.im.settings import (
GLOBAL_MESSAGES, PROFILE_EXTRA_LINKS)
from astakos.im.api import get_menu
from astakos.im.util import get_query
from astakos.im.models import GroupKind
from astakos.im.auth_providers import PROVIDERS as AUTH_PROVIDERS
from django.utils import simplejson as json
......@@ -108,8 +107,3 @@ def menu(request):
return {}
else:
return {'menu': menu_items}
def group_kinds(request):
return {'group_kinds': GroupKind.objects.exclude(
name='default').values_list('name', flat=True)}
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