27 Mar
2005
27 Mar
'05
12:15 a.m.
Hello list, --- I can't seem to find an elegant solution to checking if an object has a certain attribute. The following fails (i.e. zope dies), if the attribute does not exist: <p tal:condition="exists: obj/someAttribute" tal:replace="obj/someAttribute" /> Of course, I just want it to skip the tag. Dying is a bit rash. Specifically, I want to test if a certain CGI parameter has been set, i.e. that the REQUEST object has a certain attribute. What is the best way to do this in both ZPT and Python? \malthe ---- mail: mborch@3avod.dk blog: www.3avod.dk/blog/ crypto-key: 3avod.dk/keys/mborch.asc --------------------------------------