Commit fbb06362 authored by Mayoro Diagne's avatar Mayoro Diagne

2010-06-13 mayoro

*remove unused variables

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36292 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4429bd99
...@@ -94,7 +94,6 @@ if mode == \'edit\':\n ...@@ -94,7 +94,6 @@ if mode == \'edit\':\n
attachment_file_list = kw[\'attachment\']\n attachment_file_list = kw[\'attachment\']\n
attachment_list = zip(attachment_file_list, attachment_title_list)\n attachment_list = zip(attachment_file_list, attachment_title_list)\n
attachment_count = 0\n attachment_count = 0\n
meta_type_dict = {}\n
type_dict = {}\n type_dict = {}\n
type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n
for i in range(len(attachment_list)+1)[1:]:\n for i in range(len(attachment_list)+1)[1:]:\n
...@@ -102,7 +101,6 @@ if mode == \'edit\':\n ...@@ -102,7 +101,6 @@ if mode == \'edit\':\n
title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n
if title is not None and type is not None:\n if title is not None and type is not None:\n
type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\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 type_dict[title()] = type_object.getId()\n
if type_object.getId() not in type_allowed_content_type_list: \n if type_object.getId() not in type_allowed_content_type_list: \n
type_allowed_content_type_list.append(type_object.getId())\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 ...@@ -264,7 +262,6 @@ return context.Base_redirect(next_url, keep_items = dict(portal_status_message=m
<string>attachment_file_list</string> <string>attachment_file_list</string>
<string>zip</string> <string>zip</string>
<string>attachment_list</string> <string>attachment_list</string>
<string>meta_type_dict</string>
<string>type_dict</string> <string>type_dict</string>
<string>type_allowed_content_type_list</string> <string>type_allowed_content_type_list</string>
<string>range</string> <string>range</string>
......
...@@ -92,7 +92,6 @@ if mode == \'edit\':\n ...@@ -92,7 +92,6 @@ if mode == \'edit\':\n
attachment_title_list = kw[\'attachment_title\']\n attachment_title_list = kw[\'attachment_title\']\n
attachment_file_list = kw[\'attachment\']\n attachment_file_list = kw[\'attachment\']\n
attachment_list = zip(attachment_file_list, attachment_title_list)\n attachment_list = zip(attachment_file_list, attachment_title_list)\n
meta_type_dict = {}\n
type_dict = {}\n type_dict = {}\n
type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n
for i in range(len(attachment_list)+1)[1:]:\n for i in range(len(attachment_list)+1)[1:]:\n
...@@ -100,7 +99,6 @@ if mode == \'edit\':\n ...@@ -100,7 +99,6 @@ if mode == \'edit\':\n
title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n
if title is not None and type is not None:\n if title is not None and type is not None:\n
type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\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 type_dict[title()] = type_object.getId()\n
if type_object.getId() not in type_allowed_content_type_list: \n if type_object.getId() not in type_allowed_content_type_list: \n
type_allowed_content_type_list.append(type_object.getId())\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 ...@@ -234,7 +232,6 @@ return context.Base_redirect(next_url, keep_items = dict(portal_status_message=m
<string>attachment_file_list</string> <string>attachment_file_list</string>
<string>zip</string> <string>zip</string>
<string>attachment_list</string> <string>attachment_list</string>
<string>meta_type_dict</string>
<string>type_dict</string> <string>type_dict</string>
<string>type_allowed_content_type_list</string> <string>type_allowed_content_type_list</string>
<string>range</string> <string>range</string>
......
...@@ -75,7 +75,6 @@ if mode == \'edit\':\n ...@@ -75,7 +75,6 @@ if mode == \'edit\':\n
attachment_list = zip(attachment_file_list, attachment_title_list)\n attachment_list = zip(attachment_file_list, attachment_title_list)\n
\n \n
attachment_count = 0\n attachment_count = 0\n
meta_type_dict = {}\n
type_dict = {}\n type_dict = {}\n
type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n type_allowed_content_type_list = context.getTypeInfo().getTypeAllowedContentTypeList()\n
for i in range(len(attachment_list)+1)[1:]:\n for i in range(len(attachment_list)+1)[1:]:\n
...@@ -83,7 +82,6 @@ if mode == \'edit\':\n ...@@ -83,7 +82,6 @@ if mode == \'edit\':\n
title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n title = getattr(context.getTypeInfo(), "getAttachmentTitle%s" % i, None) \n
if title is not None and type is not None:\n if title is not None and type is not None:\n
type_object = context.restrictedTraverse(context.getPortalObject().getUrl()+"/portal_types/"+type())\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 type_dict[title()] = type_object.getId()\n
if type_object.getId() not in type_allowed_content_type_list: \n if type_object.getId() not in type_allowed_content_type_list: \n
type_allowed_content_type_list.append(type_object.getId())\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 ...@@ -192,7 +190,6 @@ return context.Base_redirect(form_id, keep_items = dict(portal_status_message =p
<string>zip</string> <string>zip</string>
<string>attachment_list</string> <string>attachment_list</string>
<string>attachment_count</string> <string>attachment_count</string>
<string>meta_type_dict</string>
<string>type_dict</string> <string>type_dict</string>
<string>type_allowed_content_type_list</string> <string>type_allowed_content_type_list</string>
<string>range</string> <string>range</string>
......
2010-06-13 mayoro
*remove unused variables
2010-06-02 mayoro 2010-06-02 mayoro
* clean up change log and remove mistakes * clean up change log and remove mistakes
* remove replacing whitespace in preocedure title * remove replacing whitespace in preocedure title
......
526 530
\ 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