summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/auth
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-01-17 10:51:46 +0100
committerLeif Johansson <leifj@sunet.se>2012-01-17 10:51:46 +0100
commit156b905ef6c63647f9ce163a3b0f2c5b9e00ea41 (patch)
tree8ed0fb2a6be0aaf2500d46dea5bd6e3547337d48 /src/meetingtools/apps/auth
parent4b5f7d87df4b59ea8d215ae4a64e68ff73e1dd16 (diff)
move acc_for_user to cluster model as a generic method
Diffstat (limited to 'src/meetingtools/apps/auth')
-rw-r--r--src/meetingtools/apps/auth/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py
index a412ed5..c0adfc2 100644
--- a/src/meetingtools/apps/auth/views.py
+++ b/src/meetingtools/apps/auth/views.py
@@ -10,12 +10,12 @@ from django.views.decorators.cache import never_cache
import logging
from meetingtools.apps.userprofile.models import UserProfile
from meetingtools.multiresponse import redirect_to, make_response_dict
-from meetingtools.apps.room.views import _acc_for_user
from meetingtools.ac import ac_api_client, ac_api
from django.shortcuts import render_to_response
from django.contrib import auth
from django_co_connector.models import co_import_from_request, add_member,\
remove_member
+from meetingtools.apps.cluster.models import acc_for_user
def meta(request,attr):
v = request.META.get(attr)
@@ -58,7 +58,7 @@ def login(request):
def join_group(group,**kwargs):
user = kwargs['user']
- acc = _acc_for_user(user)
+ acc = acc_for_user(user)
connect_api = ac_api(acc)
principal = connect_api.find_principal("login", user.username, "user")
if principal: