2009-10-18 07:52:27 -05:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
|
|
|
|
metal:use-macro="here/main_template/macros/master">
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">This page presents results of queries</tal:comment>
|
|
|
|
<body>
|
|
|
|
|
2009-10-20 09:57:00 -05:00
|
|
|
<tal:comment replace="nothing">Disable standard Plone green tabs</tal:comment>
|
|
|
|
<div metal:fill-slot="top_slot">
|
|
|
|
<metal:block metal:use-macro="here/global_defines/macros/defines" />
|
|
|
|
<div tal:define="dummy python:request.set('disable_border', 1)" />
|
|
|
|
</div>
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2009-10-20 09:57:00 -05:00
|
|
|
<tal:comment replace="nothing">We suppose we are in the app folder here.</tal:comment>
|
|
|
|
<div metal:fill-slot="main"
|
|
|
|
tal:define="appFolder context/getParentNode;
|
|
|
|
appName appFolder/id;
|
|
|
|
tool python: portal.get('portal_%s' % appName.lower());
|
2009-11-03 08:02:18 -06:00
|
|
|
contentType python:context.REQUEST.get('type_name');
|
2010-02-12 03:59:42 -06:00
|
|
|
flavour python: tool.getFlavour(contentType);
|
2010-08-27 01:59:53 -05:00
|
|
|
flavourNumber python:int(context.REQUEST.get('flavourNumber', 1));
|
2009-11-17 03:05:19 -06:00
|
|
|
searchName python:context.REQUEST.get('search', '')">
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2010-08-05 11:23:17 -05:00
|
|
|
<div metal:use-macro="here/skyn/page/macros/prologue"/>
|
2009-11-03 08:02:18 -06:00
|
|
|
<tal:comment replace="nothing">Query result</tal:comment>
|
|
|
|
<div id="queryResult"></div>
|
|
|
|
|
|
|
|
<script language="javascript"
|
|
|
|
tal:define="ajaxUrl python: tool.getQueryUrl(contentType, flavourNumber, searchName)"
|
2010-04-30 05:05:29 -05:00
|
|
|
tal:content="python: 'askQueryResult(\'queryResult\', \'%s\',\'%s\',\'%s\',\'%s\',0)' % (tool.absolute_url(), contentType, flavourNumber, searchName)">
|
2009-11-03 08:02:18 -06:00
|
|
|
</script>
|
2009-10-20 09:57:00 -05:00
|
|
|
</div>
|
2009-10-18 07:52:27 -05:00
|
|
|
</body>
|
|
|
|
</html>
|