Commit 6ab0637b authored by Jean-Paul Smets's avatar Jean-Paul Smets

New widgets taken out from custom code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12989 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b07daf35
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.DTMLDocument</string>
<string>DTMLDocument</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>tabber.js</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*==================================================\n
$Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $\n
tabber.js by Patrick Fitzgerald pat@barelyfitz.com\n
\n
Documentation can be found at the following URL:\n
http://www.barelyfitz.com/projects/tabber/\n
\n
License (http://www.opensource.org/licenses/mit-license.php)\n
\n
Copyright (c) 2006 Patrick Fitzgerald\n
\n
Permission is hereby granted, free of charge, to any person\n
obtaining a copy of this software and associated documentation files\n
(the "Software"), to deal in the Software without restriction,\n
including without limitation the rights to use, copy, modify, merge,\n
publish, distribute, sublicense, and/or sell copies of the Software,\n
and to permit persons to whom the Software is furnished to do so,\n
subject to the following conditions:\n
\n
The above copyright notice and this permission notice shall be\n
included in all copies or substantial portions of the Software.\n
\n
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\n
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n
SOFTWARE.\n
==================================================*/\n
\n
function tabberObj(argsObj)\n
{\n
var arg; /* name of an argument to override */\n
\n
/* Element for the main tabber div. If you supply this in argsObj,\n
then the init() method will be called.\n
*/\n
this.div = null;\n
\n
/* Class of the main tabber div */\n
this.classMain = "tabber";\n
\n
/* Rename classMain to classMainLive after tabifying\n
(so a different style can be applied)\n
*/\n
this.classMainLive = "tabberlive";\n
\n
/* Class of each DIV that contains a tab */\n
this.classTab = "tabbertab";\n
\n
/* Class to indicate which tab should be active on startup */\n
this.classTabDefault = "tabbertabdefault";\n
\n
/* Class for the navigation UL */\n
this.classNav = "tabbernav";\n
\n
/* When a tab is to be hidden, instead of setting display=\'none\', we\n
set the class of the div to classTabHide. In your screen\n
stylesheet you should set classTabHide to display:none. In your\n
print stylesheet you should set display:block to ensure that all\n
the information is printed.\n
*/\n
this.classTabHide = "tabbertabhide";\n
\n
/* Class to set the navigation LI when the tab is active, so you can\n
use a different style on the active tab.\n
*/\n
this.classNavActive = "tabberactive";\n
\n
/* Elements that might contain the title for the tab, only used if a\n
title is not specified in the TITLE attribute of DIV classTab.\n
*/\n
this.titleElements = [\'h2\',\'h3\',\'h4\',\'h5\',\'h6\'];\n
\n
/* Should we strip out the HTML from the innerHTML of the title elements?\n
This should usually be true.\n
*/\n
this.titleElementsStripHTML = true;\n
\n
/* If the user specified the tab names using a TITLE attribute on\n
the DIV, then the browser will display a tooltip whenever the\n
mouse is over the DIV. To prevent this tooltip, we can remove the\n
TITLE attribute after getting the tab name.\n
*/\n
this.removeTitle = true;\n
\n
/* If you want to add an id to each link set this to true */\n
this.addLinkId = false;\n
\n
/* If addIds==true, then you can set a format for the ids.\n
<tabberid> will be replaced with the id of the main tabber div.\n
<tabnumberzero> will be replaced with the tab number\n
(tab numbers starting at zero)\n
<tabnumberone> will be replaced with the tab number\n
(tab numbers starting at one)\n
<tabtitle> will be replaced by the tab title\n
(with all non-alphanumeric characters removed)\n
*/\n
this.linkIdFormat = \'<tabberid>nav<tabnumberone>\';\n
\n
/* You can override the defaults listed above by passing in an object:\n
var mytab = new tabber({property:value,property:value});\n
*/\n
for (arg in argsObj) { this[arg] = argsObj[arg]; }\n
\n
/* Create regular expressions for the class names; Note: if you\n
change the class names after a new object is created you must\n
also change these regular expressions.\n
*/\n
this.REclassMain = new RegExp(\'\\\\b\' + this.classMain + \'\\\\b\', \'gi\');\n
this.REclassMainLive = new RegExp(\'\\\\b\' + this.classMainLive + \'\\\\b\', \'gi\');\n
this.REclassTab = new RegExp(\'\\\\b\' + this.classTab + \'\\\\b\', \'gi\');\n
this.REclassTabDefault = new RegExp(\'\\\\b\' + this.classTabDefault + \'\\\\b\', \'gi\');\n
this.REclassTabHide = new RegExp(\'\\\\b\' + this.classTabHide + \'\\\\b\', \'gi\');\n
\n
/* Array of objects holding info about each tab */\n
this.tabs = new Array();\n
\n
/* If the main tabber div was specified, call init() now */\n
if (this.div) {\n
\n
this.init(this.div);\n
\n
/* We don\'t need the main div anymore, and to prevent a memory leak\n
in IE, we must remove the circular reference between the div\n
and the tabber object. */\n
this.div = null;\n
}\n
}\n
\n
\n
/*--------------------------------------------------\n
Methods for tabberObj\n
--------------------------------------------------*/\n
\n
\n
tabberObj.prototype.init = function(e)\n
{\n
/* Set up the tabber interface.\n
\n
e = element (the main containing div)\n
\n
Example:\n
init(document.getElementById(\'mytabberdiv\'))\n
*/\n
\n
var\n
childNodes, /* child nodes of the tabber div */\n
i, i2, /* loop indices */\n
t, /* object to store info about a single tab */\n
defaultTab=0, /* which tab to select by default */\n
DOM_ul, /* tabbernav list */\n
DOM_li, /* tabbernav list item */\n
DOM_a, /* tabbernav link */\n
aId, /* A unique id for DOM_a */\n
headingElement; /* searching for text to use in the tab */\n
\n
/* Verify that the browser supports DOM scripting */\n
if (!document.getElementsByTagName) { return false; }\n
\n
/* If the main DIV has an ID then save it. */\n
if (e.id) {\n
this.id = e.id;\n
}\n
\n
/* Clear the tabs array (but it should normally be empty) */\n
this.tabs.length = 0;\n
\n
/* Loop through an array of all the child nodes within our tabber element. */\n
childNodes = e.childNodes;\n
for(i=0; i < childNodes.length; i++) {\n
\n
/* Find the nodes where class="tabbertab" */\n
if(childNodes[i].className &&\n
childNodes[i].className.match(this.REclassTab)) {\n
\n
/* Create a new object to save info about this tab */\n
t = new Object();\n
\n
/* Save a pointer to the div for this tab */\n
t.div = childNodes[i];\n
\n
/* Add the new object to the array of tabs */\n
this.tabs[this.tabs.length] = t;\n
\n
/* If the class name contains classTabDefault,\n
then select this tab by default.\n
*/\n
if (childNodes[i].className.match(this.REclassTabDefault)) {\n
defaultTab = this.tabs.length-1;\n
}\n
}\n
}\n
\n
/* Create a new UL list to hold the tab headings */\n
DOM_ul = document.createElement("ul");\n
DOM_ul.className = this.classNav;\n
\n
/* Loop through each tab we found */\n
for (i=0; i < this.tabs.length; i++) {\n
\n
t = this.tabs[i];\n
\n
/* Get the label to use for this tab:\n
From the title attribute on the DIV,\n
Or from one of the this.titleElements[] elements,\n
Or use an automatically generated number.\n
*/\n
t.headingText = t.div.title;\n
\n
/* Remove the title attribute to prevent a tooltip from appearing */\n
if (this.removeTitle) { t.div.title = \'\'; }\n
\n
if (!t.headingText) {\n
\n
/* Title was not defined in the title of the DIV,\n
So try to get the title from an element within the DIV.\n
Go through the list of elements in this.titleElements\n
(typically heading elements [\'h2\',\'h3\',\'h4\'])\n
*/\n
for (i2=0; i2<this.titleElements.length; i2++) {\n
headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0];\n
if (headingElement) {\n
t.headingText = headingElement.innerHTML;\n
if (this.titleElementsStripHTML) {\n
t.headingText.replace(/<br>/gi," ");\n
t.headingText = t.headingText.replace(/<[^>]+>/g,"");\n
}\n
break;\n
}\n
}\n
}\n
\n
if (!t.headingText) {\n
/* Title was not found (or is blank) so automatically generate a\n
number for the tab.\n
*/\n
t.headingText = i + 1;\n
}\n
\n
/* Create a list element for the tab */\n
DOM_li = document.createElement("li");\n
\n
/* Save a reference to this list item so we can later change it to\n
the "active" class */\n
t.li = DOM_li;\n
\n
/* Create a link to activate the tab */\n
DOM_a = document.createElement("a");\n
DOM_a.appendChild(document.createTextNode(t.headingText));\n
DOM_a.href = "javascript:void(null);";\n
DOM_a.title = t.headingText;\n
DOM_a.onclick = this.navClick;\n
\n
/* Add some properties to the link so we can identify which tab\n
was clicked. Later the navClick method will need this.\n
*/\n
DOM_a.tabber = this;\n
DOM_a.tabberIndex = i;\n
\n
/* Do we need to add an id to DOM_a? */\n
if (this.addLinkId && this.linkIdFormat) {\n
\n
/* Determine the id name */\n
aId = this.linkIdFormat;\n
aId = aId.replace(/<tabberid>/gi, this.id);\n
aId = aId.replace(/<tabnumberzero>/gi, i);\n
aId = aId.replace(/<tabnumberone>/gi, i+1);\n
aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\\-]/gi, \'\'));\n
\n
DOM_a.id = aId;\n
}\n
\n
/* Add the link to the list element */\n
DOM_li.appendChild(DOM_a);\n
\n
/* Add the list element to the list */\n
DOM_ul.appendChild(DOM_li);\n
}\n
\n
/* Add the UL list to the beginning of the tabber div */\n
e.insertBefore(DOM_ul, e.firstChild);\n
\n
/* Make the tabber div "live" so different CSS can be applied */\n
e.className = e.className.replace(this.REclassMain, this.classMainLive);\n
\n
/* Activate the default tab, and do not call the onclick handler */\n
this.tabShow(defaultTab);\n
\n
/* If the user specified an onLoad function, call it now. */\n
if (typeof this.onLoad == \'function\') {\n
this.onLoad({tabber:this});\n
}\n
\n
return this;\n
};\n
\n
\n
tabberObj.prototype.navClick = function(event)\n
{\n
/* This method should only be called by the onClick event of an <A>\n
element, in which case we will determine which tab was clicked by\n
examining a property that we previously attached to the <A>\n
element.\n
\n
Since this was triggered from an onClick event, the variable\n
"this" refers to the <A> element that triggered the onClick\n
event (and not to the tabberObj).\n
\n
When tabberObj was initialized, we added some extra properties\n
to the <A> element, for the purpose of retrieving them now. Get\n
the tabberObj object, plus the tab number that was clicked.\n
*/\n
\n
var\n
rVal, /* Return value from the user onclick function */\n
a, /* element that triggered the onclick event */\n
self, /* the tabber object */\n
tabberIndex, /* index of the tab that triggered the event */\n
onClickArgs; /* args to send the onclick function */\n
\n
a = this;\n
if (!a.tabber) { return false; }\n
\n
self = a.tabber;\n
tabberIndex = a.tabberIndex;\n
\n
/* Remove focus from the link because it looks ugly.\n
I don\'t know if this is a good idea...\n
*/\n
a.blur();\n
\n
/* If the user specified an onClick function, call it now.\n
If the function returns false then do not continue.\n
*/\n
if (typeof self.onClick == \'function\') {\n
\n
onClickArgs = {\'tabber\':self, \'index\':tabberIndex, \'event\':event};\n
\n
/* IE uses a different way to access the event object */\n
if (!event) { onClickArgs.event = window.event; }\n
\n
rVal = self.onClick(onClickArgs);\n
if (rVal === false) { return false; }\n
}\n
\n
self.tabShow(tabberIndex);\n
\n
return false;\n
};\n
\n
\n
tabberObj.prototype.tabHideAll = function()\n
{\n
var i; /* counter */\n
\n
/* Hide all tabs and make all navigation links inactive */\n
for (i = 0; i < this.tabs.length; i++) {\n
this.tabHide(i);\n
}\n
};\n
\n
\n
tabberObj.prototype.tabHide = function(tabberIndex)\n
{\n
var div;\n
\n
if (!this.tabs[tabberIndex]) { return false; }\n
\n
/* Hide a single tab and make its navigation link inactive */\n
div = this.tabs[tabberIndex].div;\n
\n
/* Hide the tab contents by adding classTabHide to the div */\n
if (!div.className.match(this.REclassTabHide)) {\n
div.className += \' \' + this.classTabHide;\n
}\n
this.navClearActive(tabberIndex);\n
\n
return this;\n
};\n
\n
\n
tabberObj.prototype.tabShow = function(tabberIndex)\n
{\n
/* Show the tabberIndex tab and hide all the other tabs */\n
\n
var div;\n
\n
if (!this.tabs[tabberIndex]) { return false; }\n
\n
/* Hide all the tabs first */\n
this.tabHideAll();\n
\n
/* Get the div that holds this tab */\n
div = this.tabs[tabberIndex].div;\n
\n
/* Remove classTabHide from the div */\n
div.className = div.className.replace(this.REclassTabHide, \'\');\n
\n
/* Mark this tab navigation link as "active" */\n
this.navSetActive(tabberIndex);\n
\n
/* If the user specified an onTabDisplay function, call it now. */\n
if (typeof this.onTabDisplay == \'function\') {\n
this.onTabDisplay({\'tabber\':this, \'index\':tabberIndex});\n
}\n
\n
return this;\n
};\n
\n
tabberObj.prototype.navSetActive = function(tabberIndex)\n
{\n
/* Note: this method does *not* enforce the rule\n
that only one nav item can be active at a time.\n
*/\n
\n
/* Set classNavActive for the navigation list item */\n
this.tabs[tabberIndex].li.className = this.classNavActive;\n
\n
return this;\n
};\n
\n
\n
tabberObj.prototype.navClearActive = function(tabberIndex)\n
{\n
/* Note: this method does *not* enforce the rule\n
that one nav should always be active.\n
*/\n
\n
/* Remove classNavActive from the navigation list item */\n
this.tabs[tabberIndex].li.className = \'\';\n
\n
return this;\n
};\n
\n
\n
/*==================================================*/\n
\n
\n
function tabberAutomatic(tabberArgs)\n
{\n
/* This function finds all DIV elements in the document where\n
class=tabber.classMain, then converts them to use the tabber\n
interface.\n
\n
tabberArgs = an object to send to "new tabber()"\n
*/\n
var\n
tempObj, /* Temporary tabber object */\n
divs, /* Array of all divs on the page */\n
i; /* Loop index */\n
\n
if (!tabberArgs) { tabberArgs = {}; }\n
\n
/* Create a tabber object so we can get the value of classMain */\n
tempObj = new tabberObj(tabberArgs);\n
\n
/* Find all DIV elements in the document that have class=tabber */\n
\n
/* First get an array of all DIV elements and loop through them */\n
divs = document.getElementsByTagName("div");\n
for (i=0; i < divs.length; i++) {\n
/* Is this DIV the correct class? */\n
if (divs[i].className &&\n
divs[i].className.match(tempObj.REclassMain)) {\n
\n
/* Now tabify the DIV */\n
tabberArgs.div = divs[i];\n
divs[i].tabber = new tabberObj(tabberArgs);\n
}\n
}\n
\n
return this;\n
}\n
\n
\n
/*==================================================*/\n
\n
\n
function tabberAutomaticOnLoad(tabberArgs)\n
{\n
/* This function adds tabberAutomatic to the window.onload event,\n
so it will run after the document has finished loading.\n
*/\n
var oldOnLoad;\n
\n
if (!tabberArgs) { tabberArgs = {}; }\n
\n
/* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */\n
oldOnLoad = window.onload;\n
if (typeof window.onload != \'function\') {\n
window.onload = function() {\n
tabberAutomatic(tabberArgs);\n
};\n
} else {\n
window.onload = function() {\n
oldOnLoad();\n
tabberAutomatic(tabberArgs);\n
};\n
}\n
}\n
\n
\n
/*==================================================*/\n
\n
\n
/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */\n
\n
if (typeof tabberOptions == \'undefined\') {\n
\n
tabberAutomaticOnLoad();\n
\n
} else {\n
\n
if (!tabberOptions[\'manualStartup\']) {\n
tabberAutomaticOnLoad(tabberOptions);\n
}\n
\n
}\n
]]></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.DTMLDocument</string>
<string>DTMLDocument</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>tabber_style.css</string> </value>
</item>
<item>
<key> <string>_vars</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>globals</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>raw</string> </key>
<value> <string>/*========================================================================================\n
** tabber.js default style\n
**========================================================================================*/\n
\n
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */\n
\n
/*--------------------------------------------------\n
REQUIRED to hide the non-active tab content.\n
But do not hide them in the print stylesheet!\n
--------------------------------------------------*/\n
.tabberlive .tabbertabhide {\n
display: none;\n
}\n
\n
/*--------------------------------------------------\n
.tabber = before the tabber interface is set up\n
.tabberlive = after the tabber interface is set up\n
--------------------------------------------------*/\n
.tabber {\n
}\n
.tabberlive {\n
}\n
\n
/*--------------------------------------------------\n
ul.tabbernav = the tab navigation list\n
li.tabberactive = the active tab\n
--------------------------------------------------*/\n
ul.tabbernav {\n
margin: 0;\n
padding: 3px 0;\n
border-bottom: 1px solid #778;\n
}\n
\n
ul.tabbernav li {\n
list-style: none;\n
margin: 0;\n
display: inline;\n
}\n
\n
ul.tabbernav li a {\n
padding: 3px .5em;\n
margin-left: 3px;\n
border: 1px solid #778;\n
border-bottom: none;\n
background: #dde;\n
text-decoration: none;\n
font-weight: bold;\n
}\n
\n
ul.tabbernav li a:link {color: #448}\n
ul.tabbernav li a:visited {color: #667}\n
\n
ul.tabbernav li a:hover\n
{\n
color: #000;\n
background: #aae;\n
border-color: #227;\n
}\n
\n
ul.tabbernav li.tabberactive a\n
{\n
background-color: #fff;\n
border-bottom: 1px solid #fff;\n
}\n
\n
ul.tabbernav li.tabberactive a:hover\n
{\n
color: #000;\n
background: white;\n
border-bottom: 1px solid white;\n
}\n
\n
/*--------------------------------------------------\n
.tabbertab = the tab content\n
Add style only after the tabber interface is set up (.tabberlive)\n
--------------------------------------------------*/\n
.tabberlive .tabbertab {\n
padding:5px;\n
border: 1px solid #778;\n
border-top: 0;\n
}\n
\n
/* If desired, hide the heading since a heading is provided by the tab */\n
.tabberlive .tabbertab h2 {\n
display: none;\n
}\n
.tabberlive .tabbertab h3 {\n
display: none;\n
}\n
\n
\n
\n
</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div class="related_docs" tal:condition="here/getClassification">\n
<div class="title" i18n:translate="" i18n:domain="ui">Security classification</div>\n
<ul>\n
<li>\n
<span tal:replace="here/getClassificationTitle"/>\n
</li>\n
</ul>\n
</div>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewClassificationWidget</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div class="related_docs">\n
<div class="title">History:</div>\n
<table id="#workflow_history" tal:define="history here/Base_getWorkflowEventInfoList">\n
<tr tal:repeat="event history">\n
<td tal:content="python: here.Base_FormatDate(event[\'date\'])"/>\n
<td tal:content="event/action"/>\n
<td tal:content="event/actor"/>\n
</tr>\n
</table>\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>Document_viewHistoryWidget</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="base_cat_list here/portal_preferences/getPreferredDocumentBaseCategoryList">\n
<div class="related_docs" tal:repeat="base_cat base_cat_list">\n
<tal:block\n
tal:define="base_cat_value python:here.portal_categories.resolveCategory(base_cat);\n
base_cat_title base_cat_value/title;\n
cat python:here.getProperty(base_cat);\n
">\n
<tal:block tal:condition="cat">\n
<div class="title" tal:content="base_cat_title"/>\n
<ul>\n
<li tal:define="cat_value python:here.portal_categories.resolveCategory(\'group/a\')">\n
<span tal:replace="python:cat_value.getTitle()"/>\n
</li>\n
</ul>\n
</tal:block>\n
</tal:block>\n
</div>\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewMembershipWidget</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<span class="popup_label" i18n:translate="" i18n:domain="ui">Owner(s):</span>\n
<tal:block tal:replace="options/owner|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Last modified:</span>\n
<tal:block tal:replace="options/moddate|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Released:</span>\n
<tal:block tal:replace="options/reldate|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Published:</span>\n
<tal:block tal:replace="options/publdate|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Status:</span>\n
<tal:block tal:replace="options/status|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Group:</span>\n
<tal:block tal:replace="options/group|nothing"/>\n
<br/>\n
<span class="popup_label" i18n:translate="" i18n:domain="ui">Project:</span>\n
<tal:block tal:replace="options/project|nothing"/>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewPopupTemplate</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<table id="document_profile">\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Title:\n
</td>\n
<td class="right">\n
<span tal:replace="here/getTitle"/>\n
</td>\n
</tr>\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Reference:\n
</td>\n
<td class="right">\n
<span tal:replace="here/getReference"/>\n
</td>\n
</tr>\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Author(s):\n
</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td class="right" colspan="2">\n
<ul class="authors">\n
<li tal:repeat="owner here/Base_getOwnerInfoList">\n
<a tal:attributes="href owner/url" tal:content="owner/title"/>\n
(<a tal:attributes="href python: \'mailto:\'+str(owner.get(\'email\',\'\'))" tal:content="owner/email"/>)\n
</li>\n
</ul>\n
</td>\n
</tr>\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Status:\n
</td>\n
<td class="right">\n
<span tal:attributes="class here/getValidationState" tal:content="here/getTranslatedValidationState"/>\n
</td>\n
</tr>\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Version:\n
</td>\n
<td class="right">\n
<span tal:replace="here/getVersion"/>\n
</td>\n
</tr>\n
<tr>\n
<td class="left" i18n:translate="" i18n:domain="ui">\n
Language:\n
</td>\n
<td class="right">\n
<span tal:replace="here/getLanguage"/>\n
</td>\n
</tr>\n
<tal:block tal:define="other_lang_list python:[here.getLatestVersionValue(language=lng) for lng in here.getLanguageList() if lng!=here.getLanguage()]">\n
<tr tal:condition="other_lang_list">\n
<td i18n:translate="" i18n:domain="ui">\n
Also in:\n
</td>\n
<td>\n
<span tal:repeat="doc other_lang_list">\n
<a tal:attributes="href python:doc.absolute_url()+\'/view\'" tal:content="doc/getLanguage"/>\n
</span>\n
</td>\n
</tr>\n
</tal:block>\n
<tr>\n
<td i18n:translate="" i18n:domain="ui">\n
Word count:\n
</td>\n
<td>\n
<span tal:replace="python: int(round(len(here.getSearchableText().split()),-2))"/>\n
</td>\n
</tr>\n
<tr>\n
<td i18n:translate="" i18n:domain="ui">\n
Size:\n
</td>\n
<td>\n
<span tal:replace="python: \'%d kB\' % (here.getSize()/1000)"/>\n
</td>\n
</tr>\n
<tr>\n
<td i18n:translate="" i18n:domain="ui">\n
File format:\n
</td>\n
<td>\n
<span tal:replace="python: here.getSourceReference() is not None and here.getSourceReference().rfind(\'.\')>-1 and here.getSourceReference()[here.getSourceReference().rfind(\'.\')+1:] or \'\'"/>\n
</td>\n
</tr>\n
</table>\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>Document_viewProfileWidget</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>XXX - Use layout and fields instead </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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'related_successor\')">\n
<div class="related_docs" tal:condition="doc_list">\n
<div class="title" i18n:translate="" i18n:domain="ui">Related</div>\n
<ul>\n
<li tal:repeat="doc doc_list">\n
<a tal:content="doc/title" tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\n
</tal:block>\n
<tal:block tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'related_similar\')">\n
<div class="related_docs" tal:condition="doc_list">\n
<div class="title" i18n:translate="" i18n:domain="ui">Similar</div>\n
<ul>\n
<li tal:repeat="doc doc_list">\n
<a tal:content="doc/title" tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\n
</tal:block>\n
<tal:block tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'related_predecessor\')">\n
<div class="related_docs" tal:condition="doc_list">\n
<div class="title" i18n:translate="" i18n:domain="ui">Reference</div>\n
<ul>\n
<li tal:repeat="doc doc_list">\n
<a tal:content="doc/title" tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\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>Document_viewRelationListWidget</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'wiki_successor\')">\n
<div class="related_docs" tal:condition="doc_list">\n
<div class="title" i18n:translate="" i18n:domain="ui">Wiki successors</div>\n
<ul>\n
<li tal:repeat="doc doc_list">\n
<a tal:content="doc/title" tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\n
</tal:block>\n
<tal:block tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'wiki_predecessor\')">\n
<div class="related_docs" tal:condition="doc_list">\n
<div class="title" i18n:translate="" i18n:domain="ui">Wiki predecessors</div>\n
<ul tal:define="doc_list python:here.Document_getRelatedDocumentList(relation_id=\'wiki_predecessor\')">\n
<li tal:repeat="doc doc_list">\n
<a tal:content="doc/title" tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewWikiRelationListWidget</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>"""\n
A method invoked with parameters provided by the \n
contribute widget\n
"""\n
res = context.portal_contributions.newContent(**kw)\n
after_method_id = kw.get(\'after_method_id\')\n
if after_method_id:\n
after_method = getattr(res, after_method_id)\n
after_method() # if not found will raise exception, as it should\n
\n
# XXX Translation and Base_redirect\n
doc_url = res.absolute_url()+\'/view?portal_status_message=Document+created\'\n
\n
return context.REQUEST.RESPONSE.redirect(doc_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>_params</string> </key>
<value> <string>*a, **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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>a</string>
<string>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</string>
<string>res</string>
<string>after_method_id</string>
<string>getattr</string>
<string>after_method</string>
<string>doc_url</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_contributeContent</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[
"""\n
Script called by user registration form; checks if all required parameters\n
are supplied, handles errors, calls WebSite_createUser to actually\n
create Person.\n
Will send email with password info.\n
\n
XXX - redirect, translation of dialogs\n
"""\n
\n
req = context.REQUEST\n
\n
# check if everything was filled\n
fields = (\'email\', \'email_repeated\', \'group\', \'function\', \'site\', \'first_name\', \'last_name\')\n
missing_string = \'\'\n
kwargs = {}\n
for f in fields:\n
value = req.get(\'your_\' + f)\n
if not value:\n
missing_string += \'&missing:list=\' + f\n
else:\n
kwargs[f] = value\n
if missing_string:\n
params = missing_string + \'&portal_status_message=You did not fill all the required fields\'\n
return req.RESPONSE.redirect(context.absolute_url()+\'?\'+params)\n
if req.get(\'your_email\') != req.get(\'your_email_repeated\'):\n
missing_string += \'&missing:list=email&missing:list=email_repeated\'\n
params = missing_string + \'&portal_status_message=You entered two different email addresses\'\n
return req.RESPONSE.redirect(context.absolute_url()+\'?\'+params)\n
\n
# create a user\n
context.log(kwargs)\n
try:\n
user = context.WebSite_createUser(**kwargs)\n
context.log(user)\n
msg = \'Thank you for registering. Your password will be sent to the email adress that you provided.\'\n
except Exception, e:\n
msg = str(e)\n
\n
return req.RESPONSE.redirect(context.absolute_url()+\'?portal_status_message=\'+msg)\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>_params</string> </key>
<value> <string>*a, **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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>a</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>req</string>
<string>fields</string>
<string>missing_string</string>
<string>kwargs</string>
<string>_getiter_</string>
<string>f</string>
<string>value</string>
<string>_write_</string>
<string>params</string>
<string>_apply_</string>
<string>user</string>
<string>msg</string>
<string>Exception</string>
<string>e</string>
<string>str</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_registerUser</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!--\n
Description:\n
This macro render a contribution upload panel.\n
-->\n
\n
<tal:block metal:define-macro="main">\n
\n
<div class="tabber" id="mytabber2">\n
<div class="tabbertab">\n
<h2>Contribute</h2>\n
<div class="fieldset">\n
<div tal:define="search_type_list here/WebSite_getSearchableTypeList">\n
<label for="doctype" i18n:translate="" i18n:domain="ui">Type</label>\n
<select size="1" name="doctype" id="doctype" onchange="toggleMakeTemplateButton(this);">\n
<option value="" i18n:translate="" i18n:domain="ui">-- Select Document Type --</option>\n
<option value="Memo" value="" i18n:translate="" i18n:domain="ui">Memo</option>\n
<option value="Report" value="" i18n:translate="" i18n:domain="ui">Report</option>\n
</select>\n
<input type="file" name="datafile" size="30" />\n
</div>\n
<!--<a onclick="setMailString();" id="mail_contribute_button" href="mailto:dms@dms.nexedi.com?subject=Contribution&body=">\n
<img src="au_icons/kmail.png" align="right" alt="contribute by mail" title="contribute by mail"/>\n
</a>-->\n
<div style="float:left">\n
<div metal:use-macro="here/au_macros/macros/contribute_properties">\n
Theme\n
</div>\n
</div>\n
\n
<div style="float:right; margin-top:10px;">\n
<a onclick="setMailString();" id="mail_contribute_button"\n
href="mailto:dms@dms.nexedi.com?subject=Contribution&body=">\n
<img src="send_by_mail" border="0"/>\n
<tal:block i18n:translate="" i18n:domain="ui">Click here to contribute by Email</tal:block></a>\n
&nbsp;\n
<input type="submit" name="Memo_makeOOoTemplate:method" value="Make Template" id="maketemplatebutton" disabled="disabled"\n
style="width:100px;background-image:none;"/>\n
&nbsp;\n
<input type="submit" name="WebSite_contributeFile:method" value="Contribute"/>\n
</div>\n
\n
\n
</div>\n
\n
<div class="clear"></div>\n
</div>\n
\n
<div class="tabbertab">\n
<h2>Link</h2>\n
<div class="fieldset">\n
<div>\n
<label for="url" value="" i18n:translate="" i18n:domain="ui">Url</label>\n
<input type="text" name="url" id="url" size="80" value="http://" />\n
<a href="" target="_blank" onclick="return setLink(this)" value="" i18n:translate="" i18n:domain="ui">preview</a>\n
</div>\n
<div metal:use-macro="here/au_macros/macros/contribute_properties">\n
Theme\n
</div>\n
</div>\n
<input style="float:right" type="submit" name="WebSite_contributeLink:method" value="Contribute"/>\n
<div class="clear"></div>\n
</div>\n
\n
<div class="tabbertab"\n
tal:define="user here/ERP5Site_getCurrentUserValue"\n
>\n
<h2 value="" i18n:translate="" i18n:domain="ui">File</h2>\n
\n
<div class="filebox" id="administration">\n
<ul>\n
<li class="listheader" value="" i18n:translate="" i18n:domain="ui">Administration:</li>\n
<ul>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Medical Claim\', user)">\n
<span tal:define="impl python:False; title string:Medical Claim;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Leave Request\', user)">\n
<span tal:define="impl python:False; title string:Leave Request;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Travel Request\', user)">\n
<span tal:define="impl python:False; title string:Travel Request;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Passport Request\', user)">\n
<span tal:define="impl python:False; title string:Passport Request;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'External Library File\', user)">\n
<a href="Base_createContent?portal_type=External Library File" value="" i18n:translate="" i18n:domain="ui">Library File</a>\n
</li>\n
</ul>\n
</ul>\n
</div>\n
\n
<div class="filebox" id="conference">\n
<ul>\n
<li class="listheader" value="" i18n:translate="" i18n:domain="ui">Conference:</li>\n
<ul>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Conference\', user)">\n
<span tal:define="impl python:True; title string:Conference;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Event\', user)">\n
<span tal:define="impl python:False; title string:Event;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Participant\', user)">\n
<span tal:define="impl python:False; title string:Participant;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
</ul>\n
</ul>\n
</div>\n
\n
<div class="filebox" id="web">\n
<ul>\n
<li class="listheader" value="" i18n:translate="" i18n:domain="ui">Web:</li>\n
<ul>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'News\', user)">\n
<span tal:define="impl python:True; title string:News;">\n
<span metal:use-macro="here/au_macros/macros/file_feature">\n
</span>\n
</span>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Web Page\', user)">\n
<a href="WebPage_createNewForGroup" value="" i18n:translate="" i18n:domain="ui">Web Page</a>\n
</li>\n
</ul>\n
</ul>\n
</div>\n
\n
<div class="filebox" id="contacs">\n
<ul>\n
<li class="listheader" value="" i18n:translate="" i18n:domain="ui">Contacts:</li>\n
<ul>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Organisation\', user)">\n
<a href="Base_createContent?portal_type=Organisation" value="" i18n:translate="" i18n:domain="ui">Organisation</a>\n
</li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Person\', user)">\n
<a href="Base_createContent?portal_type=Person" value="" i18n:translate="" i18n:domain="ui">Person</a>\n
</li>\n
</ul>\n
</ul>\n
</div>\n
\n
<div class="clear"></div>\n
</div>\n
</div>\n
\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_viewContributeRenderer</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block metal:define-macro="act">\n
<tal:block tal:define="tasks here/WebSite_getPendingEventInfoList">\n
<div class="boxHeader" >\n
<a i18n:translate="" i18n:domain="ui"\n
tal:attributes="href string: searches/WebSite_viewPendingEventList">\n
Act <span class="details">(<span class="newItem" tal:content="python:len(tasks)"/>\n
<tal:block i18n:translate="" i18n:domain="ui">total</tal:block>)</span>\n
</a>\n
</div>\n
<div class="boxContent">\n
<ul>\n
<li tal:repeat="doc python: tasks[:TASK_LEN]">\n
<a tal:define="url python: \'%s/view\' % doc.absolute_url()"\n
tal:attributes="href url">\n
<span tal:replace="doc/portal_type"/>:\n
<span tal:replace="doc/getTitleOrId"/>\n
<span tal:condition="python: hasattr(doc, \'getVersion\') and doc.getVersion()" \n
tal:replace="python: \'ver. %s\' % doc.getVersion()"/>\n
(<span tal:content="python: doc.getValidationStateTitle()" \n
tal:attributes="class python:doc.getTranslatedValidationStateTitle()"/>)\n
</a>\n
</li>\n
</ul>\n
<a tal:condition="python: len(tasks) > TASK_LEN" \n
tal:attributes="href string: searches/WebSite_viewPendingEventList" value="" i18n:translate="" i18n:domain="ui">More tasks...</a>\n
</div>\n
</tal:block>\n
</tal:block>\n
\n
<tal:block metal:define-macro="learn">\n
<tal:block tal:define="news_list python: here.WebSite_getLatestContentValueList(limit=NEWS_LEN)">\n
<div class="boxHeader">\n
<a i18n:translate="" i18n:domain="ui"\n
tal:attributes="href string: searches/WebSite_viewLatestContentList">\n
Learn\n
</a>\n
</div>\n
<div class="boxContent">\n
<ul>\n
<li tal:repeat="newsitem python: news_list">\n
<a tal:define="url python: \'%s/view\' % newsitem.absolute_url()"\n
tal:attributes="href url">\n
<tal:block tal:replace="python: here.WebSite_getFancyRelativeDate(newsitem.getCreationDate())"/>&mdash;\n
<tal:block tal:replace="newsitem/getTitleOrId"/>\n
</a>\n
<tal:block tal:replace="python: \'(%s)\' % newsitem.getPortalType()"/>\n
</li>\n
</ul>\n
<tal:block tal:replace="nothing">this is a dummy</tal:block>\n
<a tal:condition="python: len(news_list) > NEWS_LEN-1"\n
tal:attributes="href string: searches/WebSite_viewLatestContentList" value="" i18n:translate="" i18n:domain="ui">More news...</a>\n
</div>\n
</tal:block>\n
</tal:block>\n
\n
<tal:block metal:define-macro="evaluate">\n
<tal:block>\n
<div class="boxHeader" value="" i18n:translate="" i18n:domain="ui">\n
Evaluate\n
</div>\n
<div class="boxContent">\n
Some nice evaluation parameters.\n
</div>\n
</tal:block>\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_viewDashboardRenderer</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
\n
<div id="home_search">\n
<tal:block metal:use-macro="here/WebSite_viewSearchRenderer/macros/main"/>\n
</div>\n
\n
<div id="home_contribute">\n
<tal:block metal:use-macro="here/WebSite_viewContributeRenderer/macros/main"/>\n
</div>\n
\n
<div id="dashboard">\n
<div class="box left" tal:define="global TASK_LEN python: 20">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/act"/>\n
</div>\n
\n
<div class="box left" tal:define="NEWS_LEN python: 20">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/learn"/>\n
</div>\n
\n
<div class="box left">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/evaluate"/>\n
</div>\n
</div>
]]></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_viewSCALEWidget</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!-- ============================================================== -->\n
<!--\n
Description:\n
This macro render a tabbed search panel.\n
-->\n
\n
<tal:block metal:define-macro="main">\n
<tal:block metal:use-macro="here/global_definitions_au/macros/main"/>\n
<div class="tabber" id="mytabber1" tal:define="search_type_list here/WebSite_getSearchableTypeList">\n
\n
<div class="tabbertab">\n
<h2 value="" i18n:translate="" i18n:domain="ui">Search</h2>\n
<div>\n
<div>\n
<input type="text" size="40" name="SearchableText" id="SearchableText" class="autofocus"/>\n
<tal:block i18n:translate="" i18n:domain="ui">in</tal:block>\n
<select size="1" class="input" name="search_portal_type">\n
<option value="all" selected value="" i18n:translate="" i18n:domain="ui">Any Documents</option>\n
<option tal:repeat="portal_type search_type_list"\n
tal:content="portal_type"\n
tal:attributes="value portal_type"/>\n
</select>\n
<input type="submit" name="searches/WebSite_processAdvancedSearch:method" value="Search"/>\n
</div>\n
<div class="searchOptions">\n
<a tal:attributes="href string: ${site_url}/searches/WebSite_viewAdvancedSearch" i18n:translate="" i18n:domain="ui">Advanced Search</a> | <a href="javascript:void 0" onclick="javascript:openTips();" value="" i18n:translate="" i18n:domain="ui">Search Tips</a>\n
</div>\n
</div>\n
<div class="clear"></div>\n
</div>\n
\n
<div class="tabbertab">\n
<h2 value="" i18n:translate="" i18n:domain="ui">Browse</h2>\n
\n
<div style="width:250px;float:left;" class="tabbertabcont">\n
<ul>\n
<li value="" i18n:translate="" i18n:domain="ui">Departments and Divisions:</li>\n
<ul>\n
<li tal:repeat="root_section here/group_section/contentValues">\n
<span tal:content="root_section/getTitle" onclick="toggleSection(this)" toggle="yes" style="cursor:pointer;"/>\n
<div style="display:none;visibility:hidden">\n
<ul>\n
<li tal:repeat="section root_section/contentValues"><a href="#" tal:content="section/getTitle"\n
tal:attributes="href section/absolute_url">Theme</a></li>\n
</ul>\n
</div>\n
</li>\n
</ul>\n
</ul>\n
\n
<ul>\n
<li value="" i18n:translate="" i18n:domain="ui">Programmes:</li>\n
<ul>\n
<li tal:repeat="section here/source_project_section/contentValues"><a href="#" tal:content="section/getTitle"\n
tal:attributes="href section/absolute_url">Theme</a></li>\n
</ul>\n
</ul>\n
</div>\n
<div style="width:250px;float:right;" class="tabbertabcont">\n
<ul>\n
<li value="" i18n:translate="" i18n:domain="ui">Offices:</li>\n
<ul>\n
<li tal:repeat="root_section here/site_section/contentValues">\n
<span tal:content="root_section/getTitle" onclick="toggleSection(this)" toggle="yes" style="cursor:pointer;"/>\n
<div style="display:none;visibility:hidden">\n
<ul>\n
<li tal:repeat="section root_section/contentValues"><a href="#" tal:content="section/getTitle"\n
tal:attributes="href section/absolute_url">Theme</a></li>\n
</ul>\n
</div>\n
</li>\n
</ul>\n
</ul>\n
</div>\n
\n
<div class="clear"></div>\n
</div>\n
\n
<div class="tabbertab">\n
<h2 i18n:translate="" i18n:domain="ui">Query</h2>\n
<div>\n
<textarea cols="40" rows="2" name="query_string"></textarea>\n
<tal:block i18n:translate="" i18n:domain="ui">in</tal:block>\n
<select size="1" class="input" name="query_portal_type">\n
<option value="all" selected value="" i18n:translate="" i18n:domain="ui">Any Documents</option>\n
<option tal:repeat="portal_type search_type_list"\n
tal:content="portal_type"\n
tal:attributes="value portal_type"/>\n
</select>\n
<input type="submit" name="query_submit" value="Send Query to Expert"/>\n
<div class="clear"></div>\n
</div>\n
</div>\n
\n
</div>\n
\n
</tal:block>
]]></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_viewSearchRenderer</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block replace="nothing">\n
This is used in contribute tab to distinguish implemented/not implemented "file" features\n
</tal:block>\n
<span metal:define-macro="file_feature">\n
<a tal:condition="impl" href="javascript:void 0" onclick="fileImplemented()" tal:content="title"/>\n
<a tal:condition="python:not impl" href="javascript:void 0" onclick="fileNotImplemented()" tal:content="title" style="color:grey"/>\n
</span>\n
\n
<tal:block replace="nothing">\n
This is used in main panel to fill properties for contributing document or external resource\n
</tal:block>\n
<div metal:define-macro="contribute_properties">\n
<div>\n
<label for="classification" value="" i18n:translate="" i18n:domain="ui">Classification</label>\n
<select size="1" name="classification" id="classification">\n
<option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Classification --</option>\n
<option tal:repeat="item python:[c for c in here.portal_categories.classification.getCategoryChildLogicalPathItemList()[1:] if len(c[1].split(\'/\'))>1]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
Agricultural Development\n
</option>\n
</select>\n
</div>\n
<div>\n
<label for="project" value="" i18n:translate="" i18n:domain="ui">Programme</label>\n
<select size="1" id="project" name="project">\n
<option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Programme --</option>\n
<option tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) for o in here.project_module.searchFolder()]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
Agricultural Development\n
</option>\n
</select>\n
</div>\n
</div> \n
\n
\n
<!-- \n
# vim: filetype=html syntax=html shiftwidth=2 \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>au_macros</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>XXX - Integrate in wherever appropriate</string> </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