[Zope] Restricted Traverse

Andrew Milton akm at theinternet.com.au
Sat Nov 11 11:34:50 EST 2006


+-------[ Nancy Donnelly ]----------------------
| ----- Original Message ----
| From: Andrew Milton <akm at theinternet.com.au>
| 
| > absolute url returns a string prefixed with "http(s)://", unless the relative
| > parameter evaluates to true.... None doesn't do that.
| >
| > Try using relative = True
| 
| You mean like this?
| 
| <span
|     tal:define="global url python:here.absolute_url(relative=True) + '/
| index_frame.pt#quotes'"
| />
| <span
|     tal:define="root python:container.restrictedTraverse(url)"
|     tal:replace="structure python:here.printSiteMap(root, 12)"
| />
| 
| It didn't like that either :(

Try removing the 'anchor' (#quotes), since you dont have an object called
'index_frame.pt#quotes', do you ?

Do you have any more information? 
Like error messages? The value that url evaluates to?

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list