adapt to new behaviour of TextsDirectory.get_html_text, add deault cnil disclaimer and terms of use

This commit is contained in:
Benjamin Dauvergne 2014-01-13 23:10:44 +01:00
parent 8f0036e706
commit df3601389c
1 changed files with 3 additions and 4 deletions

View File

@ -210,8 +210,7 @@ RecaptchaOptions = { "theme" : "white", "lang" : "fr" };
vars = {
'register_form': str(form.render())
}
return template.process_template(
str(authentic.root.TextsDirectory.get_html_text('register')), vars)
return authentic.root.TextsDirectory.get_html_text('register', vars)
def pre_registration_callback(self, identity):
identity.userClass = [ 'GRAND.PUBLIC' ]
@ -311,9 +310,9 @@ get_publisher_class().root_directory_class = IfefRootDirectory
TextsDirectory.register('terms-of-use',
N_("Terms of use"),
hint = '',
default = '')
default = 'Terms of use')
TextsDirectory.register('cnil-disclaimer',
N_("CNIL disclaimer"),
hint = '',
default = '')
default = 'CNIL disclaimer')