brutasse/django-push — pull request #9 by tejinderss (2013-04-29 06:22:26+00:00)
Title: Switching to class based pubsubcallback.

Use case:
I am building an app where I need 2 different hub subscriptions like from youtube and instragram. Now the issue is I have no way to distinguish between which update came from where. In order to do that I would have to do hacks like sniffing the feed came with POST request. Previously I was hooking to update signal to update the content of the feed. But that signal would not tell me which feed came from where. With class based view, I can subclass the PubSubCallback for both youtube and instagram and subclass feed_update method accordingly. Like YoutubeCallback(pub subclass): def feed_update(subscription, feed), now I know that feed belongs to youtube. Does this sound ok?