Skip to content

Commit

Permalink
Try to tell browser not to cache semiauto_email.html
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaeckroth committed Aug 6, 2012
1 parent f57f8d9 commit bacb073
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions AINewsPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def filter_and_process(self):

if len(self.articles) == 0: return

for urlid in self.articles:
print "Considering", urlid

# assume every article will be published; may be set to False from one
# of the filtering processes below
for urlid in self.articles:
Expand Down Expand Up @@ -280,6 +283,10 @@ def publish_email_semiauto(self):
"""
semiauto = """
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
<body>
<h1>AI Alert - SemiAuto Sender</h1>
<form action="http://aaai.org/cgi-dada/mail.cgi?flavor=send_email" method='post'>
Expand All @@ -297,6 +304,10 @@ def publish_email_semiauto(self):
%s
</p>
</body>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
</html>
""" % ("AI Alert - "+str(self.today.strftime("%B %d, %Y")),
self.semiauto_email_output, self.semiauto_email_output)
Expand Down

0 comments on commit bacb073

Please sign in to comment.