Skip to content
Browse files

removing setup tools build files

  • Loading branch information...
1 parent d9787f2 commit 0c8b3d2179c2bad39f3e7147a2da2f7343d94501 @sherzberg sherzberg committed Nov 22, 2011
Showing with 0 additions and 5,248 deletions.
  1. 0 build/lib.linux-i686-2.6/emailer/__init__.py
  2. +0 −57 build/lib.linux-i686-2.6/emailer/admin.py
  3. +0 −45 build/lib.linux-i686-2.6/emailer/fields.py
  4. +0 −491 build/lib.linux-i686-2.6/emailer/html2text.py
  5. 0 build/lib.linux-i686-2.6/emailer/management/__init__.py
  6. 0 build/lib.linux-i686-2.6/emailer/management/commands/__init__.py
  7. +0 −20 build/lib.linux-i686-2.6/emailer/management/commands/process_emails.py
  8. +0 −23 build/lib.linux-i686-2.6/emailer/management/commands/testemail.py
  9. +0 −22 build/lib.linux-i686-2.6/emailer/management/commands/testemail2.py
  10. +0 −120 build/lib.linux-i686-2.6/emailer/migrations/0001_initial.py
  11. +0 −65 build/lib.linux-i686-2.6/emailer/migrations/0002_auto__del_unique_emailtemplate_name.py
  12. +0 −114 build/lib.linux-i686-2.6/emailer/migrations/0003_auto__add_field_emaillist_query_sql.py
  13. +0 −104 build/lib.linux-i686-2.6/emailer/migrations/0004_auto__add_field_emaillist_raw_emails.py
  14. +0 −122 ...686-2.6/emailer/migrations/0005_auto__add_field_emaillist_is_oneoff__del_field_emailblast_type.py
  15. +0 −104 build/lib.linux-i686-2.6/emailer/migrations/0006_setis_oneoff.py
  16. +0 −145 build/lib.linux-i686-2.6/emailer/migrations/0007_blast_rename_data_cols.py
  17. +0 −118 ...emailer/migrations/0008_auto__add_field_emaillist_data_raw_json__chg_field_emailblast_name__de.py
  18. +0 −103 build/lib.linux-i686-2.6/emailer/migrations/0009_emaillist_prepend_name.py
  19. +0 −115 build/lib.linux-i686-2.6/emailer/migrations/0010_convert_merge_data.py
  20. +0 −106 build/lib.linux-i686-2.6/emailer/migrations/0011_auto__chg_field_email_merge_data.py
  21. +0 −112 build/lib.linux-i686-2.6/emailer/migrations/0012_auto.py
  22. 0 build/lib.linux-i686-2.6/emailer/migrations/__init__.py
  23. +0 −298 build/lib.linux-i686-2.6/emailer/models.py
  24. +0 −10 build/lib.linux-i686-2.6/emailer/urls.py
  25. +0 −65 build/lib.linux-i686-2.6/emailer/utils/__init__.py
  26. +0 −33 build/lib.linux-i686-2.6/emailer/views.py
  27. 0 build/lib.linux-i686-2.6/testsite/__init__.py
  28. +0 −11 build/lib.linux-i686-2.6/testsite/manage.py
  29. +0 −130 build/lib.linux-i686-2.6/testsite/settings.py
  30. 0 build/lib.linux-i686-2.6/testsite/testapp/__init__.py
  31. +0 −11 build/lib.linux-i686-2.6/testsite/testapp/models.py
  32. +0 −23 build/lib.linux-i686-2.6/testsite/testapp/tests.py
  33. +0 −1 build/lib.linux-i686-2.6/testsite/testapp/views.py
  34. +0 −19 build/lib.linux-i686-2.6/testsite/urls.py
  35. 0 build/lib.linux-x86_64-2.7/emailer/__init__.py
  36. +0 −57 build/lib.linux-x86_64-2.7/emailer/admin.py
  37. +0 −45 build/lib.linux-x86_64-2.7/emailer/fields.py
  38. +0 −491 build/lib.linux-x86_64-2.7/emailer/html2text.py
  39. 0 build/lib.linux-x86_64-2.7/emailer/management/__init__.py
  40. 0 build/lib.linux-x86_64-2.7/emailer/management/commands/__init__.py
  41. +0 −20 build/lib.linux-x86_64-2.7/emailer/management/commands/process_emails.py
  42. +0 −23 build/lib.linux-x86_64-2.7/emailer/management/commands/testemail.py
  43. +0 −22 build/lib.linux-x86_64-2.7/emailer/management/commands/testemail2.py
  44. +0 −120 build/lib.linux-x86_64-2.7/emailer/migrations/0001_initial.py
  45. +0 −65 build/lib.linux-x86_64-2.7/emailer/migrations/0002_auto__del_unique_emailtemplate_name.py
  46. +0 −114 build/lib.linux-x86_64-2.7/emailer/migrations/0003_auto__add_field_emaillist_query_sql.py
  47. +0 −104 build/lib.linux-x86_64-2.7/emailer/migrations/0004_auto__add_field_emaillist_raw_emails.py
  48. +0 −122 ..._64-2.7/emailer/migrations/0005_auto__add_field_emaillist_is_oneoff__del_field_emailblast_type.py
  49. +0 −104 build/lib.linux-x86_64-2.7/emailer/migrations/0006_setis_oneoff.py
  50. +0 −145 build/lib.linux-x86_64-2.7/emailer/migrations/0007_blast_rename_data_cols.py
  51. +0 −118 ...emailer/migrations/0008_auto__add_field_emaillist_data_raw_json__chg_field_emailblast_name__de.py
  52. +0 −103 build/lib.linux-x86_64-2.7/emailer/migrations/0009_emaillist_prepend_name.py
  53. +0 −115 build/lib.linux-x86_64-2.7/emailer/migrations/0010_convert_merge_data.py
  54. +0 −106 build/lib.linux-x86_64-2.7/emailer/migrations/0011_auto__chg_field_email_merge_data.py
  55. +0 −112 build/lib.linux-x86_64-2.7/emailer/migrations/0012_auto.py
  56. 0 build/lib.linux-x86_64-2.7/emailer/migrations/__init__.py
  57. +0 −298 build/lib.linux-x86_64-2.7/emailer/models.py
  58. +0 −10 build/lib.linux-x86_64-2.7/emailer/urls.py
  59. +0 −65 build/lib.linux-x86_64-2.7/emailer/utils/__init__.py
  60. +0 −33 build/lib.linux-x86_64-2.7/emailer/views.py
  61. 0 build/lib.linux-x86_64-2.7/testsite/__init__.py
  62. +0 −11 build/lib.linux-x86_64-2.7/testsite/manage.py
  63. +0 −130 build/lib.linux-x86_64-2.7/testsite/settings.py
  64. 0 build/lib.linux-x86_64-2.7/testsite/testapp/__init__.py
  65. +0 −11 build/lib.linux-x86_64-2.7/testsite/testapp/models.py
  66. +0 −23 build/lib.linux-x86_64-2.7/testsite/testapp/tests.py
  67. +0 −1 build/lib.linux-x86_64-2.7/testsite/testapp/views.py
  68. +0 −21 build/lib.linux-x86_64-2.7/testsite/urls.py
  69. BIN dist/django_emailer-trunk-py2.6.egg
  70. BIN dist/django_emailer-trunk-py2.7.egg
  71. +0 −29 django_emailer.egg-info/PKG-INFO
  72. +0 −40 django_emailer.egg-info/SOURCES.txt
  73. +0 −1 django_emailer.egg-info/dependency_links.txt
  74. +0 −2 django_emailer.egg-info/top_level.txt
View
0 build/lib.linux-i686-2.6/emailer/__init__.py
No changes.
View
57 build/lib.linux-i686-2.6/emailer/admin.py
@@ -1,57 +0,0 @@
-from django.contrib import admin
-from django import forms
-
-try:
- from tinymce.widgets import TinyMCE as HtmlWidget
-except:
- from django.forms import Textarea as HtmlWidget
-
-from emailer.models import *
-
-class EmailAdmin(admin.ModelAdmin):
- list_display = ('email_blast', 'to_address', 'status', 'opened', 'merge_data',)
- list_filter = ('status',)
-
-class EmailBlastAdminForm(forms.ModelForm):
- html = forms.CharField(widget=HtmlWidget(attrs={'cols': 80, 'rows': 40}))
-
- class Meta:
- model = EmailBlast
-
-class EmailBlastAdmin(admin.ModelAdmin):
- list_display = ('name', 'send_after',)
- list_filter = ('send_after',)
- form = EmailBlastAdminForm
-
-class EmailTemplateAdminForm(forms.ModelForm):
- name = forms.CharField()
- description = forms.CharField(required=False,widget=forms.Textarea(attrs={'cols': 80, 'rows': 4}))
- html = forms.CharField(widget=HtmlWidget(attrs={'cols': 80, 'rows': 40}))
-
-class EmailTemplateAdmin(admin.ModelAdmin):
- list_display = ('name', 'date_created',)
- form = EmailTemplateAdminForm
-
-class EmailListAdmin(admin.ModelAdmin):
- list_display = ('name', 'type', 'date_created', 'preview_emails', 'merge_fields',)
- list_filter = ('type', 'is_oneoff',)
-
- def changelist_view(self, request, extra_context=None):
- '''
- This override, by default hides, the one off lists that are
- generated by one off emails which are currently necessary to have
- '''
- if not request.GET.has_key('is_oneoff__exact'):
-
- q = request.GET.copy()
- q['is_oneoff__exact'] = '0'
- request.GET = q
- request.META['QUERY_STRING'] = request.GET.urlencode()
- return super(EmailListAdmin,self).changelist_view(request, extra_context=extra_context)
-
-
-admin.site.register(EmailTemplate, EmailTemplateAdmin)
-admin.site.register(Email, EmailAdmin)
-admin.site.register(EmailBlast, EmailBlastAdmin)
-admin.site.register(EmailList, EmailListAdmin)
-#admin.site.register(EmailList)
View
45 build/lib.linux-i686-2.6/emailer/fields.py
@@ -1,45 +0,0 @@
-
-from django.db import models
-
-try:
- import cPickle as pickle
-except ImportError:
- import pickle
-
-
-
-
-class DictionaryField(models.Field):
- '''
- Field that represents a dict object. Borrowed from django-geo
- '''
- __metaclass__ = models.SubfieldBase
-
- def to_python(self, value):
- if isinstance(value, dict):
- return value
- else:
- if not value:
- return value
- return pickle.loads(str(value))
-
- def get_db_prep_save(self, value):
- if value is not None and not isinstance(value, basestring):
- if isinstance(value, dict):
- value = pickle.dumps(value)
- else:
- raise TypeError('This field can only store dictionaries. Use PickledObjectField to store a wide(r) range of data types.')
- return value
-
- def get_internal_type(self):
- return 'TextField'
-
- def get_db_prep_lookup(self, lookup_type, value):
- if lookup_type == 'exact':
- value = self.get_db_prep_save(value)
- return super(DictionaryField, self).get_db_prep_lookup(lookup_type, value)
- elif lookup_type == 'in':
- value = [self.get_db_prep_save(v) for v in value]
- return super(DictionaryField, self).get_db_prep_lookup(lookup_type, value)
- else:
- raise TypeError('Lookup type %s is not supported.' % lookup_type)
View
491 build/lib.linux-i686-2.6/emailer/html2text.py
@@ -1,491 +0,0 @@
-#!/usr/bin/env python
-"""html2text: Turn HTML into equivalent Markdown-structured text."""
-__version__ = "3.02"
-__author__ = "Aaron Swartz (me@aaronsw.com)"
-__copyright__ = "(C) 2004-2008 Aaron Swartz. GNU GPL 3."
-__contributors__ = ["Martin 'Joey' Schulze", "Ricardo Reyes", "Kevin Jay North"]
-
-# TODO:
-# Support decoded entities with unifiable.
-
-try:
- True
-except NameError:
- setattr(__builtins__, 'True', 1)
- setattr(__builtins__, 'False', 0)
-
-def has_key(x, y):
- if hasattr(x, 'has_key'): return x.has_key(y)
- else: return y in x
-
-try:
- import htmlentitydefs
- import urlparse
- import HTMLParser
-except ImportError: #Python3
- import html.entities as htmlentitydefs
- import urllib.parse as urlparse
- import html.parser as HTMLParser
-try: #Python3
- import urllib.request as urllib
-except:
- import urllib
-import optparse, re, sys, codecs, types
-
-try: from textwrap import wrap
-except: pass
-
-# Use Unicode characters instead of their ascii psuedo-replacements
-UNICODE_SNOB = 0
-
-# Put the links after each paragraph instead of at the end.
-LINKS_EACH_PARAGRAPH = 0
-
-# Wrap long lines at position. 0 for no wrapping. (Requires Python 2.3.)
-BODY_WIDTH = 78
-
-# Don't show internal links (href="#local-anchor") -- corresponding link targets
-# won't be visible in the plain text file anyway.
-SKIP_INTERNAL_LINKS = False
-
-### Entity Nonsense ###
-
-def name2cp(k):
- if k == 'apos': return ord("'")
- if hasattr(htmlentitydefs, "name2codepoint"): # requires Python 2.3
- return htmlentitydefs.name2codepoint[k]
- else:
- k = htmlentitydefs.entitydefs[k]
- if k.startswith("&#") and k.endswith(";"): return int(k[2:-1]) # not in latin-1
- return ord(codecs.latin_1_decode(k)[0])
-
-unifiable = {'rsquo':"'", 'lsquo':"'", 'rdquo':'"', 'ldquo':'"',
-'copy':'(C)', 'mdash':'--', 'nbsp':' ', 'rarr':'->', 'larr':'<-', 'middot':'*',
-'ndash':'-', 'oelig':'oe', 'aelig':'ae',
-'agrave':'a', 'aacute':'a', 'acirc':'a', 'atilde':'a', 'auml':'a', 'aring':'a',
-'egrave':'e', 'eacute':'e', 'ecirc':'e', 'euml':'e',
-'igrave':'i', 'iacute':'i', 'icirc':'i', 'iuml':'i',
-'ograve':'o', 'oacute':'o', 'ocirc':'o', 'otilde':'o', 'ouml':'o',
-'ugrave':'u', 'uacute':'u', 'ucirc':'u', 'uuml':'u'}
-
-unifiable_n = {}
-
-for k in unifiable.keys():
- unifiable_n[name2cp(k)] = unifiable[k]
-
-def charref(name):
- if name[0] in ['x','X']:
- c = int(name[1:], 16)
- else:
- c = int(name)
-
- if not UNICODE_SNOB and c in unifiable_n.keys():
- return unifiable_n[c]
- else:
- try:
- return unichr(c)
- except NameError: #Python3
- return chr(c)
-
-def entityref(c):
- if not UNICODE_SNOB and c in unifiable.keys():
- return unifiable[c]
- else:
- try: name2cp(c)
- except KeyError: return "&" + c + ';'
- else:
- try:
- return unichr(name2cp(c))
- except NameError: #Python3
- return chr(name2cp(c))
-
-def replaceEntities(s):
- s = s.group(1)
- if s[0] == "#":
- return charref(s[1:])
- else: return entityref(s)
-
-r_unescape = re.compile(r"&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));")
-def unescape(s):
- return r_unescape.sub(replaceEntities, s)
-
-### End Entity Nonsense ###
-
-def onlywhite(line):
- """Return true if the line does only consist of whitespace characters."""
- for c in line:
- if c is not ' ' and c is not ' ':
- return c is ' '
- return line
-
-def optwrap(text):
- """Wrap all paragraphs in the provided text."""
- if not BODY_WIDTH:
- return text
-
- assert wrap, "Requires Python 2.3."
- result = ''
- newlines = 0
- for para in text.split("\n"):
- if len(para) > 0:
- if para[0] != ' ' and para[0] != '-' and para[0] != '*':
- for line in wrap(para, BODY_WIDTH):
- result += line + "\n"
- result += "\n"
- newlines = 2
- else:
- if not onlywhite(para):
- result += para + "\n"
- newlines = 1
- else:
- if newlines < 2:
- result += "\n"
- newlines += 1
- return result
-
-def hn(tag):
- if tag[0] == 'h' and len(tag) == 2:
- try:
- n = int(tag[1])
- if n in range(1, 10): return n
- except ValueError: return 0
-
-class _html2text(HTMLParser.HTMLParser):
- def __init__(self, out=None, baseurl=''):
- HTMLParser.HTMLParser.__init__(self)
-
- if out is None: self.out = self.outtextf
- else: self.out = out
- try:
- self.outtext = unicode()
- except NameError: # Python3
- self.outtext = str()
- self.quiet = 0
- self.p_p = 0
- self.outcount = 0
- self.start = 1
- self.space = 0
- self.a = []
- self.astack = []
- self.acount = 0
- self.list = []
- self.blockquote = 0
- self.pre = 0
- self.startpre = 0
- self.lastWasNL = 0
- self.abbr_title = None # current abbreviation definition
- self.abbr_data = None # last inner HTML (for abbr being defined)
- self.abbr_list = {} # stack of abbreviations to write later
- self.baseurl = baseurl
-
- def outtextf(self, s):
- self.outtext += s
-
- def close(self):
- HTMLParser.HTMLParser.close(self)
-
- self.pbr()
- self.o('', 0, 'end')
-
- return self.outtext
-
- def handle_charref(self, c):
- self.o(charref(c))
-
- def handle_entityref(self, c):
- self.o(entityref(c))
-
- def handle_starttag(self, tag, attrs):
- self.handle_tag(tag, attrs, 1)
-
- def handle_endtag(self, tag):
- self.handle_tag(tag, None, 0)
-
- def previousIndex(self, attrs):
- """ returns the index of certain set of attributes (of a link) in the
- self.a list
-
- If the set of attributes is not found, returns None
- """
- if not has_key(attrs, 'href'): return None
-
- i = -1
- for a in self.a:
- i += 1
- match = 0
-
- if has_key(a, 'href') and a['href'] == attrs['href']:
- if has_key(a, 'title') or has_key(attrs, 'title'):
- if (has_key(a, 'title') and has_key(attrs, 'title') and
- a['title'] == attrs['title']):
- match = True
- else:
- match = True
-
- if match: return i
-
- def handle_tag(self, tag, attrs, start):
- #attrs = fixattrs(attrs)
-
- if hn(tag):
- self.p()
- if start: self.o(hn(tag)*"#" + ' ')
-
- if tag in ['p', 'div']: self.p()
-
- if tag == "br" and start: self.o(" \n")
-
- if tag == "hr" and start:
- self.p()
- self.o("* * *")
- self.p()
-
- if tag in ["head", "style", 'script']:
- if start: self.quiet += 1
- else: self.quiet -= 1
-
- if tag in ["body"]:
- self.quiet = 0 # sites like 9rules.com never close <head>
-
- if tag == "blockquote":
- if start:
- self.p(); self.o('> ', 0, 1); self.start = 1
- self.blockquote += 1
- else:
- self.blockquote -= 1
- self.p()
-
- if tag in ['em', 'i', 'u']: self.o("_")
- if tag in ['strong', 'b']: self.o("**")
- if tag == "code" and not self.pre: self.o('`') #TODO: `` `this` ``
- if tag == "abbr":
- if start:
- attrsD = {}
- for (x, y) in attrs: attrsD[x] = y
- attrs = attrsD
-
- self.abbr_title = None
- self.abbr_data = ''
- if has_key(attrs, 'title'):
- self.abbr_title = attrs['title']
- else:
- if self.abbr_title != None:
- self.abbr_list[self.abbr_data] = self.abbr_title
- self.abbr_title = None
- self.abbr_data = ''
-
- if tag == "a":
- if start:
- attrsD = {}
- for (x, y) in attrs: attrsD[x] = y
- attrs = attrsD
- if has_key(attrs, 'href') and not (SKIP_INTERNAL_LINKS and attrs['href'].startswith('#')):
- self.astack.append(attrs)
- self.o("[")
- else:
- self.astack.append(None)
- else:
- if self.astack:
- a = self.astack.pop()
- if a:
- i = self.previousIndex(a)
- if i is not None:
- a = self.a[i]
- else:
- self.acount += 1
- a['count'] = self.acount
- a['outcount'] = self.outcount
- self.a.append(a)
- self.o("][" + str(a['count']) + "]")
-
- if tag == "img" and start:
- attrsD = {}
- for (x, y) in attrs: attrsD[x] = y
- attrs = attrsD
- if has_key(attrs, 'src'):
- attrs['href'] = attrs['src']
- alt = attrs.get('alt', '')
- i = self.previousIndex(attrs)
- if i is not None:
- attrs = self.a[i]
- else:
- self.acount += 1
- attrs['count'] = self.acount
- attrs['outcount'] = self.outcount
- self.a.append(attrs)
- self.o("![")
- self.o(alt)
- self.o("]["+ str(attrs['count']) +"]")
-
- if tag == 'dl' and start: self.p()
- if tag == 'dt' and not start: self.pbr()
- if tag == 'dd' and start: self.o(' ')
- if tag == 'dd' and not start: self.pbr()
-
- if tag in ["ol", "ul"]:
- if start:
- self.list.append({'name':tag, 'num':0})
- else:
- if self.list: self.list.pop()
-
- self.p()
-
- if tag == 'li':
- if start:
- self.pbr()
- if self.list: li = self.list[-1]
- else: li = {'name':'ul', 'num':0}
- self.o(" "*len(self.list)) #TODO: line up <ol><li>s > 9 correctly.
- if li['name'] == "ul": self.o("* ")
- elif li['name'] == "ol":
- li['num'] += 1
- self.o(str(li['num'])+". ")
- self.start = 1
- else:
- self.pbr()
-
- if tag in ["table", "tr"] and start: self.p()
- if tag == 'td': self.pbr()
-
- if tag == "pre":
- if start:
- self.startpre = 1
- self.pre = 1
- else:
- self.pre = 0
- self.p()
-
- def pbr(self):
- if self.p_p == 0: self.p_p = 1
-
- def p(self): self.p_p = 2
-
- def o(self, data, puredata=0, force=0):
- if self.abbr_data is not None: self.abbr_data += data
-
- if not self.quiet:
- if puredata and not self.pre:
- data = re.sub('\s+', ' ', data)
- if data and data[0] == ' ':
- self.space = 1
- data = data[1:]
- if not data and not force: return
-
- if self.startpre:
- #self.out(" :") #TODO: not output when already one there
- self.startpre = 0
-
- bq = (">" * self.blockquote)
- if not (force and data and data[0] == ">") and self.blockquote: bq += " "
-
- if self.pre:
- bq += " "
- data = data.replace("\n", "\n"+bq)
-
- if self.start:
- self.space = 0
- self.p_p = 0
- self.start = 0
-
- if force == 'end':
- # It's the end.
- self.p_p = 0
- self.out("\n")
- self.space = 0
-
-
- if self.p_p:
- self.out(('\n'+bq)*self.p_p)
- self.space = 0
-
- if self.space:
- if not self.lastWasNL: self.out(' ')
- self.space = 0
-
- if self.a and ((self.p_p == 2 and LINKS_EACH_PARAGRAPH) or force == "end"):
- if force == "end": self.out("\n")
-
- newa = []
- for link in self.a:
- if self.outcount > link['outcount']:
- self.out(" ["+ str(link['count']) +"]: " + urlparse.urljoin(self.baseurl, link['href']))
- if has_key(link, 'title'): self.out(" ("+link['title']+")")
- self.out("\n")
- else:
- newa.append(link)
-
- if self.a != newa: self.out("\n") # Don't need an extra line when nothing was done.
-
- self.a = newa
-
- if self.abbr_list and force == "end":
- for abbr, definition in self.abbr_list.items():
- self.out(" *[" + abbr + "]: " + definition + "\n")
-
- self.p_p = 0
- self.out(data)
- self.lastWasNL = data and data[-1] == '\n'
- self.outcount += 1
-
- def handle_data(self, data):
- if r'\/script>' in data: self.quiet -= 1
- self.o(data, 1)
-
- def unknown_decl(self, data): pass
-
-def wrapwrite(text):
- text = text.encode('utf-8')
- try: #Python3
- sys.stdout.buffer.write(text)
- except AttributeError:
- sys.stdout.write(text)
-
-def html2text_file(html, out=wrapwrite, baseurl=''):
- h = _html2text(out, baseurl)
- h.feed(html)
- h.feed("")
- return h.close()
-
-def html2text(html, baseurl=''):
- return optwrap(html2text_file(html, None, baseurl))
-
-if __name__ == "__main__":
- baseurl = ''
-
- p = optparse.OptionParser('%prog [(filename|url) [encoding]]',
- version='%prog ' + __version__)
- args = p.parse_args()[1]
- if len(args) > 0:
- file_ = args[0]
- encoding = None
- if len(args) == 2:
- encoding = args[1]
- if len(args) > 2:
- p.error('Too many arguments')
-
- if file_.startswith('http://') or file_.startswith('https://'):
- baseurl = file_
- j = urllib.urlopen(baseurl)
- text = j.read()
- if encoding is None:
- try:
- from feedparser import _getCharacterEncoding as enc
- except ImportError:
- enc = lambda x, y: ('utf-8', 1)
- encoding = enc(j.headers, text)[0]
- if encoding == 'us-ascii':
- encoding = 'utf-8'
- data = text.decode(encoding)
-
- else:
- data = open(file_, 'rb').read()
- if encoding is None:
- try:
- from chardet import detect
- except ImportError:
- detect = lambda x: {'encoding': 'utf-8'}
- encoding = detect(data)['encoding']
- data = data.decode(encoding)
- else:
- data = sys.stdin.read()
- wrapwrite(html2text(data, baseurl))
View
0 build/lib.linux-i686-2.6/emailer/management/__init__.py
No changes.
View
0 build/lib.linux-i686-2.6/emailer/management/commands/__init__.py
No changes.
View
20 build/lib.linux-i686-2.6/emailer/management/commands/process_emails.py
@@ -1,20 +0,0 @@
-
-
-from django.core.management.base import BaseCommand, CommandError
-
-from emailer.utils.emailprocessors import SimpleProcessor
-
-class Command(BaseCommand):
- args = "None"
- help = 'Process emails with SimpleProcessor'
-
- def handle(self, *args, **options):
-
- processor = SimpleProcessor()
-
- processor.prepare_emails()
- num_processed = processor.process_emails()
-
- print 'Done: processed %d' %num_processed
-
-
View
23 build/lib.linux-i686-2.6/emailer/management/commands/testemail.py
@@ -1,23 +0,0 @@
-
-
-from django.core.management.base import BaseCommand
-
-from emailer.utils import send_raw_email
-
-class Command(BaseCommand):
- args = "None"
- help = 'Process emails with SimpleProcessor'
-
- def handle(self, *args, **options):
- class RawEmail():
- def __init__(self, email):
- self.email = email
-
- to_address = 'spencer.herzberg@gmail.com'
- from_address = 'test@gmail.com'
- subject = 'one off test'
-
- html = '''<p>This message was sent to: {{ email }}</p>'''
-
- send_raw_email(RawEmail(to_address), from_address, subject, html)
- print 'test sent'
View
22 build/lib.linux-i686-2.6/emailer/management/commands/testemail2.py
@@ -1,22 +0,0 @@
-
-from django.contrib.auth.models import User
-from django.core.management.base import BaseCommand
-
-from emailer.utils import send_raw_email
-
-class Command(BaseCommand):
- args = "None"
- help = 'Process emails with SimpleProcessor'
-
- def handle(self, *args, **options):
- from_address = 'test@gmail.com'
- subject = 'one off test'
-
- html = '<p>Hello</p>lksjdlfkdj'
-
-# u = User.objects.all()[0]:
-# if u.email != '':
-# send_raw_email(u, from_address, subject, html)
-#
- print 'test sent'
-
View
120 build/lib.linux-i686-2.6/emailer/migrations/0001_initial.py
@@ -1,120 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Adding model 'EmailTemplate'
- db.create_table('emailer_emailtemplate', (
- ('id', self.gf('django.db.models.fields.CharField')(default='65792b55-240e-4c80-9126-b650a7c51136', max_length=36, primary_key=True)),
- ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('date_changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40)),
- ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('html', self.gf('django.db.models.fields.TextField')()),
- ))
- db.send_create_signal('emailer', ['EmailTemplate'])
-
- # Adding model 'EmailList'
- db.create_table('emailer_emaillist', (
- ('id', self.gf('django.db.models.fields.CharField')(default='f70bf28d-8f29-46dd-ac15-fda3692031eb', max_length=36, primary_key=True)),
- ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('date_changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40)),
- ('type', self.gf('django.db.models.fields.IntegerField')(default=0)),
- ))
- db.send_create_signal('emailer', ['EmailList'])
-
- # Adding model 'EmailBlast'
- db.create_table('emailer_emailblast', (
- ('id', self.gf('django.db.models.fields.CharField')(default='4938f5b0-b959-47a7-a2fe-c32713b9af77', max_length=36, primary_key=True)),
- ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('date_changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40)),
- ('type', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True)),
- ('send_after', self.gf('django.db.models.fields.DateTimeField')()),
- ('from_address', self.gf('django.db.models.fields.EmailField')(max_length=75)),
- ('subject', self.gf('django.db.models.fields.CharField')(max_length=40)),
- ('html', self.gf('django.db.models.fields.TextField')()),
- ))
- db.send_create_signal('emailer', ['EmailBlast'])
-
- # Adding model 'Email'
- db.create_table('emailer_email', (
- ('id', self.gf('django.db.models.fields.CharField')(default='e69926a6-5aca-4c96-a482-df304adc9f54', max_length=36, primary_key=True)),
- ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('date_changed', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
- ('email_blast', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['emailer.EmailBlast'])),
- ('to_address', self.gf('django.db.models.fields.EmailField')(max_length=75)),
- ('merge_data', self.gf('django.db.models.fields.TextField')()),
- ('status', self.gf('django.db.models.fields.IntegerField')(default=0)),
- ('status_message', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('opened', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ))
- db.send_create_signal('emailer', ['Email'])
-
-
- def backwards(self, orm):
-
- # Deleting model 'EmailTemplate'
- db.delete_table('emailer_emailtemplate')
-
- # Deleting model 'EmailList'
- db.delete_table('emailer_emaillist')
-
- # Deleting model 'EmailBlast'
- db.delete_table('emailer_emailblast')
-
- # Deleting model 'Email'
- db.delete_table('emailer_email')
-
-
- models = {
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'37ebacce-ec19-410c-bf79-8a7c87f80d5d'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'724f2e29-7df5-4f17-8a99-b1fa80251ab5'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'764d68ef-c44a-4288-bbdf-f9d08b433791'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'4d317b84-e206-4c55-b9b3-bd27eb8bc98b'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
65 build/lib.linux-i686-2.6/emailer/migrations/0002_auto__del_unique_emailtemplate_name.py
@@ -1,65 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Removing unique constraint on 'EmailTemplate', fields ['name']
- db.delete_unique('emailer_emailtemplate', ['name'])
-
-
- def backwards(self, orm):
-
- # Adding unique constraint on 'EmailTemplate', fields ['name']
- db.create_unique('emailer_emailtemplate', ['name'])
-
-
- models = {
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'69d35e04-feb7-47c3-8225-4f5e2e378233'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'3893b1d7-e230-4d3d-9988-c56f60cfee6a'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'62297669-2f0f-4e38-a296-aa9080511d46'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'c6b49a59-67fc-4184-9ce9-4288e07c492b'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
114 build/lib.linux-i686-2.6/emailer/migrations/0003_auto__add_field_emaillist_query_sql.py
@@ -1,114 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Adding field 'EmailList.query_sql'
- db.add_column('emailer_emaillist', 'query_sql', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Adding M2M table for field site_users on 'EmailList'
- db.create_table('emailer_emaillist_site_users', (
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
- ('emaillist', models.ForeignKey(orm['emailer.emaillist'], null=False)),
- ('user', models.ForeignKey(orm['auth.user'], null=False))
- ))
- db.create_unique('emailer_emaillist_site_users', ['emaillist_id', 'user_id'])
-
-
- def backwards(self, orm):
-
- # Deleting field 'EmailList.query_sql'
- db.delete_column('emailer_emaillist', 'query_sql')
-
- # Removing M2M table for field site_users on 'EmailList'
- db.delete_table('emailer_emaillist_site_users')
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'58d53282-4c8c-4ba8-82dc-2f5af1afab48'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'fff405cf-58e6-4b01-b803-99b958076258'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'4137e684-e415-42ec-8266-1430fd5440ab'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'8e6437a8-3dfd-4c14-be21-c246d71da579'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
104 build/lib.linux-i686-2.6/emailer/migrations/0004_auto__add_field_emaillist_raw_emails.py
@@ -1,104 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Adding field 'EmailList.raw_emails'
- db.add_column('emailer_emaillist', 'raw_emails', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
-
- def backwards(self, orm):
-
- # Deleting field 'EmailList.raw_emails'
- db.delete_column('emailer_emaillist', 'raw_emails')
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'f0ce614d-a4a1-46c4-b7ec-8e2108017b53'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'7e0555b8-d9c8-49c5-9508-c2c48008f113'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'3a66cad3-62fa-4a01-a972-7685ea658d32'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'raw_emails': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'854a809c-f629-45b5-8e56-4999d3584dbc'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
122 ...emailer/migrations/0005_auto__add_field_emaillist_is_oneoff__del_field_emailblast_type.py
@@ -1,122 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Adding field 'EmailList.is_oneoff'
- db.add_column('emailer_emaillist', 'is_oneoff', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
-
- # Deleting field 'EmailBlast.type'
- db.delete_column('emailer_emailblast', 'type')
-
- # Adding M2M table for field lists on 'EmailBlast'
- db.create_table('emailer_emailblast_lists', (
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
- ('emailblast', models.ForeignKey(orm['emailer.emailblast'], null=False)),
- ('emaillist', models.ForeignKey(orm['emailer.emaillist'], null=False))
- ))
- db.create_unique('emailer_emailblast_lists', ['emailblast_id', 'emaillist_id'])
-
-
- def backwards(self, orm):
-
- # Deleting field 'EmailList.is_oneoff'
- db.delete_column('emailer_emaillist', 'is_oneoff')
-
- # Adding field 'EmailBlast.type'
- db.add_column('emailer_emailblast', 'type', self.gf('django.db.models.fields.IntegerField')(default=0, blank=True), keep_default=False)
-
- # Removing M2M table for field lists on 'EmailBlast'
- db.delete_table('emailer_emailblast_lists')
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'7cee9f61-a7f0-4008-ba66-2ad57b171a0f'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'8dc62da5-be84-4af4-8dd8-a45b720e715c'", 'max_length': '36', 'primary_key': 'True'}),
- 'lists': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emailer.EmailList']", 'symmetrical': 'False', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'849a99a9-d017-4f7e-a3e8-5651987fb86f'", 'max_length': '36', 'primary_key': 'True'}),
- 'is_oneoff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'raw_emails': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'89d271ed-b1fb-4136-80f9-dc9b1104f2ee'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
104 build/lib.linux-i686-2.6/emailer/migrations/0006_setis_oneoff.py
@@ -1,104 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import DataMigration
-from django.db import models
-
-class Migration(DataMigration):
-
- def forwards(self, orm):
- for emaillist in orm.EmailList.objects.all():
- emaillist.is_oneoff = False
- emaillist.save()
-
-
- def backwards(self, orm):
- 'nothing to do here'
- pass
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'21ce6b17-29e0-4e22-aea2-9c656782db65'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'e4506163-15fd-4da7-a6ef-30facee10f7c'", 'max_length': '36', 'primary_key': 'True'}),
- 'lists': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emailer.EmailList']", 'symmetrical': 'False', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'f2bf2475-9f15-4c59-b456-d5051ed3335b'", 'max_length': '36', 'primary_key': 'True'}),
- 'is_oneoff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'raw_emails': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'f024722f-f43d-4bc1-80d8-372d58680b75'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
145 build/lib.linux-i686-2.6/emailer/migrations/0007_blast_rename_data_cols.py
@@ -1,145 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Deleting field 'EmailList.query_sql'
- db.delete_column('emailer_emaillist', 'query_sql')
-
- # Deleting field 'EmailList.raw_emails'
- db.delete_column('emailer_emaillist', 'raw_emails')
-
- # Adding field 'EmailList.data_raw_emails'
- db.add_column('emailer_emaillist', 'data_raw_emails', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Adding field 'EmailList.data_query_sql'
- db.add_column('emailer_emaillist', 'data_query_sql', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Removing M2M table for field site_users on 'EmailList'
- db.delete_table('emailer_emaillist_site_users')
-
- # Adding M2M table for field data_site_users on 'EmailList'
- db.create_table('emailer_emaillist_data_site_users', (
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
- ('emaillist', models.ForeignKey(orm['emailer.emaillist'], null=False)),
- ('user', models.ForeignKey(orm['auth.user'], null=False))
- ))
- db.create_unique('emailer_emaillist_data_site_users', ['emaillist_id', 'user_id'])
-
-
- def backwards(self, orm):
-
- # Adding field 'EmailList.query_sql'
- db.add_column('emailer_emaillist', 'query_sql', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Adding field 'EmailList.raw_emails'
- db.add_column('emailer_emaillist', 'raw_emails', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Deleting field 'EmailList.data_raw_emails'
- db.delete_column('emailer_emaillist', 'data_raw_emails')
-
- # Deleting field 'EmailList.data_query_sql'
- db.delete_column('emailer_emaillist', 'data_query_sql')
-
- # Adding M2M table for field site_users on 'EmailList'
- db.create_table('emailer_emaillist_site_users', (
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
- ('emaillist', models.ForeignKey(orm['emailer.emaillist'], null=False)),
- ('user', models.ForeignKey(orm['auth.user'], null=False))
- ))
- db.create_unique('emailer_emaillist_site_users', ['emaillist_id', 'user_id'])
-
- # Removing M2M table for field data_site_users on 'EmailList'
- db.delete_table('emailer_emaillist_data_site_users')
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'9a2634c8-ba4f-483d-a9ec-bd3322220533'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'8a5d04d2-6828-49ff-b42b-59b1a8c73376'", 'max_length': '36', 'primary_key': 'True'}),
- 'lists': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emailer.EmailList']", 'symmetrical': 'False', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'data_query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'data_raw_emails': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'data_site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'ffe55fb4-b11a-4cd2-ac20-07b8f0c18a45'", 'max_length': '36', 'primary_key': 'True'}),
- 'is_oneoff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'082baf20-0196-48ce-8238-10b770d53dc0'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
118 ...migrations/0008_auto__add_field_emaillist_data_raw_json__chg_field_emailblast_name__de.py
@@ -1,118 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Removing unique constraint on 'EmailBlast', fields ['name']
- db.delete_unique('emailer_emailblast', ['name'])
-
- # Adding field 'EmailList.data_raw_json'
- db.add_column('emailer_emaillist', 'data_raw_json', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
-
- # Changing field 'EmailBlast.name'
- db.alter_column('emailer_emailblast', 'name', self.gf('django.db.models.fields.CharField')(max_length=50))
-
-
- def backwards(self, orm):
-
- # Deleting field 'EmailList.data_raw_json'
- db.delete_column('emailer_emaillist', 'data_raw_json')
-
- # Changing field 'EmailBlast.name'
- db.alter_column('emailer_emailblast', 'name', self.gf('django.db.models.fields.CharField')(max_length=40, unique=True))
-
- # Adding unique constraint on 'EmailBlast', fields ['name']
- db.create_unique('emailer_emailblast', ['name'])
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
- },
- 'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- 'emailer.email': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'Email'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'email_blast': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emailer.EmailBlast']"}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'0d4687af-1aa1-40ce-8a03-6915f021602d'", 'max_length': '36', 'primary_key': 'True'}),
- 'merge_data': ('django.db.models.fields.TextField', [], {}),
- 'opened': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'status': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status_message': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'to_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'})
- },
- 'emailer.emailblast': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailBlast'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'from_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'f157bc6d-2aec-4d2e-88cd-823b7e8fd155'", 'max_length': '36', 'primary_key': 'True'}),
- 'lists': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emailer.EmailList']", 'symmetrical': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'send_after': ('django.db.models.fields.DateTimeField', [], {}),
- 'subject': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- },
- 'emailer.emaillist': {
- 'Meta': {'ordering': "['date_created']", 'object_name': 'EmailList'},
- 'data_query_sql': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'data_raw_emails': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'data_raw_json': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'data_site_users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'}),
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'f74b3336-e630-461b-bd86-a36ad2e7f864'", 'max_length': '36', 'primary_key': 'True'}),
- 'is_oneoff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'}),
- 'type': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- },
- 'emailer.emailtemplate': {
- 'Meta': {'object_name': 'EmailTemplate'},
- 'date_changed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'html': ('django.db.models.fields.TextField', [], {}),
- 'id': ('django.db.models.fields.CharField', [], {'default': "'63550276-c1da-41e7-bd50-3e5694d2b657'", 'max_length': '36', 'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
- }
- }
-
- complete_apps = ['emailer']
View
103 build/lib.linux-i686-2.6/emailer/migrations/0009_emaillist_prepend_name.py
@@ -1,103 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import DataMigration
-from django.db import models
-
-class Migration(DataMigration):
-
- def forwards(self, orm):
- for l in orm.EmailList.objects.filter(is_oneoff=True):
- l.name = '_'+l.name
- l.save()
-
- def backwards(self, orm):
- pass
-
-
- models = {
- 'auth.group': {
- 'Meta': {'object_name': 'Group'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- 'auth.permission': {
- 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- 'auth.user': {
- 'Meta': {'object_name': 'User'},
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),