Hi All, I've created a ZClass with some properties. Hooray for me. How can I change these values programatically? The only example I've ever seen of manage_changeProperties in within a method of the propertysheet as such: propertysheets.myPropertySheet.manage_changeProperties(REQUEST) I'd like to be able in python to do something like this here.myObject.setProperty1(myValue) I'm not entirely sure how to do this, although I anticipate I might need to wrap this through a few levels, eg. a method on the object talking to a method on the properysheet. And, like always, documentation is nonexistent. If it isn't nonexistent, please direct me to where I could find the resources to solve this quandry. Thanks in advance, Ed
Edward Pollard writes:
I've created a ZClass with some properties. Hooray for me. The properties live in a property sheet, right?
Lets assume, it is called "PS" (just as an example).
How can I change these values programatically? The only example I've ever seen of manage_changeProperties in within a method of the propertysheet as such:
propertysheets.myPropertySheet.manage_changeProperties(REQUEST)
I'd like to be able in python to do something like this
here.myObject.setProperty1(myValue) Try:
here.myObject.propertysheets.PS.manage_changeProperties(prop1=val1) "PS" above is the name of your property sheet. Dieter
participants (2)
-
Dieter Maurer -
Edward Pollard