[Zope] manage_changeProperties self help

Dieter Maurer dieter@handshake.de
Fri, 15 Feb 2002 23:47:43 +0100


David Kyte writes:
 > ... "manage_changeProperties" does not work in Python Script ...
I just created the following Python Script "addToPi" in
folder "Test" (which has property "pi"):

       context.manage_changeProperties(pi=context.pi+1)
       return 'ok'

When activated through:

     http://localhost:8080/Test/addToPi

it works perfectly.


If it does not for you, then debugging "manage_changeProperties"
might be the right approach...

   You would add "import pdb; pdb.set_trace()" in
   "OFS.PropertyManager.manage_changeProperties",
   restart Zope, activate your failing script.

   Zope will stop in the debugger. You can single
   step and see what goes wrong.


Dieter