Gregg Hartling writes:
I'm in Zope 2.3.0, and using a Python script to try to change a property of a DTML document, using a call like this:
doc.manage_changeProperties({"foo":bar}) # doc, "foo" and bar are just examples
I receive the following error:
Error Type: KeyError Error Value: manage_page_header This is a weakness in "manage_changeProperties". Put it into the Collector:
after "manage_changeProperties" almost completely did its work, it wants to return "manage_propertiedForm". This objects wants to use "manage_page_header". However, apparently, this object is not accessible via your "doc". As a workaround, you have two options: 1. pass the properties as keyword arguments: doc.manage_changeProperties(foo=bar) 2. catch ("dtml-try ... dtml-except") the exception and ignore it. Dieter