Commit 87356c82 authored by Jean-Paul Smets's avatar Jean-Paul Smets

2007-01-18 JPS - no longer useful

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a35df384
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Folder</string>
<string>Folder</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_web_mockup</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>experiments for future generic concepts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block metal:define-macro="master">\n
<tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n
<tal:block metal:fill-slot="main_content">\n
<tal:block metal:define-slot="main">\n
\n
\n
\n
<h1>My Stuff</h1>\n
\n
<p>This page provides access to all documents which you have added to the system.</p>\n
\n
<table class="listbox">\n
<caption>My Documents</caption>\n
<thead>\n
<tr>\n
<th>Title</th>\n
<th>Creation Date</th>\n
<th>Last Modification</th>\n
<th>Theme</th>\n
<th>Programme</th>\n
<th>Service</th>\n
<th>Revision</th>\n
<th>State</th>\n
</tr>\n
</thead>\n
\n
<tfoot>\n
<tr>\n
<td colspan="8">\n
<a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n
<a class="pageNavigation" href="#" title="Previous Page: page 67">&lt;&lt;</a>\n
<form action="" method="GET">\n
<select>\n
<option value="#">Page 1</option>\n
<option value="#">Page 2</option>\n
<option value="#">Page 3</option>\n
<option value="#">&hellip;</option>\n
<option value="#">Page 67</option>\n
<option value="#" selected>Page 68</option>\n
<option value="#">Page 69</option>\n
<option value="#">&hellip;</option>\n
<option value="#">Page 411</option>\n
</select>\n
</form>\n
<a class="pageNavigation" href="#" title="Next Page: page 69">&gt;&gt;</a>\n
<a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n
</td>\n
</tr>\n
</tfoot>\n
\n
<tbody>\n
<tr>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
<td class=""><input size="5" type="text"/></td>\n
</tr>\n
<tr>\n
<td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n
<td class="date">1/4/2006</td>\n
<td class="date">23/4/2006</td>\n
<td class="emptyCell">-</td>\n
<td class="emptyCell">-</td>\n
<td class="externalLink"><a href="">Direction des changements</a></td>\n
<td class="number">4</td>\n
<td class="published">Published</td>\n
</tr>\n
<tr tal:repeat="dummy python: range(9)">\n
<td class="mainDoc"><a href="">Compte Rendu</a></td>\n
<td class="date">14/1/2006</td>\n
<td class="date">8/3/2006</td>\n
<td class="externalLink"><a href="">Health</a></td>\n
<td class="emptyCell">-</td>\n
<td class="emptyCell">-</td>\n
<td class="number">4</td>\n
<td class="draft">Draft</td>\n
</tr>\n
</tbody>\n
\n
</table>\n
\n
\n
\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
\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>my_custom_stuff</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>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block metal:define-macro="master">\n
<tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n
<tal:block metal:fill-slot="main_content">\n
<tal:block metal:define-slot="main">\n
\n
\n
\n
\n
<div class="centeredInner searchBar">\n
<form method="POST">\n
<input class="text" type="text" value="tellus" size="40"/>\n
<input class="button" value="Chercher" type="submit"/>\n
<a href="advanced_search" class="tinyFont">Advanced search</a>\n
</form>\n
</div>\n
\n
\n
<div class="searchResultHeader">\n
<div>\n
<span class="left"><b>Search Results</b></span>\n
<span class="right">Resultats <b>1 - 10</b> sur un total de <b>40</b> pour <b>tellus</b>.</span>\n
</div>\n
<div class="clear"></div>\n
</div>\n
\n
\n
<ul class="searchResult">\n
\n
<li>\n
<div class="typeIcon">\n
<a href="#" title="Download original file"><img src="pictures/type-pdf.png"/></a>\n
</div>\n
<div class="detail">\n
<h4><a href="https://nexedi.com/dummy-section/lorem-ipsum-report" title="State: published - Version: 0.2 - Language: FR - Last Modification: 2006/02/26 - Ownership: Mr. McTree, John Smith">Lorem Ipsum Report</a></h4>\n
</div>\n
<div class="clear"></div>\n
</li>\n
\n
<li tal:repeat="dummy python: range(9)">\n
<div class="typeIcon">\n
<a href="#" title="Download original file"><img src="pictures/type-image.png"/></a>\n
</div>\n
<div class="detail">\n
<h4><a href="https://nexedi.com/dummy-section/lorem-ipsum-report" title="State: published - Version: 0.2 - Language: FR - Last Modification: 2006/02/26 - Ownership: Mr. McTree, John Smith">Lorem Ipsum Report</a></h4>\n
<p>\n
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris consectetuer, magna eu egestas elementum, eros <em>tellus</em> scelerisque dolor, molestie sollicitudin nibh mi porttitor elit. Proin velit metus, volutpat vel, laoreet at, rhoncus nec, tellus...<br/>\n
<span class="searchDetails">\n
<a href="#" title="Documents of the same reference">RT-DFP-3242-300A</a>\n
- v0.1 - fr - 23 feb 2006 -\n
</span>\n
<span class="relatedLinks">\n
<a href="#" title="Documents of the same programme">Programme</a> -\n
<a title="Documents in the same service" href="#">Service</a> -\n
<a href="#" title="Documents in the same theme">Theme</a>\n
</span>\n
<!--div class="doNotDisplay" name="searchDetails">\n
State: <span style="color:#078307; font-weight: bold;">published</span><br/>\n
Version: 0.2<br/>\n
Language: FR<br/>\n
Last Modification: 2006/02/26<br/>\n
Ownership: <a href="#">Mr. McTree</a>, <a href="#">John Smith</a><br/>\n
</div-->\n
</p>\n
</div>\n
<div class="clear"></div>\n
</li>\n
\n
</ul>\n
\n
\n
<div class="centeredInner searchPages">\n
Result Page:\n
<a href="#">1</a>\n
<a href="#">2</a>\n
<span class="selected">3</span>\n
<a href="#">4</a>\n
<a href="#">5</a>\n
<a href="#">6</a>\n
<a href="#">7</a>\n
</div>\n
\n
\n
<div class="centeredInner extendedSearchBar">\n
<form method="POST">\n
<input class="text" type="text" value="tellus" size="40"/>\n
<input class="button" value="Chercher" type="submit"/>\n
</form>\n
<p>\n
<a href="advanced_search">Search within results</a> |\n
<a href="advanced_search">Search Tips</a> |\n
<a href="advanced_search">Advanced search</a>\n
</p>\n
</div>\n
\n
\n
\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>
]]></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>my_fake_search</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>
<tuple>
<tuple>
<string>OFS.Folder</string>
<string>Folder</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_web_old</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>old scripts that should be fixed (to match API changes), transformed as widgets or deleted</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>base_value = context.Base_edit(form_id, **kw)\n
context.REQUEST[\'RESPONSE\'].redirect(context.WebSite_getDocumentPhysicalPath())\n
return base_value\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>form_id</string>
<string>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</string>
<string>base_value</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_editAndView</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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 encoding="cdata"><![CDATA[
if full_text in [None, \'\']:\n
return "News vide !"\n
\n
# XXX ! Big Security issue here !!!\n
# Must be replaced by http://www.zope.org/Members/itamar/striphtml ? \n
\n
# Other Alternative:\n
# from stripogram import html2text\n
# return html2text(full_text)\n
\n
def StripTags(text):\n
finished = 0\n
while not finished:\n
finished = 1\n
# check if there is an open tag left\n
start = text.find("<")\n
if start >= 0:\n
# if there is, check if the tag gets closed\n
stop = text[start:].find(">")\n
if stop >= 0:\n
# if it does, strip it, and continue loop\n
text = text[:start] + text[start+stop+1:]\n
finished = 0\n
return text\n
\n
# End of bad HTML tag stripping\n
\n
word_list = StripTags(full_text).split(\' \')\n
\n
# Get the first 30 words of the news\n
word_count = 30\n
summary = \'\'\n
for word in word_list:\n
if len(word) > 0:\n
summary += word + \' \'\n
word_count -= 1\n
if word_count == 0:\n
break\n
\n
return summary\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>full_text=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>full_text</string>
<string>None</string>
<string>StripTags</string>
<string>_getattr_</string>
<string>word_list</string>
<string>word_count</string>
<string>summary</string>
<string>_getiter_</string>
<string>word</string>
<string>len</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_getContentSummary</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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># TODO: i18n-ization of the date format\n
try:\n
return context.getModificationDate().Date()\n
except AttributeError:\n
return None\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>AttributeError</string>
<string>None</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebPage_getModificationDate</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>url = None\n
if brain is not None:\n
o = brain.getObject()\n
# context.log(\'WebSite_getListboxUrl\',\'context : %s\' % context.vincent_context())\n
# context.log(\'WebSite_getListboxUrl\',\'brain : %s\' % brain.vincent_context())\n
# context.log(\'WebSite_getListboxUrl\',\'URL1 : %s\' % context.REQUEST[\'URL1\'])\n
url = \'%s/%s\' % (context.REQUEST[\'URL1\'], o.getRelativeUrl())\n
if getattr(context.REQUEST, \'editable_mode\', None):\n
url = \'%s/view?editable_mode=%s\' % (url, context.REQUEST[\'editable_mode\'])\n
return url\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain=None, selection=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>brain</string>
<string>selection</string>
<string>None</string>
<string>url</string>
<string>_getattr_</string>
<string>o</string>
<string>_getitem_</string>
<string>context</string>
<string>getattr</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_getListboxUrl</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block metal:define-macro="global_definition">\n
<tal:block\n
tal:define="global portal_url python: here.portal_url();\n
global object_actions python: None;\n
global workflow_actions python: None;\n
global jump_actions python: None;\n
global view_actions python: None;\n
dummy python: request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\');\n
document context/WebSite_getDocumentValue;\n
default_doc context/WebSite_getDefaultDocumentValue;\n
global is_edit_mode python: not (not(hasattr(context.REQUEST, \'editable_mode\')) or not(context.REQUEST[\'editable_mode\']));\n
global is_section python: context.getPortalType() == \'Web Section\';\n
global is_webdoc python: context.getPortalType() == \'Web Page\';\n
global is_portal_root python: not is_section and not is_webdoc;\n
global valid_default_doc python: default_doc != None and default_doc.getPortalType() == \'Web Page\';\n
">\n
<tal:block tal:condition="python: document is not None">\n
<tal:block\n
tal:define=" filtered_actions python: document.portal_actions.listFilteredActionsFor(document);\n
object_actions filtered_actions/object_action | nothing;\n
workflow_actions filtered_actions/workflow | nothing;\n
jump_actions filtered_actions/object_jump | nothing;\n
view_actions filtered_actions/object_view | nothing;\n
global object_actions python: document.WebSite_replaceActionUrl(object_actions);\n
global workflow_actions python: document.WebSite_replaceActionUrl(workflow_actions);\n
global jump_actions python: document.WebSite_replaceActionUrl(jump_actions);\n
global view_actions python: document.WebSite_replaceActionUrl(view_actions);\n
"/>\n
</tal:block>\n
<tal:block tal:condition="python: document is None">\n
<tal:block\n
tal:define=" filtered_actions python: here.portal_actions.listFilteredActionsFor(here);\n
object_actions filtered_actions/object_action | nothing;\n
workflow_actions filtered_actions/workflow | nothing;\n
jump_actions filtered_actions/object_jump | nothing;\n
view_actions filtered_actions/object_view | nothing;\n
global object_actions python: here.WebSite_replaceActionUrl(object_actions);\n
global workflow_actions python: here.WebSite_replaceActionUrl(workflow_actions);\n
global jump_actions python: here.WebSite_replaceActionUrl(jump_actions);\n
global view_actions python: here.WebSite_replaceActionUrl(view_actions);\n
"/>\n
</tal:block>\n
</tal:block>\n
</tal:block>
]]></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_globalDefinition</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>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>if action is not None:\n
for pos in range(len(action)):\n
if action[pos].has_key(\'url\'):\n
#context.log(\'WebSite_replaceActionUrl\',\'before : %s\' % action[pos][\'url\'])\n
action[pos].update({\'url\' : action[pos][\'url\'].replace(context.absolute_url(),context.WebSite_getUrl())})\n
#context.log(\'WebSite_replaceActionUrl\',\'after : %s\' % action[pos][\'url\'])\n
\n
return action\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>action</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>action</string>
<string>None</string>
<string>_getiter_</string>
<string>range</string>
<string>len</string>
<string>pos</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>context</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_replaceActionUrl</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>result = [ (\'title\', \'Title\')\n
, (\'reference\', \'Reference\')\n
, (\'version\', \'Version\')\n
, (\'language\', \'Language\')\n
, (\'WebPage_getModificationDate\', \'Last Change\')\n
, (\'portal_type\', \'Type\')\n
]\n
\n
for varkey in context.getVarMatchKeys():\n
result.append((\'translated_%s_title\' % varkey, \'State\'))\n
\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>result</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>varkey</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WorkList_getColumnList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>result = [ (\'title\', \'Title\')\n
, (\'version\', \'Version\')\n
]\n
\n
for varkey in context.getVarMatchKeys():\n
result.append((\'translated_%s_title\' % varkey, \'State\'))\n
\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>result</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>varkey</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WorkList_getEditableColumnList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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