[Zope] any cleaner or cleverer way of inclusion

Jaroslav Lukesh lukesh at seznam.cz
Mon Aug 18 14:53:00 EDT 2003


> Odesílatel: Can Burak Cilingir <canburak at knuth.cs.bilgi.edu.tr>
> following code 
> ---cut---
> ---------var----------
> <dtml-var bilgi_cs_index>
> ------loooooop--------
> <dtml-in expr="PARENTS[0].objectValues('DTML Method')" >
> <dtml-comment>this was returning. this behaviour is a must 
> to illustrate the problem.</dtml-comment>
> <dtml-var bilgi_cs_index>
> </dtml-in> 
> ---cut---
> 
> displays
> 
> ---------var---------- No content for this folder. ------loooooop--------

> Year 1
> 
> address is: http://xxx/Courses/Year_1/
> "Year 1" comes from http://xxx/Courses/Year_1/my_index
> "No content.." comes from http://xxx/my_index  (this will be changed 
> with "missing" later.)

Do you know why you use DTML Method, or you use it because you have just
few lines of code here?

Try to play with acquisition:

<dtml with aq_explicit>
	---------acq----------
	<dtml-var bilgi_cs_index>
</dtml-with>
--------/acq-----------
<dtml-var bilgi_cs_index>


But it raise error if you does not have called object here.

Please make more comments on what you wan to have and code of
bilgi_cs_index and my_index.

Regards JL.




More information about the Zope mailing list