* src/RelLib.py: Move constants back to RelLib, as class attributes.

* src/Utils.py: Move constant mappings from const.py.in
* src/const.py.in: Move constants and mappings elsewhere.
* various: Use constants from RelLib, not const.


svn: r4736
This commit is contained in:
Alex Roitman
2005-05-30 20:41:43 +00:00
parent c4195cf7ef
commit 3771ee4ff9
16 changed files with 485 additions and 545 deletions

View File

@@ -253,9 +253,9 @@ class XmlWriter:
count += 1
self.write_id("person",person,2)
if person.get_gender() == const.MALE:
if person.get_gender() == RelLib.Person.MALE:
self.write_line("gender","M",3)
elif person.get_gender() == const.FEMALE:
elif person.get_gender() == RelLib.Person.FEMALE:
self.write_line("gender","F",3)
else:
self.write_line("gender","U",3)