Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INFO 2012-09-24 01:15:10,182 dev_appserver.py:2967] "POST /reserve/Rogers/1 HTTP/1.1" 302 -
- a=3
- b=3
- c=5
- d=6
- if c<d:
- print "c<d"
- if a<b:
- print "a<b"
- elif a==b:
- print "a=b"
- else:
- print "not a<=b"
- print "not a b"
- for courtname in courtnames:
- for time in times:
- if name == hiddenname:
- pass
- elif name != hiddenname and hiddenname == "":
- #check early and late
- if (res-utime)<timedelta(hours=minBefore[1]):
- template_values = {'trans':trans,'location_id':location_id}
- path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
- self.response.out.write(template.render(path,
- template_values))
- if endtime.endTime<[utime.hour,utime.minute]:
- if (res-utime)>timedelta(days=1+maxBefore[0],
- hours=maxBefore[1],maxutes=maxBefore[2]):
- template_values = {'trans':trans,'location_id':location_id}
- path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
- self.response.out.write(template.render(path,
- template_values))
- else:
- if (res-utime)>timedelta(days=maxBefore[0],
- hours=maxBefore[1],minutes=maxBefore[2]):
- template_values = {'trans':trans,'location_id':location_id}
- path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
- self.response.out.write(template.render(path,
- template_values))
- tempres.append([time, int(year), int(intMonth),
- int(intWeekday), name,hiddenname,court_id,
- weekday,weekday_key,int(day),0])
- elif name != hiddenname and name!="":
- #check early and late
- conflict = True
- tempres.append([time, int(year), int(intMonth),
- int(intWeekday), name,hiddenname,court_id,
- weekday,weekday_key,int(day),1])
- elif hiddenname != "" and name == "":
- conflict = True
- tempres.append([time, int(year), int(intMonth),
- int(intWeekday), name,hiddenname,court_id,
- weekday,weekday_key,int(day),2])
- else:
- pass
Add Comment
Please, Sign In to add comment