From 384fa7e3dccc304ea818a7235df50b2b00fb9687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Tue, 9 Oct 2007 13:03:36 +0000 Subject: [PATCH] Use a kosher method to get portal's url. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16908 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_tests/document_zuite/testAddObject.xml | 11 ++++++----- bt5/erp5_ui_test/bt/revision | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml index bc0948b0c3..06f11a055c 100644 --- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testAddObject.xml @@ -82,7 +82,7 @@ have id "2". This is probably a bit too stupid. -->\n <tr>\n <td>assertLocation</td>\n - <td tal:content="python: \'/%s/foo_module/2/view\' % here.getPortalObject().getId()"/>\n + <td tal:content="python: \'%s/foo_module/2/view\' % here.getPortalObject().absolute_url_path()"/>\n <td></td>\n </tr>\n <tr>\n @@ -103,7 +103,7 @@ have id "2". This is probably a bit too stupid. -->\n </tr>\n <tr>\n <td>assertLocation</td>\n - <td tal:content="python: \'/%s/foo_module/2/1/view\' % here.getPortalObject().getId()"/>\n + <td tal:content="python: \'%s/foo_module/2/1/view\' % here.getPortalObject().absolute_url_path()"/>\n <td></td>\n </tr>\n <tr>\n @@ -131,7 +131,7 @@ have id "2". This is probably a bit too stupid. -->\n </tr>\n <tr>\n <td>assertLocation</td>\n - <td tal:content="python: \'/%s/foo_module/3/view\' % here.getPortalObject().getId()"/>\n + <td tal:content="python: \'%s/foo_module/3/view\' % here.getPortalObject().absolute_url_path()"/>\n <td></td>\n </tr>\n <tr>\n @@ -153,7 +153,7 @@ another object of the same type. -->\n </tr>\n <tr>\n <td>assertLocation</td>\n - <td tal:content="python: \'/%s/foo_module/4/view\' % here.getPortalObject().getId()"/>\n + <td tal:content="python: \'%s/foo_module/4/view\' % here.getPortalObject().absolute_url_path()"/>\n <td></td>\n </tr>\n <tr>\n @@ -168,7 +168,8 @@ another object of the same type. -->\n </tr>\n \n </body>\n -</html> +</html>\n + ]]></string> </value> </item> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 0e4c1b3f90..bcad85486c 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -226 \ No newline at end of file +225 \ No newline at end of file -- 2.30.9