[Zope-dev] Confused by accuisition, need help

Robert Rottermann robert@redcor.ch
Sun, 8 Apr 2001 23:14:51 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C0C081.B692EBD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi there,

I need the help with the following situation:

I have a folder test with the following structure
   1 Test
   a     index_html            some frames to structure the display
   a     zman                    (a product I am about to develop)
   a    data
   b         projects
   c             data                acesses database
   c             display            displayes the data
   b         documents
   c             data                acesses database=20
   c             display            displayes the data

(I hope you can still see the structure)

Now to display the records I use the following dtml-method(in the disply =
method):
      <dtml-in expr=3D"PARENTS[0].data()">
        <OPTION selected value=3D"<dtml-var sequence-index>">
          <dtml-var sequence-item>
        </OPTION>
      </dtml-in>
This works fine if I am in projects od dicuments

Now my problem:
in index_html I only would like to splice the various parts togezher.=20

Like so:
<some glue>
    <dtml-var expr=3D"PARENTS[0].data.projects.show()">
    <dtml-var expr=3D"PARENTS[0].data.documents.show()">


</some glue>

Unfortunatelly I get an erro in the display-methodr:
    Error Value: PARENTS
    (Object: PARENTS[0].data())
   =20
Obviously when called like this, the method knows nothing of its =
anchestry.
How kan I call methods that are in a "lower" folder, and have them know =
theyr environment?

Thanks for your help.

Robert


------=_NextPart_000_0020_01C0C081.B692EBD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#c8e0d8>
<DIV><FONT face=3DArial size=3D2>Hi there,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need the help with the following=20
situation:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a folder test with the following =

structure</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;1 Test</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;a &nbsp;&nbsp;&nbsp;=20
index_html&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
some frames to structure the display</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;a &nbsp;&nbsp;&nbsp;=20
zman&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; (a product I am about to develop)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;a&nbsp;&nbsp;&nbsp;=20
data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;b &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; projects</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
data&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
acesses database</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;c &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; display&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayes the =
data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;b&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; documents</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;c &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; data&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; acesses database </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;c &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; display&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayes the =
data</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>(I hope you can still see the structure)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now to display the records I use the following dtml-method(in the =
disply=20
method):</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in=20
expr=3D"PARENTS[0].data()"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
&lt;OPTION selected value=3D"&lt;dtml-var=20
sequence-index&gt;"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&lt;dtml-var =
sequence-item&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/OPTION&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-in&gt;</DIV>
<DIV>This works fine if I am in projects od dicuments</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now my problem:</DIV>
<DIV>in index_html I only would like to splice the various parts =
togezher.=20
</DIV>
<DIV>&nbsp;</DIV>
<DIV>Like so:</DIV>
<DIV>&lt;some glue&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;dtml-var=20
expr=3D"PARENTS[0].data.projects.show()"&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;dtml-var=20
expr=3D"PARENTS[0].data.documents.show()"&gt;</DIV><BR>
<DIV>&lt;/some glue&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Unfortunatelly I get an erro in the display-methodr:</DIV>
<DIV><STRONG>&nbsp;&nbsp;&nbsp; Error Value: PARENTS</STRONG></DIV>
<DIV>&nbsp;&nbsp;&nbsp; (Object: =
PARENTS[0].data())<BR>&nbsp;&nbsp;&nbsp; </DIV>
<DIV>Obviously when called like this, the method knows nothing of its=20
anchestry.</DIV>
<DIV>How kan I call methods that are in a "lower" folder, and have them =
know=20
theyr environment?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0020_01C0C081.B692EBD0--