<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2745.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px" 
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I think your &lt;body&gt; tag should be after the 
&lt;div metal: "Main"&gt; line...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>as </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;body tal:define="results " bla bla 
bla...</FONT></DIV>
<DIV><FONT face=Arial size=2>(at least that)</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent you an email off-list...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>hth</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>bobb</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=MILLIKEL@neumann.edu href="mailto:MILLIKEL@neumann.edu">Lawrence 
  Milliken</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope-db@zope.org 
  href="mailto:zope-db@zope.org">zope-db@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 15, 2005 12:09 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope-DB] showing mysql results 
  in plone</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=1>Sorry for the cross-post, I'm not getting any help from 
  Plone-Users and I'm really stuck.</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV>
  <DIV><FONT size=1>hi all,</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>I have a zpt for a zsql query that, when I view it, looks 
  like a plone document,&nbsp; I'm trying to figure out how to either add it to 
  a folder on my plone site or paste it into a plone document so that the query 
  results are displayed.</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>The code for the zpt (in portal_skins/custom) 
  is:</FONT></DIV>
  <DIV><FONT size=1>&lt;code&gt; </FONT></DIV>
  <DIV><FONT size=1>&lt;html xmlns="<A 
  href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>" 
  xml:lang="en"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  lang="en"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  metal:use-macro="here/main_template/macros/master"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  i18n:domain="plone"&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&lt;body&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&lt;div metal:fill-slot="main"&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&nbsp;&nbsp; &lt;span tal:define="results&nbsp; 
  here/databases_alpha_mysql;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  start 
  request/start|python:0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  next python:batch.next"&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&nbsp; &lt;h1&gt;Online Databases at the Neumann College 
  Library&lt;/h1&gt;<BR>&nbsp; &lt;h4&gt;Alphabetical by Database Name | &lt;a 
  href="db_subject_html" name="db subject list"&gt;Databases by 
  Subject&lt;/h4&gt; <BR>&nbsp; &lt;p&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;a 
  tal:condition="previous"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  tal:attributes="href 
  string:${request/URL0}?start:int=${previous/first}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  href="previous_url"&gt;previous &lt;span 
  tal:replace="previous/length"&gt;20&lt;/span&gt; 
  results&lt;/a&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;a 
  tal:condition="next"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  tal:attributes="href 
  string:${request/URL0}?start:int=${next/first}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  href="next_url"&gt;next &lt;span tal:replace="next/length"&gt;20&lt;/span&gt; 
  results&lt;/a&gt;<BR>&nbsp; &lt;/p&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&nbsp;&nbsp; <BR>&nbsp; &lt;div tal:repeat="result batch" 
  &gt;<BR>&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;dl&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;dt&gt;&lt;a href="#" tal:attributes="href 
  result/db_url;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  title result/db_name"&gt;&lt;span tal:replace="result/db_name"&gt;db_name goes 
  here&lt;/span&gt;&lt;/a&gt;&lt;/dt&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;dd&gt;&lt;span tal:replace="result/db_description"&gt;db_description goes 
  here&lt;/span&gt;&lt;/dd&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/dl&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br 
  /&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=1>&nbsp; &lt;/div&gt;</FONT></DIV>
  <DIV><FONT size=1>&lt;/code&gt;</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><FONT size=1>I've tried pasting that into the body of a new document but 
  the results don't replace the placeholders.&nbsp; When I view the page I 
  get:</FONT></DIV>
  <DIV><FONT size=1></FONT>&nbsp;</DIV>
  <DIV><!--StartFragment -->&nbsp; 
  <DIV class=plain>
  <DIV metal:fill-slot="main"><SPAN 
  tal:define="results here/databases_alpha_mysql;&#13;&#10;                    start request/start|python:0;&#13;&#10;                    batch python:modules['ZTUtils'].Batch(results, &#13;&#10;                                                          size=20, &#13;&#10;                                                          start=start);&#13;&#10;                    previous python:batch.previous;&#13;&#10;                    next python:batch.next">
  <H1>Online Databases at the Neumann College Library</H1>
  <H4>Alphabetical by Database Name | <A 
  href="http://10.1.3.204:8200/databases/db_subject_html" 
  name="db subject list">Databases by Subject</A></H4><A 
  href="http://10.1.3.204:8200/databases/db_subject_html" 
  name="db subject list"></A>
  <P><A href="http://10.1.3.204:8200/databases/db_subject_html" 
  name="db subject list"></A><A 
  href="http://10.1.3.204:8200/databases/previous_url" tal:condition="previous" 
  tal:attributes="href string:${request/URL0}?start:int=${previous/first}">previous 
  <SPAN tal:replace="previous/length">20</SPAN> results</A> <A 
  href="http://10.1.3.204:8200/databases/next_url" tal:condition="next" 
  tal:attributes="href string:${request/URL0}?start:int=${next/first}">next 
  <SPAN tal:replace="next/length">20</SPAN> results</A> </P>
  <DIV tal:repeat="result batch">
  <DL>
    <DT><A 
    href="http://10.1.3.204:8200/databases/document.2005-03-14.6239199029#" 
    tal:attributes="href result/db_url;&#13;&#10;                           title result/db_name"><SPAN 
    tal:replace="result/db_name">db_name goes here</SPAN></A> 
    <DD><SPAN tal:replace="result/db_description">db_description goes 
    here</SPAN></DD></DL><BR></DIV>
  <P><A href="http://10.1.3.204:8200/databases/previous_url" 
  tal:condition="previous" 
  tal:attributes="href string:${request/URL0}?start:int=${previous/first}">previous 
  <SPAN tal:replace="previous/length">20</SPAN> results</A> <A 
  href="http://10.1.3.204:8200/databases/next_url" tal:condition="next" 
  tal:attributes="href string:${request/URL0}?start:int=${next/first}">next 
  <SPAN tal:replace="next/length">20</SPAN> results</A> </P></SPAN></DIV></DIV>
  <DIV class=documentByLine><SPAN>Any help will be appreciated.</SPAN></DIV>
  <DIV>&nbsp;</DIV>
  <DIV class=documentByLine><SPAN>Larry Milliken<BR>Reference 
  Librarian<BR>Neumann College Library</SPAN></DIV>
  <DIV>&nbsp;</DIV>
  <DIV class=documentByLine><SPAN>Larry Milliken<BR>Reference 
  Librarian<BR>Neumann College Library</SPAN></DIV></DIV></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope-DB mailing 
  list<BR>Zope-DB@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope-db<BR></BLOCKQUOTE></BODY></HTML>