#821: enable longer visit cookies than visit.timeout to be set
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Identity | Version: 0.9a5
Severity: normal | Keywords:
-----------------------------------+----------------------------------------
I want to add a "remember me" checkbox on login that will set a visit
cookie that doesn't expire for a long time. Say, 6 months. I was able to
call _manager.update_visit() (and only felt a little dirty) but without
the below change to update_visit(), the later date gets clobbered in the
update queue before it can be written to the database.
Would this be acceptable? (basically adding the conditional that it only
updates if greater than the current value in the queue dict)
visit/api.py BaseVisitManager.update_visit():
def update_visit(self, visit_key, expiry):
try:
self.lock.acquire()
# do not overwrite manual overrides to visit expiry
if not self.queue.has_key(visit_key) or self.queue[visit_key]
< expiry:
self.queue[visit_key]= expiry
finally:
self.lock.release()
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/821>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---