Re: [Zope3-Users] Dynamic __providedBy__

2008-02-15 Thread Jim Fulton
On Feb 14, 2008, at 6:22 PM, Martin Aspeli wrote: Hi! I may have a use case where I need an instance to provide marker interfaces dynamically. That is, under certain conditions I want the type to say it provides a particular marker interface, and otherwise it doesn't. It still needs to supp

Re: [Zope3-Users] Dynamic __providedBy__

2008-02-14 Thread Rudá Porto Filgueiras
I'm was curious and try to dig into.. In zope.interfaces.declarations.py __providedBy__ is an instance of objectSpecificationDescriptor implemented in C and there is one Python version too in ObjectSpecificationDescriptorPy. It's a descriptor that try to acess __provides__ of instance and class o