[Zope] Page Template help

Garito garito at sistes.net
Mon Aug 11 11:41:47 EDT 2008


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 at 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 at 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 at 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
>



-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080811/f0bf0268/attachment.html 


More information about the Zope mailing list