[Zope] Dtml-in start=CST object not working

Paz paz@chello.nl
Wed, 17 Oct 2001 11:52:46 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0023_01C15702.3D1286E0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Please, oh please can someone tell me why this doesn't seem to work?
 
<dtml-in "getLG2(lg1=sData.get('key1'))" size=12 orphan=0 sort=value
start=sData.get('tmStart'))>
  <dtml-if previous-sequence><dtml-call "sData.set('tmPrev',
_['previous-sequence-start-number'])"></dtml-if>
    ..
    ..
    ..
  <dtml-if next-sequence><dtml-call "sData.set('tmNext',
_['next-sequence-start-number'])"></dtml-if>
</dtml-in>
 
sData is a CST 0.9 integer object. I'm trying to assign the proper
sequence-next/previous values to a URL In order to put the NEXT and
PREVIOUS buttons anywhere on the page (next to each other inside the
interface instead of either side of the form)
 
The tmNext/Prev variables are then set in a skin to set the
sData.get('tmStart') value as an integer, then the next load should feed
this into the start mechanism of the dtml-in.
 
I'm able to see that an integer is set to sData at the right time, but
the In loop doesn't use the value to start from. 
 
If I change it for a static number, then of course the whole thing works
properly, but I'm lost why I cant take this from the request? I also
tried setting these objects as normal REQUEST items, but it still
doesn't work.
 
please and thank you,
 
Paul Zwarts
 

------=_NextPart_000_0023_01C15702.3D1286E0
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C15702.3CABFCE0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Please, oh please can someone tell me why this =
doesn&#8217;t
seem to work?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&lt;<span class=3DSpellE>dtml</span>-in &quot;<span
class=3DGramE>getLG2(</span>lg1=3D<span =
class=3DSpellE>sData.get</span>('key1'))&quot;
size=3D12 orphan=3D0 sort=3Dvalue start=3D<span =
class=3DSpellE>sData.get</span>('<span
class=3DSpellE>tmStart</span>'))&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; =
</span>&lt;<span
class=3DSpellE><span class=3DGramE>dtml</span></span><span =
class=3DGramE>-</span>if
previous-sequence&gt;&lt;<span class=3DSpellE>dtml</span>-call =
&quot;<span
class=3DSpellE>sData.set</span>('<span class=3DSpellE>tmPrev</span>',
_['previous-sequence-start-number'])&quot;&gt;&lt;/<span =
class=3DSpellE>dtml</span>-if&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; =
</span>..<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; =
</span>..<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; =
</span>..<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; =
</span>&lt;<span
class=3DSpellE><span class=3DGramE>dtml</span></span><span =
class=3DGramE>-</span>if
next-sequence&gt;&lt;<span class=3DSpellE>dtml</span>-call &quot;<span
class=3DSpellE>sData.set</span>('<span class=3DSpellE>tmNext</span>',
_['next-sequence-start-number'])&quot;&gt;&lt;/<span =
class=3DSpellE>dtml</span>-if&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&lt;/<span =
class=3DSpellE>dtml</span>-in&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>sData</span></font></span></=
span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> is a CST
0.9 integer object. I&#8217;m trying to assign the proper =
sequence-next/previous
values to a URL In order to put the NEXT and PREVIOUS buttons anywhere =
on the
page (next to each other inside the interface instead of either side of =
the
form)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The <span class=3DSpellE>tmNext/Prev</span> variables =
are then
set in a skin to set the <span class=3DSpellE><span =
class=3DGramE>sData.get</span></span><span
class=3DGramE>(</span>&#8216;<span class=3DSpellE>tmStart</span>&#8217;) =
value as
an integer, then the next load should feed this into the start mechanism =
of the
<span class=3DSpellE>dtml</span>-in.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m able to see that an integer is set to <span
class=3DSpellE>sData</span> at the right time, but the <span =
class=3DGramE>In</span>
loop doesn&#8217;t use the value to start from. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>If I change it for a static number, then of course =
the whole
thing works properly, but I&#8217;m lost why I <span =
class=3DGramE>cant</span>
take this from the request? I also tried setting these objects as normal
REQUEST items, but it still doesn&#8217;t =
work.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>please and thank you,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Paul Zwarts<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0023_01C15702.3D1286E0--