From 3bd0eeeb82ee0787a9d42643a889e410b636f362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sat, 24 Sep 2005 16:18:24 +0000 Subject: [PATCH] * correct the doc to reflect the change in list spec. --- pisi/xmlfile.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index b8aaa28a..e93540ab 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -143,20 +143,15 @@ class autoxml(type): class Company: __metaclass__ = autoxml - t_Employees = [ [Employee], xmlfile.mandatory] + t_Employees = [ [Employee], xmlfile.mandatory, 'Employee'] - Logically, inside the Company tag, we will have several Employee - tags, which are inserted to the Employees instance variable of + Logically, inside the Company/Employees tag, we will have several + Employes tags, which are inserted to the Employees instance variable of Company in order of appearance. + The mandatory flag here asserts that at least one such record is to be found. - It is also possible to change the XML path we expect the tag in, - just like with any other tag. - - t_Employees = [ [Employee], xmlfile.mandatory, 'Employees/Employee'] - - You see, it works like magic, when it works of course. All of it done without a single brain exploding.