Bugfix : la localisation des zpt ne fonctionnait plus. « request » était mal initiali...
[ckeditor.git] / skins / ckeditor / filemanager / browser / mac_finder / connectors / plinn / connector.py
index 61d0eae..341babb 100644 (file)
@@ -53,7 +53,14 @@ elif command == 'info':
        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>')