Issue Details (XML | Word | Printable)

Key: MODPYTHON-130
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Improvements associated with modifications times.

Created: 13/Feb/06 02:14 PM   Updated: 11/Apr/07 11:24 AM
Return to search
Component/s: core
Affects Version/s: 3.3.x
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Resolution Date: 19/Mar/06 03:12 PM


 Description  « Hide
In order to be able to more easily maintain last modified response header and ETag, should expose:

   ap_set_etag()
   ap_update_mtime()
   ap_set_last_modified()

through the request object. Ie.,

  req.set_etag()
  req.update_mtime()
  req.set_last_modified()

Direct assignment to mtime wouldn't be allowed and req.update_mtime() perfered as it will only update mtime if replacement value is newer. See mailing list for brief discussion on this:

  http://www.mail-archive.com/python-dev@httpd.apache.org/msg01212.html

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #386936 Sun Mar 19 07:12:23 UTC 2006 grahamd Added req.set_etag(), req.set_last_modified() and req.update_mtime()
functions as wrappers for similar functions provided by Apache C API.
(MODPYTHON-130)
Files Changed
MODIFY /httpd/mod_python/trunk/test/htdocs/tests.py
MODIFY /httpd/mod_python/trunk/Doc/modpython4.tex
MODIFY /httpd/mod_python/trunk/test/test.py
MODIFY /httpd/mod_python/trunk/src/requestobject.c
MODIFY /httpd/mod_python/trunk/Doc/appendixc.tex