Commit d350f776 authored by Sven Franck's avatar Sven Franck

erp5_corporate_identity: add missing files

parent 7f31b686
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</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>100.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_corporate_identity_leaflet</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>two page flyer</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>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>WebPage_createLeaflet</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:comment replace="nothing">
"""
================================================================================
Generates the complete leaflet
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_organisation_claim python: options.get('leaflet_organisation_claim');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_copyright python: options.get('leaflet_copyright');
leaflet_full_reference python: options.get('leaflet_full_reference');
leaflet_year python: options.get('leaflet_year');
leaflet_contributor_list python: options.get('leaflet_contributor_list');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_address python: options.get('leaflet_address');
leaflet_postal_code python: options.get('leaflet_postal_code');
leaflet_city python: options.get('leaflet_city');
leaflet_country python: options.get('lleaflet_country');
leaflet_email python: options.get('leaflet_email');
leaflet_phone python: options.get('leaflet_phone');
leaflet_date python: options.get('leaflet_date');
leaflet_content python: options.get('leaflet_content');
leaflet_display_side python: options.get('leaflet_display_side');
leaflet_theme_logo_url python: options.get('leaflet_theme_logo_url');
leaflet_theme_logo_alt python: options.get('leaflet_theme_logo_alt');
leaflet_recycle_url python: options.get('leaflet_recycle_url');
leaflet_css python: options.get('leaflet_css');">
<!DOCTYPE html>
<html tal:attributes="class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])">
<head>
<meta charset="utf-8">
<title tal:content="leaflet_title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<tal:block tal:repeat="font_url leaflet_theme_css_font_list">
<link rel="stylesheet" tal:attributes="href font_url" />
</tal:block>
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])" />
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])" />
<tal:block tal:condition="python: leaflet_css is not None">
<style type="text/css" tal:content="python: leaflet_css"></style>
</tal:block>
<script type="text/javascript">
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
for (var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for (var i in x) {
var y = document.getElementsByClassName(x[i]);
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
<tal:block metal:use-macro="context/WebPage_createLeafletHeader/macros/leaflet_header" />
<tal:block metal:use-macro="context/WebPage_createLeafletContent/macros/leaflet_content" />
<tal:block metal:use-macro="context/WebPage_createLeafletFooter/macros/leaflet_footer" />
</body>
</html>
</tal:block>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>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>WebPage_createLeafletContent</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:comment replace="nothing">
"""
================================================================================
Generate leaflet content
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_display_side python: options.get('leaflet_display_side');
leaflet_content python: options.get('leaflet_content');
leaflet_css python: options.get('leaflet_css');">
<!DOCTYPE html>
<html tal:attributes="class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])">
<head>
<meta charset="utf-8">
<title tal:content="leaflet_title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<tal:block tal:repeat="font_url leaflet_theme_css_font_list">
<link rel="stylesheet" tal:attributes="href font_url" />
</tal:block>
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])" />
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])" />
<tal:block tal:condition="python: leaflet_css is not None">
<style type="text/css" tal:content="python: leaflet_css"></style>
</tal:block>
</head>
<body class="ci-leaflet">
<tal:block metal:use-macro="context/WebPage_createLeafletContent/macros/leaflet_content" />
</body>
</html>
</tal:block>
<tal:block tal:condition="python: False">
<tal:block metal:define-macro="leaflet_content">
<div class="ci-two-page-main">
<h1 tal:content="python: leaflet_title"></h1>
<div tal:attributes="class python: 'ci-leaflet-body ' + ('' if leaflet_display_side == 1 else 'ci-leaflet-body-fullwidth')">
<tal:block tal:content="structure leaflet_content"></tal:block>
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>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>WebPage_createLeafletFooter</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:comment replace="nothing">
"""
================================================================================
Generate the leaflet footer
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_copyright python: options.get('leaflet_copyright');
leaflet_full_reference python: options.get('leaflet_full_reference');
leaflet_year python: options.get('leaflet_year');
leaflet_contributor_list python: options.get('leaflet_contributor_list');">
<!DOCTYPE html>
<html tal:attributes="class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])">
<head>
<meta charset="utf-8">
<title tal:content="leaflet_title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<tal:block tal:repeat="font_url leaflet_theme_css_font_list">
<link rel="stylesheet" tal:attributes="href font_url" />
</tal:block>
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])" />
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])" />
<script type="text/javascript">
function setPlaceholdersWithUrlParameters() {
var vars={};
var x=window.location.search.substring(1).split('&');
for (var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for (var i in x) {
var y = document.getElementsByClassName(x[i]);
for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body class="ci-leaflet" onload="setPlaceholdersWithUrlParameters()">
<tal:block metal:use-macro="context/WebPage_createLeafletFooter/macros/leaflet_footer" />
</body>
</html>
</tal:block>
<tal:block tal:condition="python: False">
<tal:block metal:define-macro="leaflet_footer">
<div class="ci-leaflet-footer">
<div class="ci-leaflet-container-left">
<tal:block tal:condition="python: leaflet_logo_url != ''">
<img alt="Logo" tal:attributes="src python: leaflet_logo_url" />
</tal:block>
</div>
<div class="ci-leaflet-container-center" tal:content="python: leaflet_full_reference"></div>
<div class="ci-leaflet-container-right">
<span>&copy;</span><span tal:content="python: leaflet_year + ' ' + leaflet_copyright"></span>
<br/>
<span tal:content="python: leaflet_contributor_list"></span>&nbsp;<span class="page"></span> | <span class="topage"></span>
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>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>WebPage_createLeafletHeader</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:comment replace="nothing">
"""
================================================================================
Generates the leaflet header
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_organisation_claim python: options.get('leaflet_organisation_claim');">
<!DOCTYPE html>
<html tal:attributes="class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])">
<head>
<meta charset="utf-8">
<title tal:content="leaflet_title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<tal:block tal:repeat="font_url leaflet_theme_css_font_list">
<link rel="stylesheet" tal:attributes="href font_url" />
</tal:block>
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])" />
<link rel="stylesheet" tal:attributes="href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])" />
</head>
<body class="ci-leaflet">
<tal:block metal:use-macro="context/WebPage_createLeafletHeader/macros/leaflet_header" />
</body>
</html>
</tal:block>
<tal:block tal:condition="python: False">
<tal:block metal:define-macro="leaflet_header">
<div class="ci-leaflet-header">
<p class="ci-leaflet-source-header" tal:content="python: ''.join([leaflet_organisation, ':', leaflet_organisation_claim])"></p>
<p class="ci-leaflet-sheet-header" i18n:translate="" i18n:domain="erp5_ui">Data Sheet</p>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>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>WebPage_createLegalese</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:comment replace="nothing">
"""
================================================================================
Generate leaflet legalese
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_organisation python: options.get('leaflet_organisation');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_address python: options.get('leaflet_address');
leaflet_postal_code python: options.get('leaflet_postal_code');
leaflet_city python: options.get('leaflet_city');
leaflet_country python: options.get('leaflet_country');
leaflet_email python: options.get('leaflet_email');
leaflet_phone python: options.get('leaflet_phone');
leaflet_date python: options.get('leaflet_date');
leaflet_year python: options.get('leaflet_year');
leaflet_recycle_url python: options.get('leaflet_recycle_url');">
<div id="legalese">
<p class="top"><span>&copy;</span><span tal:content="python: ''.join([leaflet_organisation, ' ', leaflet_year])"></span></p>
<p>
<span tal:content="python: leaflet_organisation"></span><br />
<span tal:content="python: leaflet_address"></span><br />
<span tal:content="python: ''.join([leaflet_postal_code, ' ', leaflet_city])"></span><br />
<span tal:content="python: leaflet_country"></span><br />
<span tal:content="python: leaflet_email"></span><br />
<span tal:content="python: leaflet_phone"></span>
</p>
<p>
<span i18n:translate="" i18n:domain="erp5_ui">Printed in</span>
<span tal:content="python: leaflet_country"></span><br />
<span tal:content="python: leaflet_date"></span><br />
<span i18n:translate="" i18n:domain="erp5_ui">All rights reserved</span>
</p>
<p i18n:translate="" i18n:domain="erp5_ui">
All other company, product, or service names may be trademarks or service
marks of others and are the property of their respective owners. References
in this publication to the companies products or services do not imply that
the company intends to make these available in all countries in which it
operates.
</p>
<p i18n:translate="" i18n:domain="erp5_ui">
The customer is responsible for ensuring compliance with legal requirements.
It is the responsibility of the customer to seek the advice of competent legal
counsel as to the identification and interpretation of relevant laws and
regulatory requirements that may affect the customer's business and any
actions the customer may have to take to comply with these laws.
</p>
<p class="bottom">
<img tal:attributes="src python: leaflet_recycle_url" alt="foo" />
<span i18n:translate="" i18n:domain="erp5_ui">Please recycle</span>
</p>
</div>
</tal:block>
\ No newline at end of file
"""
================================================================================
Export WebPage as Leaflet
================================================================================
"""
return context.WebPage_viewAsLeaflet(
format=format,
display_side=display_side,
display_svg=display_svg,
override_leaflet_header_title=override_leaflet_header_title,
override_source_organisation_title=override_source_organisation_title,
override_source_person_title=override_source_person_title,
document_save=document_save,
document_download=document_download,
batch_mode=batch_mode,
**kw
)
<?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>format="html", display_side=1, document_download=None, batch_mode=False, document_save=None, display_svg=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None,**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_exportAsLeaflet</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
"""
================================================================================
Print WebPage as Leaflet
================================================================================
"""
return context.WebPage_viewAsLeaflet(
format=format,
display_side=display_side,
display_svg=display_svg,
override_source_organisation_title=override_source_organisation_title,
override_source_person_title=override_source_person_title,
override_leaflet_header_title=override_leaflet_header_title,
document_save=document_save,
document_download=document_download,
batch_mode=False,
**kw
)
<?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>format="pdf",display_side=1, document_download=None, batch_mode=False, document_save=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None, display_svg=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_printAsLeaflet</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
"""
================================================================================
Update a leaflet dialog with parameters manually entered
================================================================================
"""
from Products.ERP5Type.Message import translateString
if dialog_id is not None:
return context.Base_redirect(
dialog_id,
keep_items = dict(
portal_status_message=translateString('Preview updated.'),
cancel_url=cancel_url,
portal_skin=portal_skin,
override_source_organisation_title=override_source_organisation_title,
override_source_person_title=override_source_person_title,
override_leaflet_header_title=override_leaflet_header_title,
format=format,
display_svg=display_svg,
display_side=display_side,
document_save=document_save,
document_download=document_download,
**kw
)
)
<?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>dialog_id=None, document_download=None, cancel_url=None, document_save=None, portal_skin=None, format=None, display_side=None, display_svg=None, override_source_organisation_title=None,override_source_person_title=None, override_leaflet_header_title=None, *args,**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_updateLeafletDialog</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>_params</string> </key>
<value> <string>*args,**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_viewAsLeaflet</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
"""
================================================================================
View as Leaflet (using portal_skin=Leaflet)
================================================================================
"""
return context.WebPage_viewAsLeaflet(
format=format,
display_side=display_side,
display_svg=display_svg,
override_source_organisation_title=override_source_organisation_title,
override_source_person_title=override_source_person_title,
override_leaflet_header_title=override_leaflet_header_title,
document_save=document_save,
document_download=document_download,
batch_mode=batch_mode,
**kw
)
<?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>format="html",display_side=None, batch_mode=False, document_download=None, document_save=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None,display_svg=None,**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_viewAsWeb</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>leaflet_css</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
/* === font size === */
.ci-leaflet h1,
.ci-leaflet #left-summary .title,
.ci-leaflet p.ci-leaflet-source-header,
.ci-leaflet p.ci-leaflet-sheet-header {
font-size: /*42px;*/ 28px;
}
.ci-leaflet h2,
.ci-leaflet #main-content .summary,
.ci-leaflet #legalese .bottom {
font-size: /*30px;*/ 18px;
}
.ci-leaflet p,
.ci-leaflet li,
.ci-leaflet div p:last-child {
font-size: /*26px;*/ 16px;
}
.ci-leaflet #left-summary li {
font-size: /*24px;*/ 16px;
}
.ci-leaflet-footer div {
font-size: /*18px;*/ 14px;
}
.ci-leaflet #legalese p,
.ci-leaflet #legalese span,
.ci-leaflet #left-summary .excerpt,
.ci-leaflet #main-content .left-icon .excerpt {
font-size: /*20px;*/ 14px;
}
/* === font style === */
.ci-leaflet #main-content .summary {
font-style: italic;
}
/* === pre set === */
html,
body {
margin: 0;
padding: 0;
}
html{
width: 100%;
height: 100%;
}
/* === header === */
.ci-leaflet .ci-leaflet-header {
position: static;
width: 100%;
min-height: 52mm;
text-align: right;
}
.ci-leaflet .ci-leaflet-header {
vertical-align: middle;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 5mm 10mm 5mm 5mm;
}
.ci-leaflet .ci-leaflet-header p {
margin: 0;
padding: 0;
text-align: right;
}
/* ===== footer ===== */
.ci-leaflet .ci-leaflet-footer {
position: static;
}
.ci-leaflet .ci-leaflet-footer div {
display: inline-block;
vertical-align: middle;
width: 33%;
text-align: center;
}
@media(max-width: 720px) {
.ci-leaflet .ci-leaflet-footer div {
width: 31%;
}
}
.ci-leaflet .ci-leaflet-container-left img {
max-width: 8em;
min-width: initial;
height: 4em;
}
.ci-leaflet .ci-leaflet-container-left {
text-align: left;
}
.ci-leaflet .ci-leaflet-container-right {
text-align: right;
}
/* ===== body ===== */
.ci-leaflet #main-content img {
display: block;
}
@media(max-width: 720px) {
.ci-leaflet .ci-leaflet-main {
padding: 0 1em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
}
.ci-leaflet h1 {
text-align: left;
padding-left: 33% /* width left-summary + padding main-content */;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@media(max-width: 720px) {
.ci-leaflet h1 {
width: 100%;
text-align: center;
padding: 0;
margin-top: 1em;
margin-bottom: 1em;
display: block;
}
}
/* ----- legalese ----- */
.ci-leaflet #legalese {
width: 32%;
vertical-align: bottom;
display: inline-block;
padding: 0 2em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
text-align: justify;
text-align-last: left;
}
.ci-leaflet #legalese .bottom img {
max-height: 1em;
vertical-align: middle;
}
@media(max-width: 720px) {
.ci-leaflet #legalese {
width: 100%;
display: block;
float: right;
}
}
/* ----- summary ----- */
.ci-leaflet #left-summary {
width: 32%;
vertical-align: top;
display: inline-block;
padding-left: 3em;
padding-right: 3em;
margin-top: -4em;
margin-bottom: 3em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
left: 0;
}
@media(max-width: 720px) {
.ci-leaflet #left-summary {
display: block;
width: 100%;
margin-top: 0;
position: static;
left: auto;
}
}
.ci-leaflet #left-summary ul {
padding-bottom: 1.5em;
border-bottom: 2px solid #a1a1a1;
list-style-position: outside;
padding-left: 0;
list-style-type: square; /* inconsistent text-document uses custom circles! */
}
.ci-leaflet #left-summary ul li {
margin: .5em 0;
}
.ci-leaflet #left-summary .title {
padding-top: 1em;
border-top: 2px solid #a1a1a1;
}
/* ----- content ----- */
.ci-leaflet #main-content {
display: inline-block;
vertical-align: bottom;
}
@media(max-width: 720px) {
.ci-leaflet #main-content {
display: block;
width: 100%;
}
}
/* === fullwidth === */
.ci-leaflet .ci-leaflet-body-fullwidth #left-summary,
.ci-leaflet .ci-leaflet-body-fullwidth #legalese {
display: none;
}
.ci-leaflet .ci-leaflet-body-fullwidth #main-content {
width: auto;
padding: 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* ===== logo ===== */
.ci-leaflet #left-summary:before {
content: "";
display: block;
background-size: 60%;
background-position: center;
width: 100%;
height: 18em;
}
.ci-leaflet #main-content {
width: 63%;
display: inline-block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding-right: 0;
padding-left: 1%; /* to align with <h1>*/
text-align: justify;
text-align-last: left;
vertical-align: top;
}
.ci-leaflet #main-content .excerpt {
text-align: center;
text-align-last: center;
}
@media(max-width: 720px) {
.ci-leaflet #main-content {
display: block;
width: 100%;
}
}
/* WARNING: copy these before modifying because changes seem to
resize all fonts in the whole document */
/*
.ci-leaflet #main-content > .left-icon {
position: absolute;
margin-top: 20mm;
margin-bottom: 10mm;
width: 30%;
left: 10mm;
text-align: center;
padding-right: 1%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
/* just place your images correctly... *//*
.ci-leaflet #main-content > .left-icon ~ .left-icon {
margin-top: 0;
margin-bottom: 0;
}
*/
.ci-leaflet #main-content .left-icon img {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0 1em;
}
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>leaflet.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
/* === pre set === */
html,
body {
margin: 0;
padding: 0;
}
html{
width: 100%;
height: 100%;
}
/* === font size === */
.ci-leaflet h1,
.ci-leaflet #left-summary .title,
.ci-leaflet p.ci-leaflet-source-header,
.ci-leaflet p.ci-leaflet-sheet-header {
font-size: /*42px;*/ 28px;
}
.ci-leaflet h2,
.ci-leaflet #main-content .summary,
.ci-leaflet #legalese .bottom {
font-size: /*30px;*/ 18px;
}
.ci-leaflet p,
.ci-leaflet li,
.ci-leaflet div p:last-child {
font-size: /*26px;*/ 16px;
}
.ci-leaflet #left-summary li {
font-size: /*24px;*/ 16px;
}
.ci-leaflet-footer div {
font-size: /*18px;*/ 14px;
}
.ci-leaflet #legalese p,
.ci-leaflet #legalese span,
.ci-leaflet #left-summary .excerpt,
.ci-leaflet #main-content .left-icon .excerpt {
font-size: /*20px;*/ 14px;
}
/* === font style === */
.ci-leaflet #main-content .summary {
font-style: italic;
}
/* === page breaks === */
.ci-leaflet img,
.ci-leaflet table {
page-break-inside: avoid;
}
.ci-leaflet .ci-leaflet-main p,
.ci-leaflet .ci-leaflet-main h2 {
page-break-inside: avoid;
}
/* === header === */
.ci-leaflet .ci-leaflet-header {
position: static;
width: 100%;
min-height: 52mm;
text-align: right;
}
.ci-leaflet .ci-leaflet-header {
vertical-align: middle;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 5mm 10mm 5mm 5mm;
}
.ci-leaflet .ci-leaflet-header p {
margin: 0;
padding: 0;
text-align: right;
}
/* ===== footer ===== */
.ci-leaflet .ci-leaflet-footer {
position: static;
}
.ci-leaflet .ci-leaflet-footer div {
display: inline-block;
vertical-align: middle;
width: 33%;
text-align: center;
}
.ci-leaflet .ci-leaflet-container-left img {
max-height: 16mm;
}
.ci-leaflet .ci-leaflet-container-left {
text-align: left;
}
.ci-leaflet .ci-leaflet-container-right {
text-align: right;
}
/* ===== content ===== */
.ci-leaflet .ci-leaflet-main {
padding-left: 20mm;
padding-right: 20mm;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet h1 {
text-align: left;
padding-left: 33% /* width left-summary + padding main-content */;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet #left-summary {
width: 28%;
position: absolute;
left: 5mm;
top: 0;
padding-left: 10mm;
padding-right: 10mm;
margin-top: 10mm;
margin-bottom: 10mm;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet #left-summary ul {
padding-bottom: 6mm;
border-bottom: 2px solid #a1a1a1;
list-style-position: outside;
padding-left: 0;
list-style-type: square; /* inconsistent text-document uses custom circles! */
}
.ci-leaflet #left-summary ul li {
margin: 1mm 0;
}
.ci-leaflet #left-summary .title {
padding-top: 2mm;
border-top: 2px solid #a1a1a1;
}
/* === fullwidth === */
.ci-leaflet .ci-leaflet-body-fullwidth #left-summary,
.ci-leaflet .ci-leaflet-body-fullwidth #legalese {
display: none;
}
.ci-leaflet .ci-leaflet-body-fullwidth #main-content {
width: auto;
padding: 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet .ci-leaflet-body-fullwidth #main-content .left-icon {
position: static;
margin: 0 auto;
padding: 0;
width: 70%;
text-align: center;
}
/* ===== logo ===== */
.ci-leaflet #left-summary:before {
content: "";
display: block;
background-size: 60%;
background-position: center;
width: 100%;
height: 50mm;
}
.ci-leaflet #main-content {
width: 63%;
display: inline-block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding-right: 0;
padding-left: 1%; /* to align with <h1>*/
text-align: justify;
text-align-last: left;
vertical-align: bottom;
min-height: 552mm;
}
/* WARNING: copy these before modifying because changes seem to
resize all fonts in the whole document */
.ci-leaflet #main-content > .left-icon {
position: absolute;
margin-top: 20mm;
margin-bottom: 10mm;
width: 28%;
left: 5mm;
text-align: center;
padding-right: 1%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet #main-content .left-icon {
padding-top: 15%;
}
.ci-leaflet #main-content .left-icon ~ .left-icon {
padding-top: 4%;
}
.ci-leaflet #main-content .left-icon img {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0 2mm;
}
.ci-leaflet #main-content .left-icon .excerpt {
line-height: 14px;
}
.ci-leaflet #main-content p img {
max-width: 100%;
display: block;
}
/* === legalse === */
.ci-leaflet #legalese {
width: 28%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
vertical-align: bottom;
margin:0;
padding: 1em;
text-align: left;
text-align: justify;
text-align-last: left;
}
.ci-leaflet #legalese .top {
border-top: 2px solid #a1a1a1;
padding-top: 4mm;
}
.ci-leaflet #legalese .bottom {
margin: 0;
padding: 3mm 0;
padding-left: 12mm;
display:block;
border-bottom: 2px solid #a1a1a1;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ci-leaflet #legalese .bottom img {
max-height: 1em;
vertical-align: middle;
}
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>leaflet.pdf.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></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="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>leaflet_img</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="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>recycle.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>123</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>128</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
erp5_corporate_identity_leaflet | Leaflet
erp5_corporate_identity_letter | Letter
erp5_corporate_identity_slide | Slide
\ No newline at end of file
erp5_corporate_identity
erp5_corporate_identity_leaflet
erp5_corporate_identity_letter
erp5_corporate_identity_slide
\ 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