From 2732904f927ecd3fce9b87c20ad8de2cb8738249 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Tue, 2 Mar 2010 11:45:12 +0000 Subject: [PATCH] With vhost rewriting the path differ from physical one. So split the url and take the last part to fetch the form_id git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33273 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ExtensionTemplateItem/DataProtectionRequestUtils.py | 2 +- bt5/erp5_data_protection/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_data_protection/ExtensionTemplateItem/DataProtectionRequestUtils.py b/bt5/erp5_data_protection/ExtensionTemplateItem/DataProtectionRequestUtils.py index 6abc69f4d2..137f021fd3 100644 --- a/bt5/erp5_data_protection/ExtensionTemplateItem/DataProtectionRequestUtils.py +++ b/bt5/erp5_data_protection/ExtensionTemplateItem/DataProtectionRequestUtils.py @@ -59,7 +59,7 @@ def Base_updatePropertyMapListWithFieldLabel(self, property_map_list): if 'view' in action.getActionType()] action_url_list = [action_view_url(createExpressionContext(self))\ for action_view_url in action_view_url_list] - form_id_list = [urlparse(action_url)[2].replace('%s/' % self.getPath(), '') \ + form_id_list = [urlparse(action_url)[2].split('/')[-1] \ for action_url in action_url_list] for property_map in property_map_list: label = None diff --git a/bt5/erp5_data_protection/bt/revision b/bt5/erp5_data_protection/bt/revision index 9d607966b7..3cacc0b93c 100644 --- a/bt5/erp5_data_protection/bt/revision +++ b/bt5/erp5_data_protection/bt/revision @@ -1 +1 @@ -11 \ No newline at end of file +12 \ No newline at end of file -- 2.30.9