Provide "Subscriber" base class

Bug #658127 reported by Christian Zagrodnick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grok
Fix Released
Undecided
Unassigned

Bug Description

Subscribers can only be created with the @subscribe deswcriptor. It would be nice to also be able to create subscriber classes like:

class MySub(Subscriber):

    provides(…)
    adapts(…)

Revision history for this message
Christian Klinger (cklinger) wrote :

Christian can you explain why you want it? What are the advantages of it?

Revision history for this message
Christian Zagrodnick (zagy) wrote :

For instance I want to write a z3c.traverser.interfaces.IPluggableTraverser.

That's a class which is registered as a subscriber. I know I could write a specialized grokker for that, but it seems like a generic pattern to create subscribers which are classes.

Revision history for this message
Jan Wijbrand Kolman (janwijbrand) wrote :

i think this is implemented now as Subscription (and MultiSubscription) components in grokcore.component.

Changed in grok:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.