Commit d2a99f42 authored by Ivan Tyagov's avatar Ivan Tyagov

Move away non generic advertisement gadget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36383 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a94e5c25
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Gadget" module="Products.ERP5.Document.Gadget"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<list>
<string>Anonymous</string>
</list>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<list>
<string>Anonymous</string>
</list>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_folder_handler</string> </key>
<value> <string>CMFBTreeFolderHandler</string> </value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>view_form_id</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>render_type</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>multiple_instances_allowed</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>int</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>image_id</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>gadget_type/web_front</string>
<string>gadget_type/erp5_front</string>
<string>gadget_type/web_section</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Gadget that will show a random Express advertisement.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>express_advertisement</string> </value>
</item>
<item>
<key> <string>image_id</string> </key>
<value> <string>1</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</string> </value>
</item>
<item>
<key> <string>multiple_instances_allowed</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Gadget</string> </value>
</item>
<item>
<key> <string>render_type</string> </key>
<value> <string>synchronous</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Express Advertisment</string> </value>
</item>
<item>
<key> <string>view_form_id</string> </key>
<value> <string>WebSite_viewExpressAdvertisementGadget</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees._OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div class="express-advertisement-gadget">\n
\n
<script type="text/javascript" language="javascript">\n
var url = "express_frame/advertisement_section/installation/WebSection_getTextContentAsJSON";\n
var advertisement_list = new Array();\n
\n
function handleServerSuccess(meta){\n
var array_index = 0;\n
forEach(meta[\'km\'], function(item){\n
advertisement_list[array_index] = item[\'content\'];\n
array_index = array_index +1;});\n
showNextSlide();}\n
\n
function refreshSlide() {\n
d = loadJSONDoc(url, {\'type_list\': \'km\'});\n
d.addCallback(handleServerSuccess);}\n
\n
function showNextSlide() {\n
var all_ads = advertisement_list.length;\n
ad_index = Math.floor(Math.random()*all_ads);\n
var div_container = getElement("km_remote_slide");\n
div_container.style.display = \'none\';\n
div_container.innerHTML = advertisement_list[ad_index];\n
appear(div_container);}\n
\n
connect(window, \'onload\', refreshSlide);\n
</script>\n
\n
<div class="content">\n
<div id="km_remote_slide"> Loading ... </div>\n
</div>\n
\n
<div class="subscribe" \n
tal:define="website here/getWebSiteValue;\n
portal_path website/absolute_url;">\n
<a href="https://www.myerp5.com/express/SubscriptionRequest_viewDialog">\n
<img src="km_gadget_images/gadget-subscribe-express-button"\n
tal:attributes="src string:${portal_path}/km_gadget_images/gadget-subscribe-express-button" \n
alt="Subscribe to ERP5 Express"/>\n
</a>\n
</div>\n
\n
</div>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_viewExpressAdvertisementGadget</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Express Advertisement</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
1456
\ No newline at end of file
1457
\ No newline at end of file
portal_gadgets/express_advertisement
portal_gadgets/express_advertisement/**
portal_gadgets/km_admin
portal_gadgets/km_admin/**
portal_gadgets/km_assigned_member
......
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