I am using 4suite under mod_python and when I try to use Ft.Xml.XUpdate.ApplyXUpdate() I get a runtime error "RuntimeError: function attributes not accessible in restricted mode".
I've tried to do a reload of Ft.Xml.XUpdate just before calling ApplyXUpdate() but this does not help.
I have seen one reference to this issue on another website (http://lists.fourthought.com/pipermail/4suite/2007-September/008342.html). That did have a possible workaround with a probable memory leak that I can't justify using on a production server. There were no other comments to that item.
Anyone got any ideas on how this can be fixed?
The tail end of the traceback (that includes all 4suite functions) is as follows:
.
.
.
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 606, in ApplyXUpdate
processor.execute(source, xupdate)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 106, in execute
self.visit(context, xupdate, 0)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 128, in visit
visit(self, context, node, preserveSpace)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 146, in _visit_document
self.visit(context, node, preserveSpace)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 128, in visit
visit(self, context, node, preserveSpace)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 188, in _visit_element
visit(self, context, element, preserveSpace)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 259, in _xu_append
position = self.evaluateExpression(con, child)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XUpdate.py", line 577, in evaluateExpression
return parsed_expr.evaluate(context)
File "/usr/lib/python2.4/site-packages/Ft/Xml/XPath/ParsedExpr.py", line 198, in evaluate
if not ('nocache' in func.__dict__ and func.nocache):
RuntimeError: function attributes not accessible in restricted mode