* 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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user