Re: [Zope] Page Template help

2008-08-12 Thread Garito
Yeah, Mustaha! Sometimes I think I'm a little stupid, jejejeje, I have in front of my nose but I don't see it I was solved the problem adding a y: type expression and then subclass the PythonExpr with the __init__ method modified to change the expression Too much difficult to do the job in an

Re: [Zope] Page Template help

2008-08-11 Thread Garito
Hi Philipp! Thank you so much for your response but in this lines is were the engine loads the possibilities but not were evaluate the current expression I would like to evaluate some condition before to load the class who resolves the expression (and witch is loaded in the code you point me)

Re: [Zope] Page Template help

2008-08-11 Thread Andreas Jung
--On 11. August 2008 15:48:21 +0200 Garito [EMAIL PROTECTED] wrote: Hi Philipp! Thank you so much for your response but in this lines is were the engine loads the possibilities but not were evaluate the current expression I would like to evaluate some condition before to load the class who

Re: [Zope] Page Template help

2008-08-11 Thread Garito
Use: /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way You could do that converting the path above to python: path(path('string:' + '/path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way')) or in a generic way: python:

Re: [Zope] Page Template help

2008-08-11 Thread Philipp von Weitershausen
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; objpath/to/the/object/with/?pathel/to/solve/some/... So basically in TALES path

Re: [Zope] Page Template help

2008-08-11 Thread Garito
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:' +

Re: [Zope] Page Template help

2008-08-11 Thread Garito
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!

Re: [Zope] Page Template help

2008-08-11 Thread Philipp von Weitershausen
Garito wrote: 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:' +

Re: [Zope] Page Template help

2008-08-11 Thread Garito
Yes, it's ok but I can save n variable definitions with 4 lines of code in 1 point Seems quite interesting for me Could someone point me were the page template decides if the expression is a standard, string, python, etc one, please? ;) 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

Re: [Zope] Page Template help

2008-08-11 Thread Philipp von Weitershausen
Garito wrote: Finally it's possible to do what I need without the need to declare any variable? Not that I know of. 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

Re: [Zope] Page Template help

2008-08-11 Thread Garito
Sure Philipp! I'm searching for some days and I still searching but if someone else knows the point perhaps he/she accelerate me ;) Thank you so much for your interest, Philipp! 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED] Garito wrote: Finally it's possible to do what I need

[Zope] Page Template help

2008-08-10 Thread Garito
Hi! Could someone point me where the page template code decide if an expression is a path expression or a string or python one, please? I'm studying the zope page template classes and I would like to understand where this decision is taken Thank you so much! -- Mis Cosas