typobugfix for container method getPresence(xpath)
On naming a document, we now use expression's string "simplify" method.
This commit is contained in:
parent
56824fba54
commit
4e28f11354
|
@ -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(
|
||||
|
|
Reference in New Issue