Commit d1aa8454 authored by Rafael Monnerat's avatar Rafael Monnerat

Added script to create initial gadgets on users first login.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44965 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e62920d
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_demo_maxma</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>knowledge_pad.setTitle("Home")\n
knowledge_box = knowledge_pad.newContent(\n
portal_type=\'Knowledge Box\',\n
specialise=\'specialise/portal_gadgets/erp5_gadget_best_seller_products\',\n
mode=\'total_price\',\n
section_category=\'group/my_group\',\n
activate_kw = activate_kw)\n
knowledge_box.visible()\n
knowledge_box.setProperty(\'method\',\'getCurrentInventoryList\')\n
\n
knowledge_box = knowledge_pad.newContent(\n
portal_type=\'Knowledge Box\',\n
specialise=\'specialise/portal_gadgets/erp5_gadget_contact_person\',\n
activate_kw = activate_kw)\n
knowledge_box.visible()\n
\n
# Documentation Gadget\n
knowledge_box = knowledge_pad.newContent(\n
portal_type=\'Knowledge Box\',\n
specialise=\'specialise/portal_gadgets/erp5_gadget_events\',\n
activate_kw=activate_kw)\n
knowledge_box.visible()\n
\n
# Documentation Gadget\n
knowledge_box = knowledge_pad.newContent(\n
portal_type=\'Knowledge Box\',\n
specialise=\'specialise/portal_gadgets/erp5_gadget_new_sale_opportunity\',\n
activate_kw=activate_kw)\n
knowledge_box.visible()\n
\n
knowledge_pad.edit(user_layout="1##3|2##4")\n
</string> </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>
17
\ No newline at end of file
18
\ No newline at end of file
erp5_demo_maxma
\ 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