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 @@ ...@@ -34,7 +34,7 @@
</item> </item>
<item> <item>
<key> <string>_text</string> </key> <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 <html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n xmlns:metal="http://xml.zope.org/namespaces/metal">\n
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</html>\n </html>\n
]]></string> </value> ]]></unicode> </value>
</item> </item>
<item> <item>
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
...@@ -246,9 +246,13 @@ ...@@ -246,9 +246,13 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>testBasicGadgetSystem</string> </value> <value> <string>testBasicGadgetSystem</string> </value>
</item> </item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<body>\n <body>\n
<table cellpadding="1" cellspacing="1" border="1">\n <table cellpadding="1" cellspacing="1" border="1">\n
<thead>\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 </thead><tbody>\n
\n \n
<span metal:use-macro="container/Zuite_CommonTemplate/macros/init"> init</span>\n <span metal:use-macro="container/Zuite_CommonTemplate/macros/init"> init</span>\n
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</item> </item>
<item> <item>
<key> <string>_text</string> </key> <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 <html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n xmlns:metal="http://xml.zope.org/namespaces/metal">\n
...@@ -201,7 +201,7 @@ Wait for activities</span>\n ...@@ -201,7 +201,7 @@ Wait for activities</span>\n
</html>\n </html>\n
]]></string> </value> ]]></unicode> </value>
</item> </item>
<item> <item>
<key> <string>content_type</string> </key> <key> <string>content_type</string> </key>
...@@ -215,9 +215,13 @@ Wait for activities</span>\n ...@@ -215,9 +215,13 @@ Wait for activities</span>\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>testWorklistGadget</string> </value> <value> <string>testWorklistGadget</string> </value>
</item> </item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -56,6 +56,18 @@ for gadget in context.portal_gadgets.objectValues():\n ...@@ -56,6 +56,18 @@ for gadget in context.portal_gadgets.objectValues():\n
gadget.visible()\n gadget.visible()\n
gadget.public()\n gadget.public()\n
\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 print "Done"\n
return printed\n return printed\n
</string> </value> </string> </value>
...@@ -104,6 +116,8 @@ return printed\n ...@@ -104,6 +116,8 @@ return printed\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>gadget</string> <string>gadget</string>
<string>active_preference</string>
<string>knowledge_pad</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
15 16
\ No newline at end of file \ 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