Commit 475d308f authored by Christophe Dumez's avatar Christophe Dumez

- Fixed login bug due to some restricted names (hidden, realm)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8191 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8fc08dd5
...@@ -68,8 +68,7 @@ ...@@ -68,8 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.getPortalObject()["portal_subversion"].setLogin(realm, user, password)\n <value> <string>context.getPortalObject()["portal_subversion"].setLogin(auth, user, password)\n
return realm_hidden\n
if caller == \'update\':\n if caller == \'update\':\n
return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdate\')\n return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_doSvnUpdate\')\n
elif caller == \'updatewc\':\n elif caller == \'updatewc\':\n
...@@ -96,7 +95,7 @@ else:\n ...@@ -96,7 +95,7 @@ else:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>user,password,realm,added,modified,removed,caller,changelog,**kw</string> </value> <value> <string>user,password,auth,added,modified,removed,caller,changelog,**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -124,7 +123,7 @@ else:\n ...@@ -124,7 +123,7 @@ else:\n
<tuple> <tuple>
<string>user</string> <string>user</string>
<string>password</string> <string>password</string>
<string>realm</string> <string>auth</string>
<string>added</string> <string>added</string>
<string>modified</string> <string>modified</string>
<string>removed</string> <string>removed</string>
...@@ -134,7 +133,6 @@ else:\n ...@@ -134,7 +133,6 @@ else:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>context</string> <string>context</string>
<string>realm_hidden</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -74,9 +74,10 @@ ...@@ -74,9 +74,10 @@
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>realm</string> <string>realm_txt</string>
<string>your_user</string> <string>your_user</string>
<string>your_password</string> <string>your_password</string>
<string>your_auth</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -85,7 +86,6 @@ ...@@ -85,7 +86,6 @@
<value> <value>
<list> <list>
<string>your_removed</string> <string>your_removed</string>
<string>your_realm</string>
<string>your_modified</string> <string>your_modified</string>
<string>your_changelog</string> <string>your_changelog</string>
<string>your_caller</string> <string>your_caller</string>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>realm</string> </value> <value> <string>realm_txt</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_caller</string> </value> <value> <string>your_auth</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/caller</string> </value> <value> <string>python: here.realm</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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