<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
2010/3/8 20:15 Baiju M <<a href="mailto:baiju.m.mail@gmail.com">baiju.m.mail@gmail.com</a>>:<br>
<div class="im">><br>
> I can see that you are explicitly using `long` above, so the type<br>
> will be long ?<br>
> What is the value of zope.datetime.time(header) ?<br>
><br>
> Regards,<br>
> Baiju M<br>
<br>
<br>
</div>
zope/app/file/browser/file.py<br>
>> header= self.request.getHeader('If-
<div id=":bc" class="ii gt"><wbr>Modified-Since', None)<br>
<div class="im">>> lmt = zope.datetime.time(modified.<wbr>isoformat())<br>
</div>
>> if header is not None:<br>
>> header = header.split(';')[0]<br>
>> try: mod_since=long(zope.datetime.<wbr>time(header))<br>
>> except: mod_since=None<br>
>> if mod_since is not None:<br>
>> if lmt <= mod_since:<br>
>> self.request.response.<wbr>setStatus(304)<br>
>> return ''<br>
>> self.request.response.<wbr>setHeader('Last-Modified',<br>
>>
zope.datetime.rfc1123_date(<wbr>lmt))<br>
<br>
zope.datetime.time(modified.<wbr>isoformat()) - it is date of change of
a<br>
file transferred from browser.<br>
It is compared to date of change of a file on a server - lmt.</div>
</body>
</html>