For LDAP field which are numbers, check the format in the update form

This commit is contained in:
Benjamin Dauvergne 2011-01-07 00:28:09 +01:00
parent c7ed36c95a
commit 41bdfec62f
1 changed files with 20 additions and 5 deletions

View File

@ -74,15 +74,30 @@ class IdentitiesStoreIFEF(authentic.identities.IdentitiesStoreLdap):
on_register = False),
# Attributs specificiques IFEF
Field('numeroPassFormaAssMat', N_('Numero de pass assistante maternelle'),
read_only = True, on_register = False),
read_only = True, on_register = False,
hint = _('Entrez un nombre decimal'),
widget_class = 'ValidatedStringWidget',
regex = r'^[0-9]*$'),
Field('numeroPassFormaSPE', N_('Numero de pass SPE'), read_only = True,
on_register = False),
on_register = False,
hint = _('Entrez un nombre decimal'),
widget_class = 'ValidatedStringWidget',
regex = r'^[0-9]*$'),
Field('numeroURSSAF', N_('Numero URSSAF'), read_only = True,
on_register = False),
on_register = False,
hint = _('Entrez un nombre decimal'),
widget_class = 'ValidatedStringWidget',
regex = r'^[0-9]*$'),
Field('numeroPAJE', N_('Numero PAJE'), read_only = True,
on_register = False),
on_register = False,
hint = _('Entrez un nombre decimal'),
widget_class = 'ValidatedStringWidget',
regex = r'^[0-9]*$'),
Field('numeroIRCEM', N_('Numero IRCEM'), read_only = True,
on_register = False),
on_register = False,
hint = _('Entrez un nombre decimal'),
widget_class = 'ValidatedStringWidget',
regex = r'^[0-9]*$'),
Field('orgDn', N_('DN de l\'organisme d\'affiliation'), read_only =
True, multivalued = True, invisible = True, widget_class =
authentic.identities.IdentitiesStoreLdap.LdapDnWidget,