From e11f66eb655db8339a2d9b197b89f6c3b26099e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 1 Apr 2014 16:15:37 +0200 Subject: [PATCH 1/1] =?utf8?q?Bugfix=C2=A0:=20la=20localisation=20des=20zp?= =?utf8?q?t=20ne=20fonctionnait=20plus.=20=C2=AB=C2=A0request=C2=A0=C2=BB?= =?utf8?q?=20=C3=A9tait=20mal=20initialis=C3=A9.=20Contournement=20en=20ut?= =?utf8?q?ilisant=20restrictedTraverse=20pour=20avoir=20la=20zpt=20correct?= =?utf8?q?ement=20wrapp=C3=A9e=20avec=20le=20context=20et=20la=20requ?= =?utf8?q?=C3=A8te=20http=20courante.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../browser/mac_finder/connectors/plinn/connector.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/skins/ckeditor/filemanager/browser/mac_finder/connectors/plinn/connector.py b/skins/ckeditor/filemanager/browser/mac_finder/connectors/plinn/connector.py index 61d0eae..341babb 100644 --- a/skins/ckeditor/filemanager/browser/mac_finder/connectors/plinn/connector.py +++ b/skins/ckeditor/filemanager/browser/mac_finder/connectors/plinn/connector.py @@ -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('') -- 2.20.1