Commit 63b7a732 authored by Christophe Dumez's avatar Christophe Dumez

- Some changes in case we restore 'out of dateness" feature someday

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a00de625
......@@ -71,16 +71,17 @@
<value> <string>context.getPortalObject()["portal_subversion"].setLogin(auth, user, password)\n
if caller == \'update\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdate\')\n
elif caller == \'updatewc\':\n
if caller == \'tree\':\n
return context.BusinessTemplate_viewSvnStatus(do_extract=\'False\')\n
if caller == \'updatewc\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdatewc\')\n
elif caller == \'commit\':\n
if caller == \'commit\':\n
return context.BusinessTemplate_doSvnCommit(changelog=changelog,added=added,removed=removed,modified=modified)\n
elif caller == \'info\':\n
if caller == \'info\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnInfo\')\n
elif caller == \'switch\':\n
if caller == \'switch\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnSwitch(repos_url)\')\n
else:\n
return \'Error: Caller \'+caller+\' is unknown\'\n
return \'Error: Caller \'+caller+\' is unknown\'\n
</string> </value>
</item>
<item>
......
......@@ -79,20 +79,19 @@ if caller == \'update\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdate\')\n
if caller == \'tree\':\n
return context.BusinessTemplate_viewSvnStatus(do_extract=\'False\')\n
elif caller == \'updatewc\':\n
if caller == \'updatewc\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdatewc\')\n
elif caller == \'commit\':\n
if caller == \'commit\':\n
return context.BusinessTemplate_doSvnCommit(changelog=changelog,added=added,removed=removed,modified=modified)\n
elif caller == \'ls\':\n
if caller == \'ls\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnLs?added=\'+added.replace(\'%20\',\'%2520\').replace(\' \',\'%20\'))\n
elif caller == \'log\':\n
if caller == \'log\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnLog?added=\'+added.replace(\'%20\',\'%2520\').replace(\' \',\'%20\'))\n
elif caller == \'info\':\n
if caller == \'info\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnInfo\')\n
elif caller == \'switch\':\n
if caller == \'switch\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnSwitch(repos_url)\')\n
else:\n
return \'Error: Caller \'+ caller + \'is unknown\'\n
return \'Error: Caller \'+ caller + \'is unknown\'\n
</string> </value>
</item>
<item>
......
......@@ -82,6 +82,10 @@ try:\n
except SubversionSSLTrustError, error:\n
context.REQUEST.set(\'portal_status_message\', \'SSL Certificate was not recognized\')\n
return context.asContext(trust_dict = error.getTrustDict(), caller=\'tree\').BusinessTemplate_viewSvnSSLTrust()\n
except SubversionLoginError, error1 :\n
context.REQUEST.set(\'portal_status_message\', \'Server needs authentication, no cookie found\')\n
return context.asContext(caller=\'tree\', realm = error1.getRealm(), username = context.getPortalObject()["portal_subversion"].getPreferredUsername()).BusinessTemplate_viewSvnLogin()\n
\n
\n
if not root:\n
return \'\'\'<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n
......@@ -141,6 +145,8 @@ return context.getPortalObject().portal_subversion.treeToXML(root, context)\n
<string>context</string>
<string>root</string>
<string>error</string>
<string>error1</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
......
84
\ No newline at end of file
85
\ 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