hello i try to get list of objects with metatyp Folder AND the property show. is it possible to do this with TAL? or do i have to do this whith a python script? the following code doesn't work but was an idea and shows what i mean. <div tal:define="objects python:here.objectValues('Folder'); list_objects python:objects.hasProperty('show')" tal:repeat="item list_objects"> thanx simon ,-----------------------------------------------------. | simon.litwan [farb ton form bearbeitung] | | around da world | | mailto:simon@litwan.com | | pgpO¬ http://www.litwan.com/simon_at_litwan_dot_com | `-----------------------------------------------------´
on or about, Friday, October 04, 2002, we have reason to believe that simon litwan wrote something along the lines of : sl> i try to get list of objects with metatyp Folder AND the property show. is sl> it possible to do this with TAL? sl> or do i have to do this whith a python script? sl> the following code doesn't work but was an idea and shows what i mean. sl> <div tal:define="objects python:here.objectValues('Folder'); sl> list_objects python:objects.hasProperty('show')" sl> tal:repeat="item list_objects"> perhaps something like this would do ? <untested> <div tal:repeat="objects python:here.objectValues('Folder')" tal:omit-tag="python:1"> <div tal:condition="exists:objects/show"> a folder with attribute show </div> </div> </untested> hth :) -- Geir Bækholt geir@funcom.com Zopatista , tools-developer Product Operations Funcom Oslo
participants (2)
-
Geir B�kholt -
simon litwan