Re: [Zope-dev] Adapter for class with slots

2009-12-15 Thread Wolfgang Schnerring
* Wolfgang Schnerring [2009-12-07 08:53]: >>> The minimal reproduction recipe to see the error is this: >>> >>> class Slotted(object): >>> __slots__ = ('__provides__') >>> >>> zope.component.provideAdapter( >>> lambda x: True, (Slotted,), zope.interface.Interface) > I'll

Re: [Zope-dev] Adapter for class with slots

2009-12-06 Thread Wolfgang Schnerring
* Shane Hathaway [2009-12-03 11:44]: > Wolfgang Schnerring wrote: >> The minimal reproduction recipe to see the error is this: >> >> class Slotted(object): >> __slots__ = ('__provides__') >> >> zope.component.provideAdapter( >> lambda x: True, (Slotted,), zope.interface.I

Re: [Zope-dev] Adapter for class with slots

2009-12-03 Thread Shane Hathaway
Wolfgang Schnerring wrote: > The minimal reproduction recipe to see the error is this: > > class Slotted(object): > __slots__ = ('__provides__') > > zope.component.provideAdapter( > lambda x: True, (Slotted,), zope.interface.Interface) > > Which will raise > File > "/h

[Zope-dev] Adapter for class with slots

2009-12-03 Thread Wolfgang Schnerring
Hello, I've stumbled upon a wrinkly edge case (bug?) in zope.component. What I was trying to do is register an AbsoluteURL adapter for lovely.remotetask.processor.ProcessorRequest objects, and since they don't implement a specific interface, I thought I'd use the class itself as the required comp