Revision f90dd41a
b/snf-pithos-webclient/pithos_webclient/settings.py | ||
---|---|---|
3 | 3 |
# !!!!!ATTENTION!!!!! |
4 | 4 |
# loginUrl MUST end at "next=". You should not give the value of the next |
5 | 5 |
# parameter. It will be determined automatically |
6 |
LOGIN_URL = getattr(settings, 'PITHOS_UI_LOGIN_URL', 'https://accounts.okeanos.grnet.gr/im/login?next=') |
|
7 |
FEEDBACK_URL = getattr(settings, 'PITHOS_UI_FEEDBACK_URL', 'https://accounts.okeanos.grnet.gr/im/feedback') |
|
8 |
AUTH_COOKIE_NAME = getattr(settings, 'PITHOS_UI_AUTH_COOKIE_NAME', '_pithos2_a') |
|
9 |
|
|
6 |
LOGIN_URL = getattr(settings, 'PITHOS_UI_LOGIN_URL', |
|
7 |
'https://accounts.okeanos.grnet.gr/im/login?next=') |
|
8 |
FEEDBACK_URL = getattr(settings, 'PITHOS_UI_FEEDBACK_URL', |
|
9 |
'https://accounts.okeanos.grnet.gr/im/feedback') |
|
10 |
AUTH_COOKIE_NAME = getattr(settings, 'PITHOS_UI_AUTH_COOKIE_NAME', |
|
11 |
'_pithos2_a') |
|
12 |
CLOUDBAR_ACTIVE_SERVICE = getattr(settings, 'PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE', |
|
13 |
'pithos') |
b/snf-pithos-webclient/pithos_webclient/views.py | ||
---|---|---|
41 | 41 |
|
42 | 42 |
def index(request): |
43 | 43 |
return direct_to_template(request, 'pithos_webclient/index.html', \ |
44 |
{'settings': settings, 'MEDIA_URL': MEDIA_URL}) |
|
44 |
{'settings': settings, 'MEDIA_URL': MEDIA_URL, |
|
45 |
'PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE': settings.CLOUDBAR_ACTIVE_SERVICE}) |
|
45 | 46 |
|
b/snf-pithos-webclient/setup.py | ||
---|---|---|
248 | 248 |
index_data = index_data.replace('\' src=\'', '\' src=\'{{ MEDIA_URL }}pithos_webclient/') |
249 | 249 |
index_data = index_data.replace('url(', 'url({{ MEDIA_URL }}pithos_webclient/') |
250 | 250 |
|
251 |
index_data = index_data.replace("{{ CLOUDBAR_CODE }}", """ |
|
252 |
{{ CLOUDBAR_CODE }} |
|
253 |
<script> |
|
254 |
var CLOUDBAR_ACTIVE_SERVICE = "{{ PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE }}" |
|
255 |
</script> |
|
256 |
""") |
|
257 |
|
|
251 | 258 |
ifile = file(index, "w+") |
252 | 259 |
ifile.write(index_data) |
253 | 260 |
ifile.close() |
Also available in: Unified diff