Provide "Subscriber" base class
Bug #658127 reported by
Christian Zagrodnick
on 2010-10-11
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 : | #1 |
Christian Zagrodnick (zagy) wrote : | #2 |
For instance I want to write a z3c.traverser.
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.
Jan Wijbrand Kolman (janwijbrand) wrote : | #3 |
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.
Christian can you explain why you want it? What are the advantages of it?