I find myself often having to define pure marker interfaces for each
class that I define, purely so I can register adapters for objects of
How do people feel about:
- being able to register an adapter as follows:
..in addition to the normal registration for interfaces.
- be able to adapt objects based on their class if no interfaces match:
class MyClass: pass
obj = MyClass()
I'm expecting people to say "NO!" very loudly, but I'm interested in the
real reasons for why this is bad.
Having to define interfaces purely so an adapter can be registered seems
tortological to me...
Simplistix - Content Management, Zope & Python Consulting
Zope3-dev mailing list