Skip to content

Commit

Permalink
fix job email
Browse files Browse the repository at this point in the history
  • Loading branch information
reedlabotz committed Sep 2, 2012
1 parent 886320f commit bc5cf2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
7 changes: 4 additions & 3 deletions apache/django.wsgi
@@ -1,8 +1,9 @@
import os, sys
sys.path.insert(0,'/var/www/liquid/liquid/env/lib/python2.6/site-packages')
sys.path.append('/var/www/liquid/liquid')
import os, sys, logging
sys.path.insert(0,'/afs/acm.uiuc.edu/project/liquid/liquid/liquid/env/lib/python2.6/site-packages')
sys.path.append('/afs/acm.uiuc.edu/project/liquid/liquid/liquid')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

logging.critical("I hate Dylan and everyone who uses servers, and my path is %s" %sys.path)
import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()
11 changes: 8 additions & 3 deletions liquid/scripts/send_job_email.py
Expand Up @@ -23,7 +23,7 @@
email += "With postings from:\r\n"

for j in jobs:
email += j.company + "\r\n"
email += "* " + j.company + "\r\n"

email += "\r\n========================================================================\r\n\r\n";

Expand All @@ -32,7 +32,12 @@
email += "Company: " + j.company + "\r\n";
email += "Contact: " + j.contact_name + ' <' + j.contact_email + '> ' + j.contact_phone + "\r\n"
email += "Hiring for: " + j.types() + "\r\n"
email += "Description:\r\n" + "\r\n".join(wrap(j.description,72)) + "\r\n";
description = j.description.split('\n')
description_out = ""
for d in description:
if d != "":
description_out += "\r\n".join(wrap(d,72)) + "\r\n"
email += "Description:\r\n" + description_out + "\r\n";
email += "\r\n========================================================================\r\n\r\n";


Expand All @@ -47,4 +52,4 @@
print inst

else:
print "No jobs to send"
print "No jobs to send"

0 comments on commit bc5cf2a

Please sign in to comment.