changing properties of a zclass
hello, maybe this is a too simple question, but I don't know what to do anymore. I have a Zclass called "Dokument" and I have an Instance called "Dok" in a folder. In the same folder, there is a DTML-Document, from where I call an external python-method. The Zclass has the properties "author" and "version". What I want, is to change the properties of the Instance "Dok" with the python-method. I want to do it with the following code: self = getattr(self, "Dok") self.manage_changeProperties(Author = 'Bill Gates', Version = '400th beta') The method has no error, that is, it does not crash, when it is called. But the properties are not changed... and I am going mad, slowly but surely! Does anybody have a idea, what went wrong???? Thank you very much. Markus
+----[ Markus Jais ]--------------------------------------------- | hello, | [snip] | The method has no error, that is, it does not crash, when it is called. | But the properties are not changed... and I am going mad, slowly but | surely! For an interesting side-effect delete the property from the property sheet :-) You code will start working (kind of). | Does anybody have a idea, what went wrong???? | Thank you very much. I'm certain it's a bug. I submitted an item to the collector about this a few weeks ago... Zope Bug: ZClass Properties defined on Property Sheets can not be overridden in ... Submitted: 1999/09/17 * * * This item is under review * * * At least I don't think you're doing anything wrong :-) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | Milton ACN: 082 081 472 | M:+61 416 022 411 |72 Col .Sig PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|Specialist
participants (2)
-
Andrew Kenneth Milton -
Markus Jais