From 0f33f18ce3203a7075e516f7142ae4866e804aec Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 26 Mar 2013 15:43:18 +0100 Subject: [PATCH] Add minimal Base_getWorklistIgnoredSecurityColumnSet implementation. With due warnings. --- ...se_getWorklistIgnoredSecurityColumnSet.xml | 73 +++++++++++++++++++ bt5/erp5_worklist_sql/bt/revision | 2 +- 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_getWorklistIgnoredSecurityColumnSet.xml diff --git a/bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_getWorklistIgnoredSecurityColumnSet.xml b/bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_getWorklistIgnoredSecurityColumnSet.xml new file mode 100644 index 0000000000..e40bbfa6dc --- /dev/null +++ b/bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_getWorklistIgnoredSecurityColumnSet.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </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># Be careful when returning column names here.\n +# A legitimate use case is when you have a lot of users (ex: customer accounts)\n +# *and* the number of rows in your worklist table is proportional to the number\n +# of such users *and* such users will not see worklists.\n +# If you ignore all security columns, no security will be applied anymore on\n +# worklist listing (document security will of course still apply).\n +return ()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_getWorklistIgnoredSecurityColumnSet</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_worklist_sql/bt/revision b/bt5/erp5_worklist_sql/bt/revision index c24b6ae77d..72f523f36e 100644 --- a/bt5/erp5_worklist_sql/bt/revision +++ b/bt5/erp5_worklist_sql/bt/revision @@ -1 +1 @@ -38 \ No newline at end of file +39 \ No newline at end of file -- 2.30.9