Great to see you've got it working! -----Original Message----- From: Magnus Heino magnus.heino@rivermen.se Sent: Wed, 23 May 2001 22:44:22 +0100 To: tmclaughlin@visto.com Subject: Re: Fwd: ZClassEvents -------------------
Magnus, Did you get this working?
Yes. Sorry that you didnt get any response. I have successfully used it in two projects. I'll write an howto on monday and put up on zope.org Thanks for a great product and great support! /Magnus
Tim
-----Original Message----- From: Tim McLaughlin tmclaughlin@visto.com Sent: Fri, 18 May 2001 13:50:06 -0700 To: magnus.heino@rivermen.se CC: zope-dev@zope.org Subject: Re: ZClassEvents
Sorry Magnus,
the self param is supposed to be bound in (Zope) python scripts. So
there are actually only the last three (propertysheet_id, changes, REQUEST) and self is actually the container in a ZClass. I usually rebind the container to a variable named self (in a ZClass) just to make Python scripts a little more like Python.
So in short, get rid of the self parameter as a parameter. It is
actually the container. An external method however, would still require the self param. Sorry for any confusion.
If you get the hang of ZClassEvents can you write up a Howto? If
not, I'll do one later.
Cheers, --Tim McLaughlin
-----Original Message----- From: Magnus Heino (Rivermen) magnus.heino@rivermen.se Sent: Fri, 18 May 2001 08:35:21 +0200 To: tmclaughlin@visto.com Subject: ZClassEvents
Hi Tim,
I just tried your ZClassEvents and ran into some problems.
I installed it, added a python script like this to an exisitng
ZClass;
onPropertyChange(self, propertysheet_id, changes, REQUEST)
self.reindex_all()
but when I edit the properties of this zclass instance, I get an
error that
only 3 parameters were passed, not 4 as expected.
I then tried to remove self, and used context.reindex_all, but then I got an error on aq_base
How should it be used?
Thanks!
/Magnus
______________________________________________________________________ _____
Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
______________________________________________________________________ _____
Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
-- /Magnus Heino ___________________________________________________________________________ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
participants (1)
-
Tim McLaughlin