[Grok-dev] What is the possible way to do things like view/url('edit') in template

Sebastian Ware sebastian at urbantalk.se
Fri Jan 30 03:53:37 EST 2009

This is a TALES path expression:


This is a TALES pyton expression:


They can do different things. See TALES Overview:


TALES Expression Types
These are the TALES expression types supported by Zope:

	• path expressions - locate a value by its path.
	• exists expressions - test whether a path is valid.
	• nocall expressions - locate an object by its path.
	• not expressions - negate an expression
	• string expressions - format a string
	• python expressions - execute a Python expression

Mvh Sebastian

30 jan 2009 kl. 01.43 skrev geoHUZ:

> In the template of accessing the url method, I know the  
> python:view.url() can
> be wrote as view/url, but python:view.url('edit')  can't be view/url/ 
> edit or
> view/url('edit') , so what is the correct syntax? Or it is not  
> possible?
> -- 
> View this message in context: http://www.nabble.com/What-is-the-possible-way-to-do-things-like-view-url%28%27edit%27%29-in-template-tp21739491p21739491.html
> Sent from the Grok mailing list archive at Nabble.com.
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list