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] Containers and ZODB

2007-08-24 Thread Drew Smathers
I'm new to zope3 and have been writing an application backed by a relational database. I wanted to created a IContainer implementation which essential provides a view of items in the database, but there is no need for to make the container instances manageable through the ZMI or persistent in

Re: [Zope3-Users] Containers and ZODB

2007-08-24 Thread Drew Smathers
You don't really need to implement a container, you could just write a non persistent object (not derived from Persistent), and create a view on it. But the next problem is to be able to traverse to this object, since traversal starts from the root of the zodb. I thought a Container was a