Commit e36d55ff authored by Douglas's avatar Douglas

wendelin_configurator: add default knowledge pad with wendelin info gadget

Now activates the knowledge pad homepage and create an instance of Wendelin Info
gadget automatically inside it.
parent f72a39ee
......@@ -6,12 +6,33 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>55.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_configurator_wendelin</string> </value>
......
......@@ -2,4 +2,8 @@
This script will be called to apply the customization.
"""
# Ivan: we simply do nothing for now
# Activate the knowledge pads on portal home to enable later the Wendelin
# Information gadget.
#
configuration = self.portal.portal_preferences.getActivePreference()
configuration.setPreferredHtmlStyleAccessTab(True)
knowledge_box = knowledge_pad.newContent(
portal_type='Knowledge Box',
specialise='portal_gadgets/wendelin_info_gadget',
activate_kw=activate_kw)
knowledge_box.visible()
<?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>_params</string> </key>
<value> <string>knowledge_pad, **activate_kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_createDefaultKnowledgeBox</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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