# Path: grapevine/emails/models.py
# class Email(Transport):
#     class Meta:
# class EmailRecipient(GrapevineModel):
#     class Meta:
# class EmailBackend(GrapevineModel):
#     class Meta:
# class EmailVariable(GrapevineModel):
#     class Meta:
# class RawEvent(GrapevineModel):
#     class Meta:
# class Event(GrapevineModel):
#     class Meta:
# class EmailEvent(GrapevineModel):
#     class Meta:
# class UnsubscribedAddress(GrapevineModel):
#     class Meta:
#     def get_absolute_url(self):
#     def ensure_from_email(self):
#     def ensure_reply_to(self):
#     def ensure_subject(self):
#     def __str__(self):
#     def get_main_recipient(self):
#     def save(self, *args, **kwargs):
#     def determine_backend(**kwargs):
#     def extra_transport_data(sendable, **kwargs):
#     def add_tos(self, recipients):
#     def add_ccs(self, recipients):
#     def add_bccs(self, recipients):
#     def add_recipient(self, recipient, recipient_type):
#     def add_recipients(self, recipients):
#     def add_variable(self, key, value):
#     def to(self):
#     def cc(self):
#     def bcc(self):
#     def _send(self, backend=None, fail_silently=False, **kwargs):
#     def is_spam(self):
#     def is_opened(self):
#     def is_clicked(self):
#     def cached_events(self):
#     def find_event_by_name(self, name):
#     def __str__(self):
#     def prepare_for_email(self):
#     def determine_domain(self):
#     def save(self, *args, **kwargs):
#     def kls(self):
#     def __str__(self):
#     def get_connection(self, fail_silently=False, **kwargs):
#     def get_headers(self, email):
#     def as_message(self, email):
#     def finalize_message(self, message):
#     def send(self, email, fail_silently=False, **kwargs):
#     def _send(self, msg, **kwargs):
#     def __str__(self):
#     def async_process(raw_event_id):
#     def process(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def save(self, *args, **kwargs):
#     TO = 1
#     CC = 2
#     BCC = 3
#     TYPES = (
#         (TO, 'To',),
#         (CC, 'CC',),
#         (BCC, 'BCC',),
#     )


from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.views.generic import View
from grapevine.emails import models
from __future__ import unicode_literals

# Django

# Local Apps


class ViewEmailOnSite(View):

    def get(self, request, *args, **kwargs):

# Path: grapevine/emails/models.py
# class Email(Transport):
#     class Meta:
# class EmailRecipient(GrapevineModel):
#     class Meta:
# class EmailBackend(GrapevineModel):
#     class Meta:
# class EmailVariable(GrapevineModel):
#     class Meta:
# class RawEvent(GrapevineModel):
#     class Meta:
# class Event(GrapevineModel):
#     class Meta:
# class EmailEvent(GrapevineModel):
#     class Meta:
# class UnsubscribedAddress(GrapevineModel):
#     class Meta:
#     def get_absolute_url(self):
#     def ensure_from_email(self):
#     def ensure_reply_to(self):
#     def ensure_subject(self):
#     def __str__(self):
#     def get_main_recipient(self):
#     def save(self, *args, **kwargs):
#     def determine_backend(**kwargs):
#     def extra_transport_data(sendable, **kwargs):
#     def add_tos(self, recipients):
#     def add_ccs(self, recipients):
#     def add_bccs(self, recipients):
#     def add_recipient(self, recipient, recipient_type):
#     def add_recipients(self, recipients):
#     def add_variable(self, key, value):
#     def to(self):
#     def cc(self):
#     def bcc(self):
#     def _send(self, backend=None, fail_silently=False, **kwargs):
#     def is_spam(self):
#     def is_opened(self):
#     def is_clicked(self):
#     def cached_events(self):
#     def find_event_by_name(self, name):
#     def __str__(self):
#     def prepare_for_email(self):
#     def determine_domain(self):
#     def save(self, *args, **kwargs):
#     def kls(self):
#     def __str__(self):
#     def get_connection(self, fail_silently=False, **kwargs):
#     def get_headers(self, email):
#     def as_message(self, email):
#     def finalize_message(self, message):
#     def send(self, email, fail_silently=False, **kwargs):
#     def _send(self, msg, **kwargs):
#     def __str__(self):
#     def async_process(raw_event_id):
#     def process(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def save(self, *args, **kwargs):
#     TO = 1
#     CC = 2
#     BCC = 3
#     TYPES = (
#         (TO, 'To',),
#         (CC, 'CC',),
#         (BCC, 'BCC',),
#     )


# Path: grapevine/emails/views.py
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.views.generic import View
from grapevine.emails import models

from __future__ import unicode_literals

# Django

# Local Apps


class ViewEmailOnSite(View):

    def get(self, request, *args, **kwargs):

        email = get_object_or_404(models.Email, guid=kwargs.get("message_guid"))