I was trying to post a new Wiki node (EmptyParentNodeTest), and...
Exception exceptions.NameError:
global name 'getPost' is not defined
PyDS\Tool.py 967 process_request
u = getattr(tool,meth)(req)
PyDS\WikiTool.py 569 edit_redir
id = self.addNode(id, title, text, template=int(template))
PyDS\WikiTool.py 699 addNode
meshTool.renderItemsWithUnresolvedLinks()
PyDS\MeshTool.py 986 renderItemsWithUnresolvedLinks
return [handles, self.renderItems(handles)]
PyDS\MeshTool.py 1015 renderItems
method(item.uniqueId)
PyDS\WeblogTool.py 325 renderItemByUniqueId
post = getPost(uniqueId)
Fix:
# Render an item by its unique ID
def renderItemByUniqueId(self, uniqueId):
"""Render all pages associated with the post identified by `uniqueId`."""
post = self.getPost(uniqueId)
# ... and so on
I've got no idea why renderItemsWithUnresolvedLinks was triggering weblog renders. I should also look into that.
|