branch | tls-sprint |
changeset 1101 | 0c067de38e46 |
parent 1095 | 6917ebe281e9 |
child 1104 | 58f27c3c0167 |
--- a/web/formfields.py Thu Mar 12 18:41:26 2009 +0100 +++ b/web/formfields.py Thu Mar 12 19:39:34 2009 +0100 @@ -373,7 +373,7 @@ return None if targetschema == 'Password': return StringField(widget=PasswordInput(), **kwargs) - if eschema.has_format(rschema): + if eschema.has_metadata(rschema, 'format'): constraints = rschema.rproperty(eschema, targetschema, 'constraints') for cstr in constraints: if isinstance(cstr, StaticVocabularyConstraint):