summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebd <>2005-05-20 14:15:18 (GMT)
committersebd <>2005-05-20 14:15:18 (GMT)
commit3823e65134a97a6d41d1fca477700cfabcff93aa (patch)
tree926c3c54fcf7fd261de881cc64e11ebde9cb3a28
parentf44c7aa2dfb6791227783cc7f19e7ecb460bbc48 (diff)
downloadexpression-3823e65134a97a6d41d1fca477700cfabcff93aa.zip
expression-3823e65134a97a6d41d1fca477700cfabcff93aa.tar.gz
expression-3823e65134a97a6d41d1fca477700cfabcff93aa.tar.bz2
more support for labels
-rw-r--r--src/modules/dbxmlcontainers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/dbxmlcontainers.py b/src/modules/dbxmlcontainers.py
index 2e85534..64bfa29 100644
--- a/src/modules/dbxmlcontainers.py
+++ b/src/modules/dbxmlcontainers.py
@@ -205,10 +205,13 @@ class DbXmlContainerHolder(dataholders.DataHolder):
uriBase = self.getUriAbsolutePath()
names = {}
results = self.getResultFetchedFromXpath(xpathExpression)
+ labelValue = dbxml.XmlValue("")
for value in results:
document = value.asDocument()
name = document.getName()
uri = "%s/%s" % (uriBase, name)
+ if document.getMetaData("http://www.sleepycat.com/2002/dbxml", "label", labelValue):
+ name = labelValue.asString()
names[uri] = name
return names