Finally it's possible to do what I need without the need to declare any variable?

If not my change will be 4-6 lines of code and it's ok for me to make this change

I only need to understand were the code decides if the expression is standard, string or python

Could you help me?

Thanks!

2008/8/11 Garito <garito@sistes.net>
Considere this case:

I have the sking value in the variable at args/Yanged/Skin

How can I do the equivalent to

args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url

?

In the python way it will be:

path(path('string:' + 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url'))

That's returns the expected value but I can't see how to do with your propossed way

Thanks!

2008/8/11 Philipp von Weitershausen <philipp@weitershausen.de>
Garito wrote:

> Use:
> /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way

Path expressions already support this.

  tal:define="pathel some/magic/variables;
              obj    path/to/the/object/with/?pathel/to/solve/some/..."

So basically in TALES path expressions you can say foo/?bar and the
value of the 'bar' variable will be used to traverse the next step from
'foo'.

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





--
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670