Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed unused file; cleaned up EmailAdmin a bit

  • Loading branch information...
commit f09dfb366597819a2a95a1838b7cdfc3643ac2d6 1 parent c7dc8c0
@sherzberg sherzberg authored
Showing with 1 addition and 32 deletions.
  1. +1 −1  emailer/admin.py
  2. +0 −31 emailer/utils/emailprocessors.py
View
2  emailer/admin.py
@@ -9,7 +9,7 @@
from emailer.models import *
class EmailAdmin(admin.ModelAdmin):
- list_display = ('email_blast', 'to_address', 'status', 'opened', 'get_tracking_png_url', 'merge_data',)
+ list_display = ('email_blast', 'to_address', 'status', 'opened', 'merge_data',)
list_filter = ('status',)
class EmailBlastAdminForm(forms.ModelForm):
View
31 emailer/utils/emailprocessors.py
@@ -1,31 +0,0 @@
-
-
-from django.conf import settings
-import datetime
-
-from emailer.models import Email
-
-class IEmailProcessor():
-
- def prepare_emails(self):
- raise NotImplementedError
-
- def process_emails(self):
- raise NotImplementedError
-
-class SimpleProcessor(IEmailProcessor):
-
- def prepare_emails(self, blast=None):
- if blast:
- self.emails_to_process = Email.objects.filter(status=Email.STATUS_PREPARED, email_blast=blast)
- else:
- self.emails_to_process = Email.objects.filter(status=Email.STATUS_PREPARED)
-
- return len(self.emails_to_process)
-
- def process_emails(self):
- for email in self.emails_to_process:
- status = email.send()
-
- return len(self.emails_to_process)
-
Please sign in to comment.
Something went wrong with that request. Please try again.