15 Feb
2002
15 Feb
'02
10:47 p.m.
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