예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
 def create_news(cls, watcher, text):
     n = cls.objects.create(watcher=watcher, type=cls.NEWS, text=text)
     EmailService.process_notif(cls, n)