Provide "Subscriber" base class

Bug #658127 reported by Christian Zagrodnick on 2010-10-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grok
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(…)

Christian Klinger (cklinger) wrote :

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

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.

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  Edit
Everyone can see this information.

Other bug subscribers