Modify ↓
      
Opened 21 years ago
Closed 21 years ago
#1043 closed defect (fixed)
Get error by changeset 1108 when viewing attachment.
| Reported by: | anonymous | Owned by: | Christopher Lenz | 
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 | 
| Component: | wiki system | Version: | devel | 
| Severity: | major | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
I've got error by exception when viewing attachment on wiki page. It is caused by modification of File.py in changeset 1108. I fixed like this:
Index: File.py
===================================================================
--- File.py	(revision 1120)
+++ File.py	(working copy)
@@ -145,7 +145,7 @@
             
             stat = os.fstat(fd.fileno())
             self.last_modified = time.gmtime(stat[8])
-            self.req.check_modified(self.last_modified)
+            self.req.check_modified(stat[8])
 
             self.length = stat[6]
             self.read_func = lambda x, f=fd: f.read(x)
      Attachments (0)
Change History (2)
comment:1 by , 21 years ago
| Description: | modified (diff) | 
|---|---|
| Milestone: | → 0.9 | 
| Owner: | changed from to | 
| Status: | new → assigned | 
comment:2 by , 21 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    


  
Fixed in [1121]. Thanks!