typobugfix for container method getPresence(xpath)

On naming a document, we now use expression's string "simplify" method.
This commit is contained in:
sebd 2005-05-10 12:03:00 +00:00
parent 56824fba54
commit 4e28f11354
1 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ import expression.core.logs as logs
import expression.core.modules as modules
import expression.core.namespaces as namespaces
import expression.core.stations as stations
import expression.core.strings as strings
import expression.core.things as things
import expression.core.xpaths as xpaths
@ -215,7 +216,7 @@ class DbXmlContainerHolder(dataholders.DataHolder):
""" Returns whether at least one document matches xpathExpression.
"""
results = self.getResultCursorFromXpath(xpathExpression)
for value in result:
for value in results:
return True
return False
@ -487,6 +488,7 @@ class DbXmlDocumentStation(stations.AbstractStation, documents.AbstractDocument)
except AttributeError:
pass
if name is not None:
name = strings.simplify(name)
self.dbxmlDocument.setName(name)
try:
container.putDocument(