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 @@ ...@@ -52,7 +52,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.getVcsTool().setLogin(auth, user, password)\n <value> <string>context.getVcsTool().setLogin(auth, user, password)\n
\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> </string> </value>
</item> </item>
<item> <item>
......
...@@ -56,7 +56,11 @@ trust_dict=dict((x, request[x]) for x in (\n ...@@ -56,7 +56,11 @@ trust_dict=dict((x, request[x]) for x in (\n
\n \n
context.getVcsTool().acceptSSLServer(trust_dict, True)\n context.getVcsTool().acceptSSLServer(trust_dict, True)\n
\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> </string> </value>
</item> </item>
<item> <item>
......
648 649
\ No newline at end of file \ 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