From d31d8b49912d8bf07bb8194abb2070dd9533c9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 9 Jun 2008 09:20:57 +0000 Subject: [PATCH] * fix module permission according to what is defined in prod * many xml changes which are not significant git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21423 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../bank_account_inventory_module.xml | 28 +++++++++---- .../cash_inventory_module.xml | 39 +++++++++++++++---- ...ory_getDefaultInventoryCalculationList.xml | 2 +- .../CashInventory_view.xml | 19 ++++++--- bt5/erp5_banking_inventory/bt/revision | 2 +- 5 files changed, 68 insertions(+), 22 deletions(-) diff --git a/bt5/erp5_banking_inventory/ModuleTemplateItem/bank_account_inventory_module.xml b/bt5/erp5_banking_inventory/ModuleTemplateItem/bank_account_inventory_module.xml index 5237ee6ccc..4b7f9fc546 100644 --- a/bt5/erp5_banking_inventory/ModuleTemplateItem/bank_account_inventory_module.xml +++ b/bt5/erp5_banking_inventory/ModuleTemplateItem/bank_account_inventory_module.xml @@ -174,6 +174,7 @@ </permission> <permission type='tuple'> <name>Add ERP5Subversion Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add ERP5SyncML Tools</name> @@ -207,8 +208,9 @@ <name>Add Formulator Forms</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Add HBTreeFolder2s</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add LocalContents</name> @@ -298,8 +300,9 @@ <name>Add Z MySQL Database Connections</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Add Z MySQL Deferred Database Connections</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add ZCatalogs</name> @@ -419,6 +422,7 @@ </permission> <permission type='tuple'> <name>Change local roles</name> + <role>Assignor</role> <role>Manager</role> </permission> <permission type='tuple'> @@ -439,6 +443,11 @@ </permission> <permission type='tuple'> <name>Copy or Move</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> <role>Manager</role> </permission> <permission type='tuple'> @@ -466,15 +475,17 @@ <name>Edit Factories</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Edit ParsedXML</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Edit ReStructuredText</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Edit target</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>FTP access</name> @@ -525,8 +536,9 @@ <name>Manage Groups</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Manage Selenium test cases</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Manage Transient Object Container</name> @@ -552,8 +564,9 @@ <name>Manage ZCatalogIndex Entries</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Manage extensions</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Manage languages</name> @@ -669,8 +682,9 @@ <role>Author</role> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>View DOM hierarchy</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>View History</name> diff --git a/bt5/erp5_banking_inventory/ModuleTemplateItem/cash_inventory_module.xml b/bt5/erp5_banking_inventory/ModuleTemplateItem/cash_inventory_module.xml index 52fc609aa2..361d041672 100644 --- a/bt5/erp5_banking_inventory/ModuleTemplateItem/cash_inventory_module.xml +++ b/bt5/erp5_banking_inventory/ModuleTemplateItem/cash_inventory_module.xml @@ -54,6 +54,7 @@ </permission> <permission type='tuple'> <name>Add CMF Action Icons Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add CMF Active Processs</name> @@ -65,6 +66,7 @@ </permission> <permission type='tuple'> <name>Add CMF Calendar Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add CMF Core Tools</name> @@ -72,6 +74,7 @@ </permission> <permission type='tuple'> <name>Add CMF Default Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add CMF Report Tools</name> @@ -79,6 +82,7 @@ </permission> <permission type='tuple'> <name>Add CMF Setup Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add CMF Sites</name> @@ -86,6 +90,7 @@ </permission> <permission type='tuple'> <name>Add CMF Unique Id Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add CMFActivity Tools</name> @@ -101,6 +106,7 @@ </permission> <permission type='tuple'> <name>Add Configured CMF Sites</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add Content Type Registrys</name> @@ -168,6 +174,7 @@ </permission> <permission type='tuple'> <name>Add ERP5Subversion Tools</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add ERP5SyncML Tools</name> @@ -195,15 +202,15 @@ </permission> <permission type='tuple'> <name>Add Folders</name> - <role>Author</role> <role>Manager</role> </permission> <permission type='tuple'> <name>Add Formulator Forms</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Add HBTreeFolder2s</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add LocalContents</name> @@ -243,6 +250,7 @@ </permission> <permission type='tuple'> <name>Add Plugin Registrys</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add Python Scripts</name> @@ -292,8 +300,9 @@ <name>Add Z MySQL Database Connections</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Add Z MySQL Deferred Database Connections</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Add ZCatalogs</name> @@ -413,6 +422,8 @@ </permission> <permission type='tuple'> <name>Change local roles</name> + <role>Assignor</role> + <role>Manager</role> </permission> <permission type='tuple'> <name>Change permissions</name> @@ -432,6 +443,11 @@ </permission> <permission type='tuple'> <name>Copy or Move</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> <role>Manager</role> </permission> <permission type='tuple'> @@ -459,15 +475,17 @@ <name>Edit Factories</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Edit ParsedXML</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Edit ReStructuredText</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Edit target</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>FTP access</name> @@ -516,9 +534,11 @@ </permission> <permission type='tuple'> <name>Manage Groups</name> + <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Manage Selenium test cases</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Manage Transient Object Container</name> @@ -544,8 +564,9 @@ <name>Manage ZCatalogIndex Entries</name> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>Manage extensions</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Manage languages</name> @@ -610,6 +631,7 @@ </permission> <permission type='tuple'> <name>Search for principals</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>Set own password</name> @@ -660,8 +682,9 @@ <role>Author</role> <role>Manager</role> </permission> - <permission type='list'> + <permission type='tuple'> <name>View DOM hierarchy</name> + <role>Manager</role> </permission> <permission type='tuple'> <name>View History</name> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventory_getDefaultInventoryCalculationList.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventory_getDefaultInventoryCalculationList.xml index 7c069e4257..3a9c5367e8 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventory_getDefaultInventoryCalculationList.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/BankAccountInventory_getDefaultInventoryCalculationList.xml @@ -126,7 +126,7 @@ return default_inventory_calculation_list\n <value> <tuple> <string>_getattr_</string> -<string>context</string> + <string>context</string> <string>default_inventory_calculation_list</string> </tuple> </value> diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml index 9a78696dc6..766a15ce41 100644 --- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml +++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_view.xml @@ -69,6 +69,7 @@ <string>center</string> <string>bottom</string> <string>hidden</string> + <string>not_assigned</string> </list> </value> </item> @@ -77,7 +78,7 @@ <value> <dictionary> <item> - <key> <string>bottom</string> </key> + <key> <string>bottom</string> </key> <value> <list> <string>listbox</string> @@ -85,13 +86,13 @@ </value> </item> <item> - <key> <string>center</string> </key> + <key> <string>center</string> </key> <value> <list/> </value> </item> <item> - <key> <string>hidden</string> </key> + <key> <string>hidden</string> </key> <value> <list> <string>listbox_quantity</string> @@ -100,7 +101,7 @@ </value> </item> <item> - <key> <string>left</string> </key> + <key> <string>left</string> </key> <value> <list> <string>my_destination</string> @@ -110,7 +111,15 @@ </value> </item> <item> - <key> <string>right</string> </key> + <key> <string>not_assigned</string> </key> + <value> + <list> + <string>listbox_total_quantity</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> <value> <list/> </value> diff --git a/bt5/erp5_banking_inventory/bt/revision b/bt5/erp5_banking_inventory/bt/revision index b393560759..cabf43b5dd 100644 --- a/bt5/erp5_banking_inventory/bt/revision +++ b/bt5/erp5_banking_inventory/bt/revision @@ -1 +1 @@ -23 \ No newline at end of file +24 \ No newline at end of file -- 2.30.9