Great to see you've got it working!


-----Original Message-----
From:    Magnus Heino [EMAIL PROTECTED]
Sent:    Wed, 23 May 2001 22:44:22 +0100
To:      [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
> Sent:    Fri, 18 May 2001 13:50:06 -0700
> To:      [EMAIL PROTECTED]
> CC:      [EMAIL PROTECTED]
> 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) [EMAIL PROTECTED]
> Sent:    Fri, 18 May 2001 08:35:21 +0200
> To:      [EMAIL PROTECTED]
> 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.


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to