[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] here/content
From:       Dieter Maurer <dieter () handshake ! de>
Date:       2005-11-30 20:12:26
Message-ID: 17294.1962.664615.817776 () gargle ! gargle ! HOWL
[Download RAW message or body]

John Poltorak wrote at 2005-11-30 01:32 +0000:
>Can someone tell me how 'here/content' is translated in these lines?
>
><span tal:define="stx python:modules['Products'].PythonScripts.standard.structured_text;
>                   the_text here/content"
>       tal:content="structure python:stx(the_text)">
>
>    The structured text goes here.
>
></span>

"here" (i.e. the object viewed via the template) is asked
for "content" (calling "here.restrictedTraverse('content')").
If the result is callable, it is called.
The result is bound to "the_text".

>When I use the URL  'www.mysite.org' the above resolves fine, but if I use 
>'www.mysite.org:8080/mysite' I get a 'Resource not found' when selecting 
>the same link from the homepage of the same site. Is there something I've 
>overlooked?

This either means that your problem is elsewhere or that the "here"
are different in both cases.

-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic