This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
ifef-registration/extra/modules/configuration.py

28 lines
1.0 KiB
Python

from authentic.schemas.schema import *
import authentic.admin.configuration as configuration
presentation_args = { 'cols': 80, 'rows': 25 }
for schema in (String('xmlrpc_registration_url',
N_('XMLRPC Neogia registration URL'),
default = '',
allow_none=True,
presentation_hint = { 'args': { 'size': 100 }}),
String('erp_secret',
N_('Shared secret with the ERP'),
default = '',
allow_none=True,
presentation_hint = { 'args': { 'size': 100 }}),
String('cnil_text',
N_("Texte d'information CNIL"),
default = '',
allow_none=True,
presentation_hint = { 'widget': 'Text',
'args': presentation_args }),
String('condition_utilisation',
N_("Condition d'utilisation"),
default = '',
allow_none=True,
presentation_hint = { 'widget': 'Text',
'args': presentation_args })):
configuration.identity_configuration.add_schema(schema)