# Django settings for flowspy project.
+# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
+# vim: tabstop=4:shiftwidth=4:softtabstop=4:expandtab
+#Copyright © 2011-2013 Greek Research and Technology Network (GRNET S.A.)
+
+#Developed by Leonidas Poulopoulos (leopoul-at-noc-dot-grnet-dot-gr),
+#GRNET NOC
+#
+#Permission to use, copy, modify, and/or distribute this software for any
+#purpose with or without fee is hereby granted, provided that the above
+#copyright notice and this permission notice appear in all copies.
+#
+#THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
+#TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+#FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
+#CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+#DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+#ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+#SOFTWARE.
+#
+
import os
import djcelery
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = 'en-us'
+LANGUAGE_CODE = 'en'
SITE_ID = 1
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
- #'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
+ 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
AUTHENTICATION_BACKENDS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
- #'django.contrib.flatpages',
+ 'django.contrib.flatpages',
'flowspec',
'poller',
'south',
'djcelery',
'peers',
'registration',
- 'accounts'
+ 'accounts',
+ 'tinymce',
)
LOGIN_URL = '/fod/welcome'
PRIMARY_WHOIS = 'whois.grnet.gr'
ALTERNATE_WHOIS = 'whois.ripe.net'
-ACCOUNT_ACTIVATION_DAYS = 7
\ No newline at end of file
+ACCOUNT_ACTIVATION_DAYS = 7
+
+#Shibboleth attribute map
+SHIB_USERNAME = ['HTTP_EPPN']
+SHIB_MAIL = ['mail', 'HTTP_MAIL', 'HTTP_SHIB_INETORGPERSON_MAIL']
+SHIB_FIRSTNAME = ['HTTP_SHIB_INETORGPERSON_GIVENNAME']
+SHIB_LASTNAME = ['HTTP_SHIB_PERSON_SURNAME']
+SHIB_ENTITLEMENT = ['HTTP_SHIB_EP_ENTITLEMENT']
+
+TINYMCE_JS_URL = '/fodstatic/js/tinymce/tiny_mce.js'
+
+TINYMCE_DEFAULT_CONFIG = {
+ 'extended_valid_elements' : 'iframe[src|width|height|name|align]',
+ 'plugins': "table,spellchecker,paste,searchreplace",
+ 'theme': "advanced",
+}
+
+