Commit a267ee3d authored by Ivan Tyagov's avatar Ivan Tyagov

Set test title. Create a template gadget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d099d61b
......@@ -34,7 +34,7 @@
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<value> <unicode encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
......@@ -232,7 +232,7 @@
</html>\n
]]></string> </value>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
......@@ -246,9 +246,13 @@
<key> <string>id</string> </key>
<value> <string>testBasicGadgetSystem</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
......
......@@ -45,7 +45,7 @@
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Gadget System Integration</td></tr>\n
<tr><td rowspan="1" colspan="3" tal:content="template/getId"></td></tr>\n
</thead><tbody>\n
\n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/init"> init</span>\n
......
......@@ -34,7 +34,7 @@
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<value> <unicode encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
......@@ -201,7 +201,7 @@ Wait for activities</span>\n
</html>\n
]]></string> </value>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
......@@ -215,9 +215,13 @@ Wait for activities</span>\n
<key> <string>id</string> </key>
<value> <string>testWorklistGadget</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
......
......@@ -56,6 +56,18 @@ for gadget in context.portal_gadgets.objectValues():\n
gadget.visible()\n
gadget.public()\n
\n
# add to preference a template pad\n
active_preference = context.portal_preferences.getActivePreference()\n
knowledge_pad = active_preference.newContent(portal_type="Knowledge Pad",\n
title="Template Pad")\n
\n
knowledge_pad.visible()\n
knowledge_pad.public()\n
\n
# XXX: add some gadgets\n
\n
\n
\n
print "Done"\n
return printed\n
</string> </value>
......@@ -104,6 +116,8 @@ return printed\n
<string>_getattr_</string>
<string>context</string>
<string>gadget</string>
<string>active_preference</string>
<string>knowledge_pad</string>
</tuple>
</value>
</item>
......
15
\ No newline at end of file
16
\ 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