Re: [Zope3-Users] Adapting or monkey patching?

2007-09-13 Thread Drew Smathers
Currently I have a adapter that subclasses OFS.SimpleItem.Item and re-implements the raise_standardErrorMessage method with my line of code that sends the event. I have know idea what OFS is, but what you're describing isn't an adapter at all. I would try writing a real adapter like: class

[Zope3-Users] Adapting or monkey patching?

2007-09-12 Thread Fernando Correa Neto
Hello everyone. Since there's no default adapter for OFS.interfaces.IItem, I was wondering the best approach to patch/adapt OFS.SimpleItem.Item raise_standardErrorMessage method so it sends an event upon errors. Currently I have a adapter that subclasses OFS.SimpleItem.Item and re-implements the