Skip to content

Instantly share code, notes, and snippets.

@redspider
Created January 22, 2014 20:23
Show Gist options
  • Save redspider/8566686 to your computer and use it in GitHub Desktop.
Save redspider/8566686 to your computer and use it in GitHub Desktop.
class Email(Document):
created = QuantumField(required=True, default=quantum.now)
status = StringField(required=True, choices=['pending', 'sending', 'paused', 'sent'], default='pending')
progress = IntField(default=0)
processed = QuantumField()
template = StringField()
tplvars = DictField()
dispensation = ReferenceField('Dispensation')
comment = StringField()
subject = StringField(required=True)
text_body = StringField()
html_body = StringField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment