[CherryPy] #1074: Provide an overrideable method to generate 'now' values within Session providers

1 view
Skip to first unread message

CherryPy

unread,
Jul 15, 2011, 12:37:58 AM7/15/11
to cherrypy...@googlegroups.com
#1074: Provide an overrideable method to generate 'now' values within Session
providers
---------------------------+------------------------------------------------
Reporter: lakin | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy code | Keywords:
---------------------------+------------------------------------------------
The default session provider algorithms use naive datetime instances.
Session providers may want to use utc datetimes, or tz aware datetimes
depending on their needs.

This diff refactors the session lib so that there is an method self._now()
which can be overridden by subclasses. It was made against 3.2.0, but
should probably apply cleanly to trunk.

--
Ticket URL: <http://cherrypy.org/ticket/1074>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework
Reply all
Reply to author
Forward
0 new messages