Peter Bengtsson wrote:
<dtml-let strDirPath="'/'.join(strDirPath.split('/')[:-1])">
You don't need to use _.string.legacy() functions. Just put your
python expression inside the quotation marks. If you're new to python,
don't let DTML be your place to learn python. Use a nice editor like

Just to emphasise what Peter is saying: do this in ZPT and put the logic in a python script. You'll suffer a lot less in the long run as a result ;-)



Simplistix - Content Management, Zope & Python Consulting

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

Reply via email to