fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
291b780
)
Changed imports to absolute.
author
zuber
<marek@stepniowski.com>
Mon, 5 Oct 2009 11:34:01 +0000
(13:34 +0200)
committer
zuber
<marek@stepniowski.com>
Mon, 5 Oct 2009 11:34:01 +0000
(13:34 +0200)
cas_provider/admin.py
patch
|
blob
|
history
cas_provider/forms.py
patch
|
blob
|
history
cas_provider/urls.py
patch
|
blob
|
history
cas_provider/utils.py
patch
|
blob
|
history
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/admin.py
b/cas_provider/admin.py
index
5091f8e
..
5934487
100644
(file)
--- a/
cas_provider/admin.py
+++ b/
cas_provider/admin.py
@@
-1,6
+1,6
@@
from django.contrib import admin
from django.contrib import admin
-from models import ServiceTicket, LoginTicket
+from
cas_provider.
models import ServiceTicket, LoginTicket
class ServiceTicketAdmin(admin.ModelAdmin):
pass
class ServiceTicketAdmin(admin.ModelAdmin):
pass
diff --git
a/cas_provider/forms.py
b/cas_provider/forms.py
index
f270c37
..
ba77b62
100644
(file)
--- a/
cas_provider/forms.py
+++ b/
cas_provider/forms.py
@@
-2,7
+2,7
@@
from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import authenticate
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import authenticate
-from utils import create_login_ticket
+from
cas_provider.
utils import create_login_ticket
class LoginForm(forms.Form):
username = forms.CharField(max_length=30)
class LoginForm(forms.Form):
username = forms.CharField(max_length=30)
diff --git
a/cas_provider/urls.py
b/cas_provider/urls.py
index
4fad62c
..
2bdbe79
100644
(file)
--- a/
cas_provider/urls.py
+++ b/
cas_provider/urls.py
@@
-1,6
+1,6
@@
from django.conf.urls.defaults import *
from django.conf.urls.defaults import *
-from views import *
+from
cas_provider.
views import *
urlpatterns = patterns('',
url(r'^login/$', login),
urlpatterns = patterns('',
url(r'^login/$', login),
diff --git
a/cas_provider/utils.py
b/cas_provider/utils.py
index
04a5c12
..
68b791c
100644
(file)
--- a/
cas_provider/utils.py
+++ b/
cas_provider/utils.py
@@
-1,7
+1,7
@@
from random import Random
import string
from random import Random
import string
-from models import ServiceTicket, LoginTicket
+from
cas_provider.
models import ServiceTicket, LoginTicket
def _generate_string(length=8, chars=string.ascii_letters + string.digits):
""" Generates a random string of the requested length. Used for creation of tickets. """
def _generate_string(length=8, chars=string.ascii_letters + string.digits):
""" Generates a random string of the requested length. Used for creation of tickets. """
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
c898b78
..
cdd5d7b
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-5,9
+5,9
@@
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth import authenticate
from django.contrib.auth import login as auth_login, logout as auth_logout
-from forms import LoginForm
-from models import ServiceTicket, LoginTicket
-from utils import create_service_ticket
+from
cas_provider.
forms import LoginForm
+from
cas_provider.
models import ServiceTicket, LoginTicket
+from
cas_provider.
utils import create_service_ticket
__all__ = ['login', 'validate', 'service_validate', 'logout']
__all__ = ['login', 'validate', 'service_validate', 'logout']