linkFunction = lambda o : o.absolute_url()
ti = ob.getTypeInfo()
method_id = ti.queryMethodID('info')
- meth = method_id and getattr(ob, method_id) or (lambda:'Not implemented')
+ if not method_id or not hasattr(ob, method_id) :
+ meth = lambda:'Not implemented'
+ else :
+ path = list(ob.getPhysicalPath())
+ path.append(method_id)
+ app = context.restrictedTraverse('/')
+ meth = app.restrictedTraverse(tuple(path))
+
lines = []
pr = lines.append
pr('<info>')