fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wcag fixes
[redakcja.git]
/
apps
/
filebrowser
/
decorators.py
diff --git
a/apps/filebrowser/decorators.py
b/apps/filebrowser/decorators.py
index
070fa2d
..
5297889
100644
(file)
--- a/
apps/filebrowser/decorators.py
+++ b/
apps/filebrowser/decorators.py
@@
-1,4
+1,4
@@
-# coding: utf-8
+#
-*-
coding: utf-8
from django.contrib.sessions.models import Session
from django.shortcuts import get_object_or_404, render_to_response
from django.contrib.sessions.models import Session
from django.shortcuts import get_object_or_404, render_to_response
@@
-12,7
+12,7
@@
def flash_login_required(function):
Decorator to recognize a user by its session.
Used for Flash-Uploading.
"""
Decorator to recognize a user by its session.
Used for Flash-Uploading.
"""
-
+
def decorator(request, *args, **kwargs):
try:
engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
def decorator(request, *args, **kwargs):
try:
engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
@@
-25,5
+25,3
@@
def flash_login_required(function):
request.user = get_object_or_404(User, pk=user_id)
return function(request, *args, **kwargs)
return decorator
request.user = get_object_or_404(User, pk=user_id)
return function(request, *args, **kwargs)
return decorator
-
-