def manage_accessed(wrapped):
 def accessed(session, *arg, **kw):
  session.accessed = now = int(time.time())
  if (session._reissue_time is not None):
   if ((now - session.renewed) > session._reissue_time):
    session.changed()
  return wrapped(session, *arg, **kw)
 accessed.__doc__ = wrapped.__doc__
 return accessed

def manage_accessed ( wrapped ) : def accessed ( session , * arg , ** kw ) : session . accessed = now = int ( time . time ( ) ) if ( session . _reissue_time is not None ) : if ( ( now - session . renewed ) > session . _reissue_time ) : session . changed ( ) return wrapped ( session , * arg , ** kw ) accessed . __doc__ = wrapped . __doc__ return accessed
decorator which causes a cookie to be renewed when an accessor method is called .