RE: [Zope] Confera "talkback" buttons - is this correct?
Speaking of which, has anybody tried using Confera from within a ZClass? It would be much more elegant that was Cees describes. Question being: Would Confera store its messages in the instance, or in the class?
-- Alexander Staubo
You would need to arrange for your ZClass to create a new Confera _instance_ in your new object instance at construction time. If you plopped a Confera instance into the actual ZClass, that Confera instance would be shared by all instances of that ZClass - this would be the case for _all_ mutable objects, exactly like in python. For example, to create an object where each instance has its own list attribute (mutable object) in Python, you would do: class foo: def __init__(self): self.data=[] You would _not_ do: class foo: data=[] ...because all foo instances would share the same data list. Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
participants (1)
-
Brian Lloyd