* (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))
|
writetext(xml, node, token, unicode(value))
|
||||||
else:
|
else:
|
||||||
if req == mandatory:
|
if req == mandatory:
|
||||||
errs.append(_('Mandatory argument not available'))
|
errs.append(_('Mandatory token %s not available') % token)
|
||||||
|
|
||||||
def check(value, where):
|
def check(value, where):
|
||||||
errs = []
|
errs = []
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class AutoXmlTestCase(testcase.TestCase):
|
|||||||
a.description['tr'] = u'Melek, melek'
|
a.description['tr'] = u'Melek, melek'
|
||||||
a.comment = u'Bu da zibidi aslinda ama caktirmiyor'
|
a.comment = u'Bu da zibidi aslinda ama caktirmiyor'
|
||||||
a.href = 'http://cekirdek.uludag.org.tr/~baris'
|
a.href = 'http://cekirdek.uludag.org.tr/~baris'
|
||||||
|
a.otherInfo.birthDate = '30101979'
|
||||||
a.projects = [ 'pisi', 'tasma', 'plasma' ]
|
a.projects = [ 'pisi', 'tasma', 'plasma' ]
|
||||||
errs = a.check()
|
errs = a.check()
|
||||||
if errs:
|
if errs:
|
||||||
|
|||||||
Reference in New Issue
Block a user