|
@@ -16,7 +16,6 @@ convert them into boolean, for example, you should use the
|
16
|
16
|
import tg
|
17
|
17
|
from paste.deploy.converters import asbool
|
18
|
18
|
|
19
|
|
-from tg.configuration import AppConfig
|
20
|
19
|
from tgext.pluggable import plug
|
21
|
20
|
from tgext.pluggable import replace_template
|
22
|
21
|
|
|
@@ -24,13 +23,14 @@ from tg.i18n import lazy_ugettext as l_
|
24
|
23
|
|
25
|
24
|
import tracim
|
26
|
25
|
from tracim import model
|
|
26
|
+from tracim.config import TracimAppConfig
|
27
|
27
|
from tracim.lib import app_globals, helpers
|
28
|
28
|
from tracim.lib.auth.wrapper import AuthConfigWrapper
|
29
|
29
|
from tracim.lib.base import logger
|
30
|
30
|
from tracim.model.data import ActionDescription
|
31
|
31
|
from tracim.model.data import ContentType
|
32
|
32
|
|
33
|
|
-base_config = AppConfig()
|
|
33
|
+base_config = TracimAppConfig()
|
34
|
34
|
base_config.renderers = []
|
35
|
35
|
base_config.use_toscawidgets = False
|
36
|
36
|
base_config.use_toscawidgets2 = True
|
|
@@ -73,21 +73,6 @@ base_config['flash.template'] = '''
|
73
|
73
|
# YOU MUST CHANGE THIS VALUE IN PRODUCTION TO SECURE YOUR APP
|
74
|
74
|
base_config.sa_auth.cookie_secret = "3283411b-1904-4554-b0e1-883863b53080"
|
75
|
75
|
|
76
|
|
-base_config.auth_type = 'ldap'
|
77
|
|
-
|
78
|
|
-# ldap_base_dn = 'ou=users,dc=ad,dc=snake-oil-company,dc=com'
|
79
|
|
-# ldap_bind_dn = 'cn=bind,cn=users,dc=ad,dc=snake-oil-company,dc=com'
|
80
|
|
-
|
81
|
|
-base_config.ldap_url = 'ldap://localhost:3333'
|
82
|
|
-base_config.ldap_base_dn = 'dc=directory,dc=fsf,dc=org'
|
83
|
|
-base_config.ldap_bind_dn = 'cn=admin,dc=directory,dc=fsf,dc=org'
|
84
|
|
-base_config.ldap_bind_pass = 'toor'
|
85
|
|
-base_config.ldap_ldap_naming_attribute = 'uid'
|
86
|
|
-base_config.ldap_user_attributes = 'mail=email'
|
87
|
|
-base_config.ldap_tls = False
|
88
|
|
-
|
89
|
|
-AuthConfigWrapper.wrap(base_config)
|
90
|
|
-
|
91
|
76
|
# INFO - This is the way to specialize the resetpassword email properties
|
92
|
77
|
# plug(base_config, 'resetpassword', None, mail_subject=reset_password_email_subject)
|
93
|
78
|
plug(base_config, 'resetpassword', 'reset_password')
|