yell

User notification library with pluggable backends
Download

yell Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Alen Mujezinovic
  • Publisher web site:
  • http://caffeinehit.com

yell Tags


yell Description

yell is not a notification storage or delivery backend but a set of APIs that make it easy to add your own delivery mechanisms.Using yelling decoratorsfrom yell.decorators import yelling@yelling(name = 'buffalo')def buffalo_printer(message): print message@yelling(name = 'buffalo')def buffalo_saver(message): save(message)yell("buffalo", _("Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo"))Using yelling classesfrom yell import Yell, yellclass Buffalo(Yell): name = "buffalo" message = _("Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo") def yell(self, *args, **kwargs): print self.messageclass BuffaloEmail(Buffalo): def yell(self, *args, **kwargs): send_mail("Buffalo", self.message, 'buffalo@example.com', )class BuffaloDatabase(Buffalo): def yell(self, *args, **kwargs): BuffaloModel.objects.create(user = kwargs.get('user'))# The default behaviour is to use every notification backend with the same# nameyell("buffalo", user = User.objects.get(id=1))# Only send emailsyell("buffalo", user = User.objects.get(id=1), backends = )Product's homepage


yell Related Software