From 0498989725c3efe070a61ba2d61830ac05059dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 15 Jun 2010 16:18:32 +0000 Subject: [PATCH] this action is not implemented with budget model git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36365 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Budget/generate_structure.xml | 85 ---------- .../Budget_generateBudgetLineList.xml | 152 ------------------ bt5/erp5_budget/bt/revision | 2 +- bt5/erp5_budget/bt/template_action_path_list | 1 - 4 files changed, 1 insertion(+), 239 deletions(-) delete mode 100644 bt5/erp5_budget/ActionTemplateItem/portal_types/Budget/generate_structure.xml delete mode 100644 bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_generateBudgetLineList.xml diff --git a/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget/generate_structure.xml b/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget/generate_structure.xml deleted file mode 100644 index 138ba7c9b7..0000000000 --- a/bt5/erp5_budget/ActionTemplateItem/portal_types/Budget/generate_structure.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>action</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>categories</string> </key> - <value> - <tuple> - <string>action_type/object_action</string> - </tuple> - </value> - </item> - <item> - <key> <string>category</string> </key> - <value> <string>object_action</string> </value> - </item> - <item> - <key> <string>condition</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>description</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>icon</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>generate_structure</string> </value> - </item> - <item> - <key> <string>permissions</string> </key> - <value> - <tuple> - <string>Add portal content</string> - </tuple> - </value> - </item> - <item> - <key> <string>priority</string> </key> - <value> <float>4.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Generate Budget Line Structure</string> </value> - </item> - <item> - <key> <string>visible</string> </key> - <value> <int>1</int> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>string:${object_url}/Budget_generateBudgetLineList</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_generateBudgetLineList.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_generateBudgetLineList.xml deleted file mode 100644 index cd07c2a17f..0000000000 --- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/Budget_generateBudgetLineList.xml +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_body</string> </key> - <value> <string>from Products.CMFCore.utils import getToolByName\n -\n -ctool = getToolByName(context, \'portal_categories\')\n -_ = context.Base_translateString\n -\n -if context.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_financial_section\'):\n - for cat in ctool.financial_section.getCategoryChildValueList(include_if_child=0):\n - context.newContent(portal_type=\'Budget Line\',\n - title=cat.getTitle(),\n - financial_section_value=cat)\n -\n -if context.isMemberOf(\n - \'budget_line_variation/budget_variation/node_category_budget_section\'):\n - for cat in ctool.budget_section.getCategoryChildValueList(include_if_child=0):\n - context.newContent(portal_type=\'Budget Line\',\n - title=cat.getTitle(),\n - budget_section_value=cat)\n -\n -return context.Base_redirect(form_id,\n - keep_items=dict(portal_status_message=_(\'Budget Lines generated\')))\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>form_id=\'view\'</string> </value> - </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>form_id</string> - <string>Products.CMFCore.utils</string> - <string>getToolByName</string> - <string>context</string> - <string>ctool</string> - <string>_getattr_</string> - <string>_</string> - <string>_getiter_</string> - <string>cat</string> - <string>dict</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <tuple> - <string>view</string> - </tuple> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Budget_generateBudgetLineList</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision index f3a5e81bae..4e66132b50 100644 --- a/bt5/erp5_budget/bt/revision +++ b/bt5/erp5_budget/bt/revision @@ -1 +1 @@ -281 \ No newline at end of file +282 \ No newline at end of file diff --git a/bt5/erp5_budget/bt/template_action_path_list b/bt5/erp5_budget/bt/template_action_path_list index 924fc11a22..46d41ebde0 100644 --- a/bt5/erp5_budget/bt/template_action_path_list +++ b/bt5/erp5_budget/bt/template_action_path_list @@ -15,7 +15,6 @@ Budget Transfer Line | view Budget Transfer | view Budget | budget_group_consumption_export Budget | budget_group_consumption_report -Budget | generate_structure Budget | original_budget Budget | transfer_line_list_view Budget | view -- 2.30.9