[Zope-dev] Aquisition: who know how it does?

Coi Giovanni coi@prometeo.it
Mon, 13 Nov 2000 19:54:54 +0100


Assume the following:

-----------------------------------------
Folder1
    index_html
    doc_include_html
    Folder2
        img1
        doc_include_html
-----------------------------------------

'doc_include_html' in 'Folder1' has the following code

-----------------------------------------
    <dtml-var standard_html_header>
    <h2><dtml-var title_or_id></h2>

    <p>doc include Folder 1</p>

    <dtml-var standard_html_footer>
-----------------------------------------

'doc_include_html' in 'Folder2' has the following code

-----------------------------------------
    <dtml-var standard_html_header>
    <h2><dtml-var title_or_id></h2>

    <p>doc include Folder 2</p>

    <dtml-var standard_html_footer>
-----------------------------------------

index_html has the following code:

-----------------------------------------
    <dtml-var standard_html_header>
    <h2><dtml-var title_or_id></h2>
    <p>
    This is the <dtml-var id> Document.
    Image: <img src=img1> size: <dtml-var "img1.getSize()"><br>
    Text: <dtml-var doc_include_html>
    </p>
    <dtml-var standard_html_footer>
-----------------------------------------

when you call the URL http://localhost:8080/Folder1/Folder2 you see:

    This is the index_html Document.
    Image: ..... img2....  size: 11111
    Text: doc include Folder 1

Why the acquisition get (correctly) Folder1/Folder2/img2 and the get (???) 
Folder1/doc_include_html instead of Folder1/Folder2/doc_include_html ?

If you remove doc_include_html from Folder1 so that may assume:

-----------------------------------------
Folder1
    index_html
    Folder2
        img1
        doc_include_html
-----------------------------------------

you see:

    This is the index_html Document.
    Image: ..... img2....  size: 11111
    Text: doc include Folder 2


Thanks in advance,

 G.C.

_________________________________________________________
Prometeo srl - The Software Experience
Coi Giovanni			
Voice : +39 (041)5701366        Via Giudecca 15
Fax   : +39 (041)5701005        30035 MIRANO (VE) - ITALY
e-mail: coi@prometeo.it         http://www.prometeo.it