Hi. Following bugs me: I have a list of BTrees (the list is generated bt the pkg_remotePackages) that store information about a software package. What i found is, that the btrees (presented in the loop by 'package') can't be accessed in the Page Templates. When using the python expression, AccessControl.ZopeGuards.guarded_getitem prevents the display, and when using the path traversal of the page templates i get a 'not' found, probably the same problem as the AccessControl in the python expression. Any Ideas (other than creating a list of dictionaries for temporarily use, which would not solve the problem itself ...)? --- Here the page template: <tbody> <tr tal:repeat="package here/pkg_remotePackages"> <td tal:content="python:package['type']"></td> <td tal:content="package/title"></td> <td tal:content="package/version"></td> <td tal:content="package/source"></td> <td><a tal:attributes="href python:request['URL1'] + '/pkg_downloadPkg?pkg_PID=' + package['PID']">download!</a></td> </tr> </tbody> Regards, Christian -- Christian Theune - ct@gocept.com gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981 reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])
participants (1)
-
Christian Theune