[Zope] Request List Problem in Zope

Guy THEISEN guy.theisen@isp.lu
Fri, 12 Oct 2001 16:28:56 +0200


Hi,

I try to make a request with a list of datas in Zope. But I get always
errors for the other parameters when I try to make a query with this
list.

Here is a part of my code. If there is a  mistake, tell me.

------------------- begin of the code --------------------

<dtml-var standard_html_header>

<dtml-call "REQUEST.set('RessortCrit', '')">
<dtml-call "REQUEST.set('ObjektCrit', '')">

<dtml-if RessortList>
<dtml-in RessortList>
 <dtml-call "REQUEST.set('RessortCrit',
_['sequence-item']+'|'+RessortCrit)">
</dtml-in>
 <dtml-call "REQUEST.set('RessortCrit',
'('+RessortCrit+'(1&1))&Pressespiegel')">
</dtml-if>

<dtml-if Objekt>
<dtml-in Objekt>
  <dtml-call "REQUEST.set('ObjektCrit',
_['sequence-item']+'|'+ObjektCrit)">
</dtml-in>
  <dtml-call "REQUEST.set('ObjektCrit', '('+ObjektCrit+'(1&1))')">
</dtml-if>


<dtml-in
"qNormal(Ressort=3DRessortCrit,Aufnahme=3D'',Erscheinungsdatum=3D_.string=
.replace(Erscheinungsdatum,'$',
'&'),Volltext=3D_.string.replace(volltext,'$', '&'), Objekt=3DObjektCrit)=
"
size=3D10 start=3Dquery_start>
  <dtml-if sequence-start>
  <A HREF=3D"../pgEliasSearch.html"><img border=3D"0"
src=3D"../Images/document_backreturn_red.gif"> Zur=FCck</A>

   <dtml-if previous-sequence>

       <a href=3D"<dtml-var URL><dtml-var
sequence-query>query_start=3D<dtml-var previous-sequence-start-number>">
       (Previous <dtml-var previous-sequence-size> results)
       </a>

     </dtml-if previous-sequence>
<br><br>
<TABLE width=3D"95%" BORDER=3D1 cellpadding=3D3 CELLSPACING=3D0
BORDERLIGHTCOLOR=3D"#AAAAAA"
BORDERDARKCOLOR=3D"50A0AF" bordercolor=3D"#50A0AF" align=3D"center">
<TR>
  <TD width=3D"5%" CLASS=3D"tableheader"> Datum </TD>
  <TD width=3D"40%" CLASS=3D"tableheader"> Ueberschrift </TD>
  <TD width=3D"20%" CLASS=3D"tableheader"> Ressort </TD>
  <TD width=3D"20%" CLASS=3D"tableheader"> Objekt </TD>
  <TD width=3D"5%" CLASS=3D"tableheader"><SPAN CLASS=3D"ISPtext"><B> Ganz=
seite
</B></SPAN></TD>
</TR>

  </dtml-if sequence-start> <TR>
  <TD><SPAN CLASS=3D"ISPText"><dtml-var
Erscheinungsdatum>&nbsp;</SPAN></TD>
  <TD><a href=3D"detail_View?newJobnr=3D<dtml-var
Jobnr>&newAufnahme=3D<dtml-var Erscheinungsdatum>"><dtml-var
Haupt%ueberschrift html_quote></a>&nbsp;</TD>
  <TD><SPAN CLASS=3D"ISPText"><dtml-var Ressort>&nbsp;</SPAN></TD>
  <TD><SPAN CLASS=3D"ISPText"><dtml-var Objekt>&nbsp;</SPAN></TD>
  <TD><SPAN CLASS=3D"ISPText">
     <dtml-if "Ganzseite<>''">
        <a href=3D"http://mastdfp/<dtml-var Ganzseite>"><img border=3D"0"
src=3D"PDFsml"></a>&nbsp;
     <dtml-else>
        &nbsp;
     </dtml-if></SPAN>
  </TD>
</TR>

<dtml-if sequence-end>
     </table>
</font>
     <dtml-if next-sequence>

        <a href=3D"<dtml-var URL><dtml-var
sequence-query>query_start=3D<dtml-var next-sequence-start-number>">
        (Next <dtml-var next-sequence-size> results)
        </a>

     </dtml-if next-sequence>
  </dtml-if sequence-end>

<dtml-else>

 <SPAN CLASS=3D"ISPtext">Es wurden keine Datens=E4tze mit den von Ihnen
angegebenen Suchkriterien gefunden.<br>
 Bitte klicken Sie auf "Neue Suche" um wieder zur=FCck zur Suchmaske zu
gelangen!
 <P>  <A HREF=3D"../pgEliasSearch.html"><img border=3D"0"
src=3D"../Images/document_backreturn_red.gif"> Zur=FCck</A>
 </p>
Vorschl=E4ge:<br>
<li>Vergewissern Sie sicher, dass alle W=F6rter richtig geschrieben sind.
<li>Probieren Sie unterschiedliche Stichw=F6rter.
<li>Probieren Sie allgemeinere Stichw=F6rter.
<li>Probieren Sie weniger Stichw=F6rter.
</SPAN>


</dtml-in>

--------------------------------- end ---------------------

Thanks,

GT