Exemple #1
0
  def get(self):
    attrib = parse.get_oncall()
    print "date=%s" % attrib['date']
    print "img=%s" % attrib['user1'][1]
    print "img=%s" % attrib['user2'][1]

    #v_img1=attrib['user1'][1]
    #v_img2=attrib['user2'][1]
    self.render("index.html", data=attrib)
Exemple #2
0
import on_call_email
import parse_csv

attrib = parse_csv.get_oncall();

name1 = attrib['user1'][0]
name2 = attrib['user2'][0]
on_call_email.lookup_addr()
on_call_email.send_email(name1)
on_call_email.send_email(name2)