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
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)
--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
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:
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
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:' +
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!
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:' +
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]
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
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
11 matches
Mail list logo