Commit 0cdf81ea authored by Lucas Carvalho's avatar Lucas Carvalho

Description filename is not hard coded it is a business configuration property.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31c4bd5f
......@@ -52,86 +52,20 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Cache import CachingMethod\n
\n
filename = "basic_configuration_ui_description.sxc"\n
if business_configuration is not None:\n
## get descriptive filename from bc\n
# XXX FIXME We should be able to define custom basic_configuration_ui_descriptions\n
#filename = business_configuration.getUserInterfaceDecriptionFileId()\n
pass\n
\n
filename = business_configuration.getUserInterfaceDescriptionFileId()\n
cachedMethod = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \'%s_%s\' %(script.getId(),filename))\n
object_list = cachedMethod(filename)\n
return object_list\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>business_configuration</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>business_configuration</string>
<string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string>
<string>filename</string>
<string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>script</string>
<string>cachedMethod</string>
<string>object_list</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>BusinessConfiguration_getUIDescription</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
......
482
\ No newline at end of file
483
\ 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