old_contents: #!/usr/bin/python
  
  # email_url.py
  # emails the video URL to the presenters
  
  from django.core.mail import get_connection, EmailMessage
  
  from django.template import Context, Template
  
  from process import process
  from email_ab import email_ab
  # from django.conf import settings
  
  class email_title(email_ab):
  
      ready_state = None
      subject_template = '[{{ep.show.name}}] Video metadata for "{{ep.name}}"'
  
      body_template = """
  Hi,
  
  This is Veyepar, the automated video processing system.
  
  Please review the following meta data about your talk so that mistakes can be corrected now and not after the video has gone live.
  
  Released: {{ep.released}}
  {% if ep.released %}Permission has been given to record your talk and post it online.
  {% if not ep.location.active %}However, we are not planning on recording any of the talks in {{ ep.location.name }}.  {% endif %}
  {% else %} "None" means it may get recorded and processed, but it will not be made public.
  "False" means you have requested for the video not to be released. However the a video may be made anyway and available for review in case you change your mind.  {% endif %}
  {% if pyvideo %}
  The video will be titled with the following image:
  {{MEDIA_URL}}{{ep.show.client.slug}}/{{ep.show.slug}}/titles/{{ep.slug}}.png
  {% endif %}
  {% if ep.public_url%}The main page for the video will be here:
    {{ep.public_url}} {% endif %}
  {% if 0 %}
  Problems with the text will need to be fixed in the event database that drives: {{ep.conf_url}} {{ep.show.schedule_url}}
  
  Except for odd word wrap on the title image.  If it bothers you, let us know how you would like it and we will try to accommodate. 
  {% endif %}
  
  If everything looks good, you don't need to do anything. Good luck with your talk; expect another email when the video is posted.
  
  Your talk is scheduled for {{ep.start}} in the room called {{ep.location.name}} and you have been alloted {{ep.get_minutes}} minutes. The event organizers will give you instructions on how to check in before your talk.  
  
  Please bring what is needed to hook your laptop up to good old 15 pin VGA.  We may have an adaptor, but don't count on it, someone may have taken it.
  
  """
      py_name = "email_title.py"
   
      def more_context(self, ep):
  
          # If there is a Richard (pyvideo) url, use that;
          #  else use the youtube url.
          pyvideo = "pyvideo" in ep.public_url 
          return {'pyvideo':pyvideo}
  
          
  if __name__ == '__main__':
      p=email_title()
      p.main()
  
  
new_contents: #!/usr/bin/python
  
  # email_url.py
  # emails the video URL to the presenters
  
  from django.core.mail import get_connection, EmailMessage
  
  from django.template import Context, Template
  
  from process import process
  from email_ab import email_ab
  # from django.conf import settings
  
  class email_title(email_ab):
  
      ready_state = None
      subject_template = '[{{ep.show.name}}] Video metadata for "{{ep.name}}"'
  
      body_template = """
  Hi,
  
  This is Veyepar, the automated video processing system.
  
  Please review the following meta data about your talk so that mistakes can be corrected now and not after the video has gone live.
  
  Released: {{ep.released}}
  {% if ep.released %}Permission has been given to record your talk and post it online.
  {% if not ep.location.active %}However, we are not planning on recording any of the talks in {{ ep.location.name }}.  {% endif %}
  {% else %} "None" means it may get recorded and processed, but it will not be made public.
  "False" means you have requested for the video not to be released. However the a video may be made anyway and available for review in case you change your mind.  {% endif %}
  {% if pyvideo %}
  The video will be titled with the following image:
  {{MEDIA_URL}}{{ep.show.client.slug}}/{{ep.show.slug}}/titles/{{ep.slug}}.png
  {% endif %}
  {% if ep.public_url%}The main page for the video will be here:
    {{ep.public_url}} 
  {% else %}and the Description:
    === begin ===
    {{ep.description}} 
    === end description ===
  {% endif %}
  {% if ep.show.schedule_url %}
  Problems with the text will need to be fixed in the event database that drives: {{ep.conf_url}} 
  {{ep.show.schedule_url}}
  
  Except for odd word wrap on the title image.  If it bothers you, let us know how you would like it and we will try to accommodate. 
  {% endif %}
  
  If everything looks good, you don't need to do anything. Good luck with your talk; expect another email when the video is posted.
  
  Your talk is scheduled for {{ep.start}} in the room called {{ep.location.name}} and you have been alloted {{ep.get_minutes}} minutes. The event organizers will give you instructions on how to check in before your talk.  
  
  Please bring what is needed to hook your laptop up to good old 15 pin VGA.  We may have an adaptor, but don't count on it, someone may have taken it.
  
  """
      py_name = "email_title.py"
   
      def more_context(self, ep):
  
          # If there is a Richard (pyvideo) url, use that;
          #  else use the youtube url.
          pyvideo = ep.public_url is not None and "pyvideo" in ep.public_url 
          return {'pyvideo':pyvideo}
  
          
  if __name__ == '__main__':
      p=email_title()
      p.main()
  
  
subject: Add description to email for non pyvideo events.