* (kind of) more informative error msg in encode

* fix: add baris's birthdate :)
This commit is contained in:
Eray Özkural
2005-11-02 01:45:59 +00:00
parent 4705e35099
commit 3be96b2da1
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -521,7 +521,7 @@ class autoxml(oo.autosuper):
writetext(xml, node, token, unicode(value))
else:
if req == mandatory:
errs.append(_('Mandatory argument not available'))
errs.append(_('Mandatory token %s not available') % token)
def check(value, where):
errs = []
+1
View File
@@ -79,6 +79,7 @@ class AutoXmlTestCase(testcase.TestCase):
a.description['tr'] = u'Melek, melek'
a.comment = u'Bu da zibidi aslinda ama caktirmiyor'
a.href = 'http://cekirdek.uludag.org.tr/~baris'
a.otherInfo.birthDate = '30101979'
a.projects = [ 'pisi', 'tasma', 'plasma' ]
errs = a.check()
if errs: