* (kind of) more informative error msg in encode
* fix: add baris's birthdate :)
This commit is contained in:
+1
-1
@@ -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 = []
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user