Alan Warren wrote:
single image into a folder.  So, I have a folder called view.  When an
image is viewed the URL looks like

The code looks like this:
<span tal:define="imgName python:request['URL2'][len(request['URL3']+1:]">
    <span tal:define="global imgObj python:path('here/'+imgName)"></span>


This is really contorted. Why do you use URL2 and URL3?

Is imgObj not just 'here' anyway?

What is the page template where this code comes from called?

Why do you do a global define?

Why two define statements instead of just one?


Simplistix - Content Management, Zope & Python Consulting

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to