diff --git a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/Base_getUserRemoteBusinessConfigurationReferenceList.xml b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/Base_getUserRemoteBusinessConfigurationReferenceList.xml new file mode 100644 index 0000000000000000000000000000000000000000..60f107344ef6b65d931b1baddcffc4a7deb73558 --- /dev/null +++ b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/Base_getUserRemoteBusinessConfigurationReferenceList.xml @@ -0,0 +1,145 @@ +<?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>"""\n + Get the reference list of all validated business configuration related to the logged user.\n +"""\n +from Products.ERP5Type.Log import log\n +\n +portal = context.getPortalObject()\n +reference = portal.portal_membership.getAuthenticatedMember().getUserName()\n +kw = {\'reference\': reference}\n +\n +# XXX: This try except is used in case of connection refused\n +# and to make sure that the user interface will never be broken.\n +try:\n + return context.portal_wizard.callRemoteProxyMethod(\n + \'WitchTool_getBusinessConfigurationReferenceList\',\n + use_cache=1,\n + ignore_exceptions=0,\n + **kw)\n +except:\n + log(\'Base_getUserRemoteBusinessConfigurationReferenceList: \'\n + \'Could not retrieve the Business Configuration reference list.\', level=100)\n + return []\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>Products.ERP5Type.Log</string> + <string>log</string> + <string>_getattr_</string> + <string>context</string> + <string>portal</string> + <string>reference</string> + <string>kw</string> + <string>_apply_</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_getUserRemoteBusinessConfigurationReferenceList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/tiolive_base/bt/revision b/bt5/tiolive_base/bt/revision index aa92725341cfdd96ebd08910d54dcb6933dd5be5..780fea92d290e030d3636fa09844dfb11e96ef2a 100644 --- a/bt5/tiolive_base/bt/revision +++ b/bt5/tiolive_base/bt/revision @@ -1 +1 @@ -76 \ No newline at end of file +77 \ No newline at end of file