Commit e4f86c6f authored by Aurel's avatar Aurel

replace repository by the one for test to avoid having too many bt to choose

and set default repository again at end

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12017 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 712f72e5
...@@ -206,6 +206,16 @@ ...@@ -206,6 +206,16 @@
\t<td>Business Template test_xhtml_style, test_web installed</td>\n \t<td>Business Template test_xhtml_style, test_web installed</td>\n
\t<td></td>\n \t<td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/BTZuite_reset?end=1"/>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Reset Successfully.</td>\n
<td></td>\n
</tr>\n
</body>\n </body>\n
</html>\n </html>\n
......
...@@ -74,16 +74,16 @@ for bt in bt_list:\n ...@@ -74,16 +74,16 @@ for bt in bt_list:\n
if bt.getTitle().startswith(\'test_\'):\n if bt.getTitle().startswith(\'test_\'):\n
bt.uninstall()\n bt.uninstall()\n
\n \n
is_test_repos_present = False\n # modify repository list information\n
repository_list = context.portal_templates.getRepositoryList()\n if end:\n
for repository in repository_list:\n # set default repository list when test is finished\n
if repository.startswith(\'http://torrent.erp5.org/dists/snapshot/test_bt5\'):\n repository_list = [\'http://torrent.erp5.org/dists/snapshot/bt5\']\n
is_test_repos_present = True\n else:\n
break\n # just used test repository to not display to many bt and thus have listbox\n
# with many pages\n
repository_list = [\'http://torrent.erp5.org/dists/snapshot/test_bt5\']\n
\n \n
if not is_test_repos_present:\n context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n
repository_list.append(\'http://torrent.erp5.org/dists/snapshot/test_bt5\')\n
context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n
\n \n
return \'Reset Successfully.\'\n return \'Reset Successfully.\'\n
</string> </value> </string> </value>
...@@ -108,7 +108,7 @@ return \'Reset Successfully.\'\n ...@@ -108,7 +108,7 @@ return \'Reset Successfully.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>end=0</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -128,22 +128,19 @@ return \'Reset Successfully.\'\n ...@@ -128,22 +128,19 @@ return \'Reset Successfully.\'\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>end</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>bt_list</string> <string>bt_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>bt</string> <string>bt</string>
<string>False</string>
<string>is_test_repos_present</string>
<string>repository_list</string> <string>repository_list</string>
<string>repository</string>
<string>True</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -155,7 +152,9 @@ return \'Reset Successfully.\'\n ...@@ -155,7 +152,9 @@ return \'Reset Successfully.\'\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<int>0</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
149 152
\ 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