[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> </DIV>
<DIV><FONT face=3DArial size=3D2>I need the help with the following=20
situation:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a folder test with the following =
structure</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 1 Test</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> a =20
index_html &nb=
sp;=20
some frames to structure the display</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> a =20
zman =
=20
(a product I am about to develop)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> a =20
data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> b =20
projects</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> c &nb=
sp; =20
data =
=20
acesses database</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> c =20
display =20
displayes the =
data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> b =20
documents</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2> c =20
data =
=20
acesses database </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> c =20
display =20
displayes the =
data</FONT></DIV>
<DIV> </DIV>
<DIV>(I hope you can still see the structure)</DIV>
<DIV> </DIV>
<DIV>Now to display the records I use the following dtml-method(in the =
disply=20
method):</DIV>
<DIV> <dtml-in=20
expr=3D"PARENTS[0].data()"><BR> &nb=
sp;=20
<OPTION selected value=3D"<dtml-var=20
sequence-index>"><BR> &nbs=
p; =20
<dtml-var =
sequence-item><BR> =20
</OPTION><BR> </dtml-in></DIV>
<DIV>This works fine if I am in projects od dicuments</DIV>
<DIV> </DIV>
<DIV>Now my problem:</DIV>
<DIV>in index_html I only would like to splice the various parts =
togezher.=20
</DIV>
<DIV> </DIV>
<DIV>Like so:</DIV>
<DIV><some glue></DIV>
<DIV> <dtml-var=20
expr=3D"PARENTS[0].data.projects.show()"><BR> =
<dtml-var=20
expr=3D"PARENTS[0].data.documents.show()"></DIV><BR>
<DIV></some glue></DIV>
<DIV> </DIV>
<DIV>Unfortunatelly I get an erro in the display-methodr:</DIV>
<DIV><STRONG> Error Value: PARENTS</STRONG></DIV>
<DIV> (Object: =
PARENTS[0].data())<BR> </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> </DIV>
<DIV>Thanks for your help.</DIV>
<DIV> </DIV>
<DIV>Robert<BR></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0020_01C0C081.B692EBD0--