All pastes #2102333 Raw Edit

Anonymous

public text v1 · immutable
#2102333 ·published 2012-01-12 00:09 UTC
rendered paste body

class TakeBountyNotification(Notifications):
    email = Email(Template('take_bounty.html'), 
            String('{{ transaction.buyer.name }} wants to drive!'))
    dashboard = Dashboard(Template('take_bounty.html'))


class TakeRideNotification(NewNotification):
    email = Email(Template('take_ride.html'), 
            Template('take_ride_subject.html'))
    dashboard = Dashboard(Template('take_ride.html'))


class PurchaseBountyNotification(NewNotification):
    email = Email(Template('purchase_bounty.html'), 
            String('Your bounty has been fulfilled!'))
    dashboard = Dashboard(Template('purchase_bounty.html'))


class PurchaseRideNotification(NewNotification):
    email = Email(Template('purchase_ride.html'), 
            String('Your ride has been fulfilled!'))
    dashboard = Dashboard(Template('purchase_ride.html'))


class DeclineBountyNotification(NewNotification):
    email = Email(Template('decline_bounty.html'), 
            String('Declined bounty'))
    dashboard = Dashboard(Template('decline_bounty.html'))


class DeclineRideNotification(NewNotification):
    email = Email(Template('take_bounty.html'), 
            Template('take_bounty_subject.html'))
    dashboard = Dashboard(Template('decline_ride.html'))


class AcceptBountyNotification(NewNotification):
    email = Email(Template('accept_bounty.html'), 
            String('Your bounty has been accepted'))
    dashboard = Dashboard(Template('accept_bounty.html'))


class AcceptRideNotification(NewNotification):
    email = Email(Template('accept_ride.html'), 
            String('Your ride has been accepted'))
    dashboard = Dashboard(Template('accept_ride.html'))


class ReceiptNotification(NewNotification):
    pass