From fbb0636223233457dfcbad038da284c7ed35cb67 Mon Sep 17 00:00:00 2001 From: Mayoro Diagne <mayoro@nexedi.com> Date: Sun, 13 Jun 2010 18:52:23 +0000 Subject: [PATCH] 2010-06-13 mayoro *remove unused variables git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36292 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_egov/EGov_Base_editAndNextStep.xml | 3 --- .../portal_skins/erp5_egov/EGov_Base_editAndRedirect.xml | 3 --- .../portal_skins/erp5_egov/PDFDocument_uploadAttachment.xml | 3 --- bt5/erp5_egov/bt/change_log | 3 +++ bt5/erp5_egov/bt/revision | 2 +- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndNextStep.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndNextStep.xml index c54d7408ec..47ba8f14ad 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndNextStep.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndNextStep.xml @@ -94,7 +94,6 @@ if mode == \'edit\':\n attachment_file_list = kw[\'attachment\']\n attachment_list = zip(attachment_file_list, attachment_title_list)\n attachment_count = 0\n - meta_type_dict = {}\n type_dict = {}\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n for i in range(len(attachment_list)+1)[1:]:\n @@ -102,7 +101,6 @@ if mode == \'edit\':\n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n if title is not None and type is not None:\n type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\n - meta_type_dict[title()] = type_object.getTypeMimeTypeList()\n type_dict[title()] = type_object.getId()\n if type_object.getId() not in type_allowed_content_type_list: \n type_allowed_content_type_list.append(type_object.getId())\n @@ -264,7 +262,6 @@ return context.Base_redirect(next_url, keep_items = dict(portal_status_message=m <string>attachment_file_list</string> <string>zip</string> <string>attachment_list</string> - <string>meta_type_dict</string> <string>type_dict</string> <string>type_allowed_content_type_list</string> <string>range</string> diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndRedirect.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndRedirect.xml index bdaa4ca643..d87b95f28e 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndRedirect.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_Base_editAndRedirect.xml @@ -92,7 +92,6 @@ if mode == \'edit\':\n attachment_title_list = kw[\'attachment_title\']\n attachment_file_list = kw[\'attachment\']\n attachment_list = zip(attachment_file_list, attachment_title_list)\n - meta_type_dict = {}\n type_dict = {}\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n for i in range(len(attachment_list)+1)[1:]:\n @@ -100,7 +99,6 @@ if mode == \'edit\':\n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n if title is not None and type is not None:\n type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\n - meta_type_dict[title()] = type_object.getTypeMimeTypeList()\n type_dict[title()] = type_object.getId()\n if type_object.getId() not in type_allowed_content_type_list: \n type_allowed_content_type_list.append(type_object.getId())\n @@ -234,7 +232,6 @@ return context.Base_redirect(next_url, keep_items = dict(portal_status_message=m <string>attachment_file_list</string> <string>zip</string> <string>attachment_list</string> - <string>meta_type_dict</string> <string>type_dict</string> <string>type_allowed_content_type_list</string> <string>range</string> diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/PDFDocument_uploadAttachment.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/PDFDocument_uploadAttachment.xml index 7ac58a802f..ba114073cb 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/PDFDocument_uploadAttachment.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/PDFDocument_uploadAttachment.xml @@ -75,7 +75,6 @@ if mode == \'edit\':\n attachment_list = zip(attachment_file_list, attachment_title_list)\n \n attachment_count = 0\n - meta_type_dict = {}\n type_dict = {}\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n for i in range(len(attachment_list)+1)[1:]:\n @@ -83,7 +82,6 @@ if mode == \'edit\':\n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n if title is not None and type is not None:\n type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\n - meta_type_dict[title()] = type_object.getTypeMimeTypeList()\n type_dict[title()] = type_object.getId()\n if type_object.getId() not in type_allowed_content_type_list: \n type_allowed_content_type_list.append(type_object.getId())\n @@ -192,7 +190,6 @@ return context.Base_redirect(form_id, keep_items = dict(portal_status_message =p <string>zip</string> <string>attachment_list</string> <string>attachment_count</string> - <string>meta_type_dict</string> <string>type_dict</string> <string>type_allowed_content_type_list</string> <string>range</string> diff --git a/bt5/erp5_egov/bt/change_log b/bt5/erp5_egov/bt/change_log index 3a43309b27..b01fe2ba4f 100644 --- a/bt5/erp5_egov/bt/change_log +++ b/bt5/erp5_egov/bt/change_log @@ -1,3 +1,6 @@ +2010-06-13 mayoro +*remove unused variables + 2010-06-02 mayoro * clean up change log and remove mistakes * remove replacing whitespace in preocedure title diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 3c2af958d8..f520b6ed4c 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -526 \ No newline at end of file +530 \ No newline at end of file -- 2.30.9