[open-ils-commits] r11065 - trunk/build/i18n/scripts
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 5 00:36:05 EST 2008
Author: dbs
Date: 2008-11-05 00:36:03 -0500 (Wed, 05 Nov 2008)
New Revision: 11065
Modified:
trunk/build/i18n/scripts/fieldmapper.py
Log:
Handle link elements with reporter labels
Modified: trunk/build/i18n/scripts/fieldmapper.py
===================================================================
--- trunk/build/i18n/scripts/fieldmapper.py 2008-11-05 03:47:59 UTC (rev 11064)
+++ trunk/build/i18n/scripts/fieldmapper.py 2008-11-05 05:36:03 UTC (rev 11065)
@@ -99,7 +99,7 @@
def startElement(self, name, attributes):
"""
Return the reporter:label or name attribute value for each class
- or field element.
+ field, or link element.
"""
entity = None
lineno = self.locator.getLineNumber()
@@ -111,6 +111,9 @@
elif name == 'field':
entity = "%s.%s.%s.label" % (name, self.classid, \
attributes['name'])
+ elif name == 'link':
+ entity = "%s.%s.%s.label" % (name, self.classid, \
+ attributes['field'])
label = attributes['reporter:label']
if not self.entities.has_key(label):
self.entities[label] = [(str(entity), lineno)]
More information about the open-ils-commits
mailing list