git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
html fix
[unfold.git]
/
portal
/
institution.py
diff --git
a/portal/institution.py
b/portal/institution.py
index
6c55517
..
c53318b
100644
(file)
--- a/
portal/institution.py
+++ b/
portal/institution.py
@@
-5,7
+5,7
@@
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.shortcuts import render
-from unfold.loginrequired import
FreeAccess
View
+from unfold.loginrequired import
LoginRequiredAutoLogout
View
from manifold.core.query import Query
from manifoldapi.manifoldapi import execute_query
from manifold.core.query import Query
from manifoldapi.manifoldapi import execute_query
@@
-13,10
+13,10
@@
from manifoldapi.manifoldresult import ManifoldResult
from ui.topmenu import topmenu_items, the_user
from myslice.configengine import ConfigEngine
from ui.topmenu import topmenu_items, the_user
from myslice.configengine import ConfigEngine
-from theme import ThemeView
+from
myslice.
theme import ThemeView
import json
import json
-class InstitutionView (
FreeAccess
View, ThemeView):
+class InstitutionView (
LoginRequiredAutoLogout
View, ThemeView):
template_name = 'institution.html'
# expose this so we can mention the backend URL on the welcome page
template_name = 'institution.html'
# expose this so we can mention the backend URL on the welcome page
@@
-75,6
+75,7
@@
class InstitutionView (FreeAccessView, ThemeView):
env['person'] = None
env['theme'] = self.theme
env['person'] = None
env['theme'] = self.theme
+ env['section'] = "Institution"
env['pi'] = pi
env['username']=the_user(request)
env['topmenu_items'] = topmenu_items(None, request)
env['pi'] = pi
env['username']=the_user(request)
env['topmenu_items'] = topmenu_items(None, request)