Commit 55a31138 authored by Julien Muchembled's avatar Julien Muchembled

erp5_forge: fix errors in login/ssl_trust dialogs on Zope 2.8

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44231 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39776ed5
......@@ -52,7 +52,12 @@
<key> <string>_body</string> </key>
<value> <string>context.getVcsTool().setLogin(auth, user, password)\n
\n
return context.REQUEST.traverseName(context, caller)(**caller_kw)\n
request = context.REQUEST\n
try:\n
traverseName = request.traverseName\n
except AttributeError: # BBB: Zope2.8\n
return request.traverse(\'%s/%s\' % (context.getPath(), caller))(**dict(caller_kw))\n
return traverseName(context, caller)(**caller_kw)\n
</string> </value>
</item>
<item>
......
......@@ -56,7 +56,11 @@ trust_dict=dict((x, request[x]) for x in (\n
\n
context.getVcsTool().acceptSSLServer(trust_dict, True)\n
\n
return request.traverseName(context, caller)(**caller_kw)\n
try:\n
traverseName = request.traverseName\n
except AttributeError: # BBB: Zope2.8\n
return request.traverse(\'%s/%s\' % (context.getPath(), caller))(**dict(caller_kw))\n
return traverseName(context, caller)(**caller_kw)\n
</string> </value>
</item>
<item>
......
648
\ No newline at end of file
649
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment