Or as I previously say:<br><br>python: url_quote(path("here/Our_Store/CheckOutAfterEditStuff"))<br><br>Where path is a method that evaluates a string as a tales expresion like this<br><br><div><span class="gmail_quote">
2007/8/16, Peter Bengtsson <<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In TAL this::<br><br> python:url_quote(here/Our_Store/CheckOutAfterEditStuff)"<br><br>means<br><br> here <dividedby> Our_Store <dividedby> CheckOutAfterEditStuff<br><br>What you need is::<br><br> python:url_quote(
here.Our_Store.CheckOutAfterEditStuff())"<br><br><a href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</a> wrote:<br>> I have this line of code:<br>><br>> <a tal:define="std modules/Products.PythonScripts.standard; url_quote
<br>> nocall: std/url_quote; x python:url_quote(here/CheckOutAfterEditStuff)"<br>> tal:attributes="href<br>> string:${here/renumberTheCart/absolute_url}?doc=${x}">test</a><br>><br>> but I get this error:
<br>><br>> *Error Type: NameError<br>> Error Value: name 'CheckOutAfterEditStuff' is not defined*<br>><br>> So I tried this:<br>><br>> <a tal:define="std modules/Products.PythonScripts.standard; url_quote
<br>> nocall: std/url_quote; x<br>> python:url_quote(here/Our_Store/CheckOutAfterEditStuff)"<br>> tal:attributes="href<br>> string:${here/renumberLarimanCart/absolute_url}?doc=${x}">test</a>
<br>><br>> and I got the same error, although now it can't find "Our_Store". Now,<br>> "Our_Store" is the container for this PT and "CheckOutAfterEditStuff" is<br>> in the same container. What am I doing wrong?
<br>> TIA,<br>> Tony<br>> ------------------------------------------------------------------------<br>> AOL now offers free email to everyone. Find out more about what's free<br>> from AOL at *AOL.com* <
<a href="http://www.aol.com?ncid=AOLAOF00020000000437">http://www.aol.com?ncid=AOLAOF00020000000437</a>>.<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>> <a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a><br>> ** No cross posts or HTML encoding! **
<br>> (Related lists -<br>> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br><br>--<br>Peter Bengtsson,<br>work <a href="http://www.fry-it.com">www.fry-it.com</a><br>home <a href="http://www.peterbe.com">www.peterbe.com</a><br>hobby <a href="http://www.issuetrackerproduct.com">www.issuetrackerproduct.com
</a><br>_______________________________________________<br>Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope
</a><br>** No cross posts or HTML encoding! **<br>(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">
http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>