RE: [Zope] Need help trying to add objects to a Object Manager ZC lass
-----Original Message----- From: Bill Anderson [mailto:bill.anderson@libc.org] Sent: Wednesday, October 13, 1999 10:33 To: zope@zope.org Cc: Jay, Dylan Subject: Re: [Zope] Need help trying to add objects to a Object Manager ZClass
"Jay, Dylan" wrote:
I'm at my wits end with this one. ZClasses are driving me crazy.
I want to have an instance of a ZClass for one Confera
Topic in it. I
subclass Object Manager to do this. I added Confera Topic to the list of allowable subobjects. When I try to add a Confera Topic however it adds it to the parent. In fact it doesn't even do that. This ZClass lives in another ZClass and the Confera Topic is added in the folder above the ZClass heirachy.
I'm thinking that it is something to do with permissions but I'm at a loss. Pasting a Topic into an instance works but it just won't add it there.
Can anyone help?
You need to inherit from Folder as well. This one bit me last week. :-|
This doesn't work. Can anyone tell me why this might be happening????? I'm really starting to think ZClasses are just a complete waste of time.
On Wed, 13 Oct 1999, Jay, Dylan wrote:
You need to inherit from Folder as well. This one bit me last week. :-|
This doesn't work. Can anyone tell me why this might be happening????? I'm really starting to think ZClasses are just a complete waste of time.
I think what is happening is the following: Some objects think of themselves as 'methods'. If you ask them for this(), they will report their container object. Other objects, like folder, report themselves when asked for this(). If you are inheriting from multiple baseclasses, the order will be significant. Try making folder the first object in the list you inherit from. If this doesn't work, try making it the last (I don't know if the top of the list or the bottom will take precedance). ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
participants (2)
-
Jay, Dylan -
Stuart 'Zen' Bishop