[Zope-dev] Re: Zope 3 ZPTs in Zope 2: Nearly done

Paul Winkler pw_lists at slinkp.com
Mon May 22 11:44:48 EDT 2006


On Mon, May 22, 2006 at 03:41:21AM +0200, Philipp von Weitershausen wrote:
> Philipp von Weitershausen wrote:
> > http://svn.zope.org/Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testDTMLTests.py?rev=68229&view=auto
> > http://svn.zope.org/Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testHTMLTests.py?rev=68230&view=log
> 
> I meant
> 
> http://svn.zope.org/Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testHTMLTests.py?rev=68230&view=log
> http://svn.zope.org/Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/tests/testExpressions.py?rev=68229&view=auto
> 
> instead.

Re. one of your questions:

        #    there are ways to make code compatible with 2.9 and 2.10:
        #    Add a nocall: before the python: expression (if that's
        #    possible?!?). 


Yes, it's possible. This works fine in 2.9:

  <p tal:define="blah nocall:python:int" tal:content="python:blah('1')+2">
  </p>

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope-Dev mailing list