Beispiel #1
0
 def create_ask_borrow(cls, watcher, target, movie):
     n = cls.objects.create(watcher=watcher, type=cls.ASK_BORROW, target=target,movie=movie)
     EmailService.process_notif(cls, n)
Beispiel #2
0
 def create_ask_review(cls, watcher, target, movie):
     n = cls.objects.create(watcher=watcher, type=cls.ASK_REVIEW, target=target, movie=movie)
     EmailService.process_notif(cls, n)
Beispiel #3
0
 def create_suggestion(cls, watcher, target, movie):
     n = notif = cls.objects.create(watcher=watcher, type=cls.SUGGESTION, target=target, movie=movie)
     EmailService.process_notif(cls, n)
Beispiel #4
0
 def create_ask_suggestion(cls, watcher, target):
     n = cls.objects.create(watcher=watcher, type=cls.ASK_SUGGESTION, target=target)
     EmailService.process_notif(cls, n)
Beispiel #5
0
 def create_news(cls, watcher, text):
     n = cls.objects.create(watcher=watcher, type=cls.NEWS, text=text)
     EmailService.process_notif(cls, n)