def manage_changed(wrapped):
 def changed(session, *arg, **kw):
  session.accessed = int(time.time())
  session.changed()
  return wrapped(session, *arg, **kw)
 changed.__doc__ = wrapped.__doc__
 return changed

def manage_changed ( wrapped ) : def changed ( session , * arg , ** kw ) : session . accessed = int ( time . time ( ) ) session . changed ( ) return wrapped ( session , * arg , ** kw ) changed . __doc__ = wrapped . __doc__ return changed
decorator which causes a cookie to be set when a setter method is called .