[open-ils-commits] r11067 - branches/rel_1_4/build/i18n/scripts

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Nov 5 21:11:57 EST 2008


Author: dbs
Date: 2008-11-05 21:11:55 -0500 (Wed, 05 Nov 2008)
New Revision: 11067

Modified:
   branches/rel_1_4/build/i18n/scripts/fieldmapper.py
Log:
Backport r11065 from trunk: Handle link elements with reporter labels correctly

Modified: branches/rel_1_4/build/i18n/scripts/fieldmapper.py
===================================================================
--- branches/rel_1_4/build/i18n/scripts/fieldmapper.py	2008-11-06 02:07:04 UTC (rev 11066)
+++ branches/rel_1_4/build/i18n/scripts/fieldmapper.py	2008-11-06 02:11:55 UTC (rev 11067)
@@ -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