Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix job email

  • Loading branch information...
commit bc5cf2a1e2b4aedb4c3e7438c8c00d9d9d076212 1 parent 886320f
@reedlabotz reedlabotz authored
Showing with 12 additions and 6 deletions.
  1. +4 −3 apache/django.wsgi
  2. +8 −3 liquid/scripts/send_job_email.py
View
7 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()
View
11 liquid/scripts/send_job_email.py
@@ -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";
@@ -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";
@@ -47,4 +52,4 @@
print inst
else:
- print "No jobs to send"
+ print "No jobs to send"
Please sign in to comment.
Something went wrong with that request. Please try again.