Module Import alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore BinOpMult Num Num Assign NameStore BinOpMult BinOpMult Num Num Num Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad NameLoad body Return NameLoad Return Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareNotIn NameLoad NameLoad body Return NameLoad Return Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore Call NameLoad Str TupleLoad NameLoad Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str TupleLoad NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Break orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot NameLoad body Return Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Assign NameStore NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return If CompareNotEq AttributeLoad NameLoad attr NameLoad body If BoolOpOr CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Expr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr Expr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str ListComp TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Assign NameStore NameLoad If BoolOpAnd NameLoad CompareGt BinOpSub NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Expr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call NameLoad Str TupleLoad NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call NameLoad Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assert AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Index Str BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Index Str NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Index Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call NameLoad Str If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareGt BinOpSub Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If BoolOpAnd UnaryOpNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str Str Assert NameLoad Str If CompareEq NameLoad AttributeLoad NameLoad attr body Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call NameLoad Str Call NameLoad Str With AttributeLoad AttributeLoad NameLoad attr attr NameStore body If Call NameLoad Str TupleLoad NameLoad body Raise Call NameLoad Call NameLoad Str keyword NameLoad Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str Str With AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore Call NameLoad Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad Str TupleLoad NameLoad Expr Call NameLoad Str TupleLoad NameLoad orelse If CompareEq Call NameLoad NameLoad Num body If UnaryOpNot SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse TryExcept body Expr Call NameLoad Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str Expr Yield TupleLoad Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield TupleLoad Str Str Str NameLoad AttributeLoad NameLoad attr Expr Yield TupleLoad Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield TupleLoad Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield TupleLoad Str Str BinOpMod Str NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Return TupleLoad SubscriptLoad NameLoad Slice Num Num orelse If Call AttributeLoad NameLoad attr Str body Return TupleLoad SubscriptLoad NameLoad Slice Num Num orelse Return TupleLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad Assign NameStore BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad TupleLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body If BoolOpOr BoolOpAnd NameLoad UnaryOpNot NameLoad BoolOpAnd NameLoad NameLoad CompareIn TupleLoad NameLoad NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr ListLoad Str Str Str Return BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq Call NameLoad NameLoad Num body Return ListLoad Str Str orelse If CompareEq Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr ListLoad Str Return BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If UnaryOpNot NameLoad body Assign NameStore ListLoad Str Assign NameStore TupleLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body TryExcept body Expr Call NameLoad Str TupleLoad NameLoad NameLoad Call NameLoad Call NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call NameLoad Str keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad Str TupleLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad Call NameLoad Str keyword NameLoad If CompareEq NameLoad Str body If BoolOpAnd NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad Str keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad With AttributeLoad AttributeLoad NameLoad attr attr NameStore body If UnaryOpNot Call NameLoad Str TupleLoad NameLoad NameLoad body Raise Call NameLoad Call NameLoad Str keyword NameLoad Expr Call NameLoad Str TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg body With AttributeLoad AttributeLoad NameLoad attr attr NameStore body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Expr Call NameLoad Str Expr Call NameLoad Str orelse Expr Call NameLoad Str TupleLoad NameLoad NameLoad Expr Call NameLoad Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword Str keyword Call NameLoad AttributeLoad NameLoad attr With AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Str TupleLoad NameLoad Expr Call NameLoad Str decorator_list decorator_list
N/A N/A re trac.admin.api AdminCommandError IAdminCommandProvider console_date_format get_console_locale trac.core Component ExtensionPoint TracError implements trac.util as_bool as_int hex_entropy lazy trac.util.datefmt get_datetime_format_hint format_date parse_date time_now to_datetime to_timestamp trac.util.text print_table trac.util.translation _ trac.web.api IRequestHandler is_valid_default_handler N/A UPDATE_INTERVAL N/A 3600 24 N/A PURGE_AGE N/A N/A 3600 24 90 N/A COOKIE_KEY trac_session DetachedSession N/A dict N/A __init__ N/A N/A self env sid N/A N/A N/A N/A N/A dict __init__ self N/A N/A self env env N/A N/A self sid None N/A sid N/A N/A N/A N/A self get_session sid authenticated True N/A N/A N/A self authenticated False N/A N/A self last_visit 0 N/A N/A self _new True N/A N/A self _old N/A N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A dict __setitem__ self key N/A unicode value N/A as_bool N/A N/A self key default N/A None N/A N/A Return the value as a boolean. Return `default` if
        if an exception is raised while converting the value to a
        boolean.

        :param key: the name of the session attribute
        :keyword default: the value to return if the parameter is not
                          specified or an exception occurs converting
                          the value to a boolean.

        :since: 1.2
         N/A N/A key self N/A N/A default N/A N/A as_bool N/A self N/A key default N/A as_int N/A N/A self key default min max N/A None None None N/A N/A Return the value as an integer. Return `default` if
        if an exception is raised while converting the value to an
        integer.

        :param key: the name of the session attribute
        :keyword default: the value to return if the parameter is not
                          specified or an exception occurs converting
                          the value to an integer.
        :keyword min: lower bound to which the value is limited
        :keyword max: upper bound to which the value is limited

        :since: 1.2
         N/A N/A key self N/A N/A default N/A N/A as_int N/A self N/A key default min max N/A set N/A N/A self key value default N/A None N/A N/A Set a variable in the session, or remove it if it's equal to the
        default value.
         N/A value N/A unicode value N/A N/A default None N/A N/A default N/A unicode default N/A N/A value default N/A N/A N/A N/A self pop key None N/A N/A N/A N/A dict __setitem__ self key value N/A get_session N/A N/A self sid authenticated N/A False N/A N/A N/A N/A N/A N/A self env log debug Retrieving session for ID %r sid N/A N/A N/A self env db_query db N/A N/A N/A self sid sid N/A N/A self authenticated authenticated N/A N/A N/A self clear N/A N/A last_visit N/A db 
                    SELECT last_visit FROM session
                    WHERE sid=%s AND authenticated=%s
                     N/A sid N/A int authenticated N/A N/A N/A self _new False N/A N/A self last_visit N/A int N/A last_visit 0 N/A N/A N/A self update N/A db 
                    SELECT name, value FROM session_attribute
                    WHERE sid=%s and authenticated=%s
                     N/A sid N/A int authenticated N/A N/A self _old N/A N/A self copy N/A N/A N/A N/A self last_visit 0 N/A N/A self _new True N/A N/A self _old N/A N/A save N/A N/A self N/A N/A N/A items N/A N/A self items N/A N/A N/A N/A self _old N/A items N/A N/A N/A authenticated N/A int N/A self authenticated N/A now N/A int N/A time_now N/A session_saved False N/A N/A N/A self env db_transaction db N/A N/A N/A self _new N/A N/A N/A self last_visit now N/A N/A self _new False N/A N/A N/A N/A db INSERT INTO session (sid, last_visit, authenticated)
                          VALUES (%s,%s,%s)
                           N/A N/A self sid N/A self last_visit authenticated N/A N/A N/A N/A N/A N/A self env db_exc IntegrityError N/A N/A N/A N/A N/A N/A self env log warning Session %s already exists N/A self sid N/A N/A N/A db rollback N/A N/A N/A N/A self _old self N/A N/A N/A N/A N/A N/A N/A self _old get name N/A N/A self get name N/A N/A N/A N/A self _old get email N/A N/A self get email N/A N/A N/A N/A N/A self env invalidate_known_users_cache N/A N/A N/A items N/A authenticated N/A N/A N/A db DELETE FROM session WHERE sid=%s AND authenticated=0 N/A N/A self sid N/A N/A db DELETE FROM session_attribute
                      WHERE sid=%s AND authenticated=%s
                       N/A N/A self sid authenticated N/A N/A self _old N/A dict N/A N/A self items N/A N/A N/A N/A N/A db executemany 
                        INSERT INTO session_attribute
                          (sid,authenticated,name,value)
                        VALUES (%s,%s,%s,%s)
                         N/A N/A N/A self sid authenticated k v N/A N/A k v items N/A N/A N/A N/A N/A N/A self env db_exc IntegrityError N/A N/A N/A N/A N/A N/A self env log warning Attributes for session %s already updated N/A self sid N/A N/A N/A db rollback N/A N/A session_saved True N/A N/A session_saved N/A N/A now N/A self last_visit UPDATE_INTERVAL N/A N/A N/A self last_visit now N/A mintime N/A now PURGE_AGE N/A N/A N/A self env db_transaction db N/A N/A N/A N/A N/A N/A self env log info Refreshing session %s N/A self sid N/A N/A db UPDATE session SET last_visit=%s
                      WHERE sid=%s AND authenticated=%s
                       N/A N/A self last_visit N/A self sid authenticated N/A N/A N/A N/A N/A self env log debug Purging old, expired, sessions. N/A N/A db DELETE FROM session_attribute
                      WHERE authenticated=0 AND sid IN (
                          SELECT sid FROM session
                          WHERE authenticated=0 AND last_visit < %s
                      )
                       N/A mintime N/A N/A N/A self env db_transaction db N/A N/A N/A db 
                    DELETE FROM session
                    WHERE authenticated=0 AND last_visit < %s
                     N/A mintime N/A N/A Session N/A DetachedSession N/A N/A Basic session handling and per-session storage. __init__ N/A N/A self env req N/A N/A N/A N/A N/A N/A super Session self __init__ env None N/A N/A self req req N/A N/A N/A req authname anonymous N/A N/A N/A COOKIE_KEY N/A req incookie N/A N/A N/A self sid N/A hex_entropy 24 N/A N/A N/A self bake_cookie N/A N/A sid N/A N/A N/A req incookie N/A COOKIE_KEY value N/A N/A N/A self get_session sid N/A N/A N/A COOKIE_KEY N/A req incookie N/A N/A sid N/A N/A N/A req incookie N/A COOKIE_KEY value N/A N/A N/A self promote_session sid N/A N/A N/A self get_session N/A req authname authenticated True N/A bake_cookie N/A N/A self expires N/A PURGE_AGE N/A N/A N/A self sid Session ID not set N/A N/A N/A N/A self req outcookie N/A COOKIE_KEY N/A self sid N/A N/A N/A N/A N/A self req outcookie N/A COOKIE_KEY N/A path N/A N/A N/A self req base_path / N/A N/A N/A N/A N/A self req outcookie N/A COOKIE_KEY N/A expires expires N/A N/A N/A self env secure_cookies N/A N/A N/A N/A N/A N/A self req outcookie N/A COOKIE_KEY N/A secure True N/A N/A N/A N/A N/A self req outcookie N/A COOKIE_KEY N/A httponly True N/A N/A _valid_sid_re N/A N/A re compile [_A-Za-z0-9]+\Z get_session N/A N/A self sid authenticated N/A False N/A N/A refresh_cookie False N/A N/A N/A authenticated N/A N/A N/A N/A self _valid_sid_re match sid N/A N/A N/A TracError N/A _ Session ID must be alphanumeric. N/A N/A N/A self sid N/A sid N/A self sid N/A N/A refresh_cookie True N/A N/A N/A N/A super Session self get_session sid authenticated N/A N/A N/A self last_visit N/A N/A N/A time_now N/A self last_visit UPDATE_INTERVAL N/A N/A refresh_cookie True N/A N/A N/A authenticated refresh_cookie N/A N/A N/A N/A self bake_cookie N/A change_sid N/A N/A self new_sid N/A N/A N/A N/A N/A N/A self req authname anonymous Cannot change ID of authenticated session N/A new_sid Session ID cannot be empty N/A N/A new_sid N/A self sid N/A N/A N/A N/A N/A N/A N/A self _valid_sid_re match new_sid N/A N/A N/A TracError N/A _ Session ID must be alphanumeric. N/A _ Error renaming session N/A N/A N/A self env db_transaction db N/A N/A N/A db SELECT sid FROM session WHERE sid=%s N/A new_sid N/A N/A N/A TracError N/A _ Session '%(id)s' already exists. Please choose a different session ID. id new_sid N/A _ Error renaming session N/A N/A N/A N/A N/A self env log debug Changing session ID %s to %s N/A self sid new_sid N/A N/A db UPDATE session SET sid=%s WHERE sid=%s AND authenticated=0 N/A new_sid N/A self sid N/A N/A db UPDATE session_attribute SET sid=%s
                  WHERE sid=%s and authenticated=0
                   N/A new_sid N/A self sid N/A N/A self sid new_sid N/A N/A N/A self bake_cookie N/A promote_session N/A N/A self sid N/A N/A N/A Promotes an anonymous session to an authenticated session, if there
        is no preexisting session data for that user name.
         N/A N/A N/A N/A self req authname anonymous Cannot promote session of anonymous user N/A N/A N/A self env db_transaction db N/A N/A authenticated_flags N/A authenticated N/A N/A authenticated N/A db SELECT authenticated FROM session WHERE sid=%s OR sid=%s N/A sid N/A N/A self req authname N/A N/A N/A len authenticated_flags 2 N/A N/A N/A db DELETE FROM session WHERE sid=%s AND authenticated=0 N/A sid N/A N/A db DELETE FROM session_attribute
                      WHERE sid=%s AND authenticated=0
                       N/A sid N/A N/A N/A N/A len authenticated_flags 1 N/A N/A N/A N/A authenticated_flags N/A 0 N/A N/A N/A N/A N/A N/A self env log debug Promoting anonymous session %s to authenticated session for user %s sid N/A N/A self req authname N/A N/A db UPDATE session SET sid=%s, authenticated=1
                          WHERE sid=%s AND authenticated=0
                           N/A N/A N/A self req authname sid N/A N/A db UPDATE session_attribute SET sid=%s, authenticated=1
                          WHERE sid=%s
                           N/A N/A N/A self req authname sid N/A N/A N/A N/A N/A db INSERT INTO session (sid, last_visit, authenticated)
                          VALUES (%s, %s, 1)
                           N/A N/A N/A self req authname N/A int N/A time_now N/A N/A N/A N/A N/A N/A self env db_exc IntegrityError N/A N/A N/A N/A N/A N/A self env log warning Authenticated session for %s already exists N/A N/A self req authname N/A N/A N/A db rollback N/A N/A self _new False N/A N/A self sid sid N/A N/A N/A self bake_cookie 0 N/A N/A SessionAdmin N/A Component N/A N/A trac-admin command provider for session management N/A N/A implements IAdminCommandProvider N/A request_handlers N/A ExtensionPoint IRequestHandler get_admin_commands N/A N/A self N/A N/A N/A hints N/A datetime iso8601 N/A get_datetime_format_hint N/A get_console_locale N/A self env N/A get_datetime_format_hint iso8601 N/A N/A N/A session list [sid[:0|1]] [...] List the name and email for the given sids

               Specifying the sid 'anonymous' lists all unauthenticated
               sessions, and 'authenticated' all authenticated sessions.
               '*' lists all sessions, and is the default if no sids are
               given.

               An sid suffix ':0' operates on an unauthenticated session with
               the given sid, and a suffix ':1' on an authenticated session
               (the default). N/A self _complete_list N/A self _do_list N/A N/A N/A session add <sid[:0|1]> [name] [email] Create a session for the given sid

               Populates the name and email attributes for the given session.
               Adding a suffix ':0' to the sid makes the session
               unauthenticated, and a suffix ':1' makes it authenticated (the
               default if no suffix is specified). None N/A self _do_add N/A N/A N/A session set <name|email|default_handler> <sid[:0|1]> <value> Set the name or email attribute of the given sid

               An sid suffix ':0' operates on an unauthenticated session with
               the given sid, and a suffix ':1' on an authenticated session
               (the default). N/A self _complete_set N/A self _do_set N/A N/A N/A session delete <sid[:0|1]> [...] Delete the session of the specified sid

               An sid suffix ':0' operates on an unauthenticated session with
               the given sid, and a suffix ':1' on an authenticated session
               (the default). Specifying the sid 'anonymous' will delete all
               anonymous sessions. N/A self _complete_delete N/A self _do_delete N/A N/A N/A session purge <age> N/A Purge anonymous sessions older than the given age or date

               Age may be specified as a relative time like "90 days ago", or
               as a date in the "%(datetime)s" or "%(iso8601)s" (ISO 8601)
               format. hints None N/A self _do_purge N/A _valid_default_handlers N/A N/A self N/A N/A N/A N/A sorted N/A N/A N/A handler __class__ __name__ N/A handler N/A self request_handlers N/A is_valid_default_handler handler N/A lazy _split_sid N/A N/A self sid N/A N/A N/A N/A N/A sid endswith :0 N/A N/A N/A N/A sid N/A -2 0 N/A N/A N/A N/A sid endswith :1 N/A N/A N/A N/A sid N/A -2 1 N/A N/A N/A sid 1 N/A _get_sids N/A N/A self N/A N/A N/A rows N/A N/A N/A self env db_query SELECT sid, authenticated FROM session N/A N/A N/A %s:%d N/A sid auth N/A N/A sid auth rows N/A _get_list N/A N/A self sids N/A N/A N/A all_anon N/A N/A anonymous sids N/A * sids N/A all_auth N/A N/A authenticated sids N/A * sids N/A sids N/A set N/A N/A N/A self _split_sid sid N/A sid sids N/A sid N/A anonymous authenticated * N/A rows N/A N/A N/A self env db_query 
            SELECT DISTINCT s.sid, s.authenticated, s.last_visit,
                            n.value, e.value, h.value
            FROM session AS s
              LEFT JOIN session_attribute AS n
                ON (n.sid=s.sid AND n.authenticated=s.authenticated
                    AND n.name='name')
              LEFT JOIN session_attribute AS e
                ON (e.sid=s.sid AND e.authenticated=s.authenticated
                    AND e.name='email')
              LEFT JOIN session_attribute AS h
                ON (h.sid=s.sid AND h.authenticated=s.authenticated
                    AND h.name='default_handler')
            ORDER BY s.sid, s.authenticated
             N/A N/A sid authenticated last_visit name email handler rows N/A N/A N/A N/A all_anon N/A authenticated N/A all_auth authenticated N/A N/A sid authenticated sids N/A N/A N/A N/A sid authenticated N/A format_date N/A to_datetime last_visit console_date_format name email handler N/A _complete_list N/A N/A self args N/A N/A N/A all_sids N/A N/A N/A self _get_sids N/A * anonymous authenticated N/A N/A N/A set all_sids N/A set args N/A _complete_set N/A N/A self args N/A N/A N/A N/A N/A len args 1 N/A N/A N/A name email N/A N/A N/A N/A len args 2 N/A N/A N/A N/A self _get_sids N/A _complete_delete N/A N/A self args N/A N/A N/A all_sids N/A N/A N/A self _get_sids N/A anonymous N/A N/A N/A set all_sids N/A set args N/A _do_list N/A N/A self N/A sids N/A N/A N/A sids N/A N/A sids N/A * N/A headers N/A N/A _ SID N/A _ Auth N/A _ Last Visit N/A _ Name N/A _ Email N/A _ Default Handler N/A N/A print_table N/A N/A self _get_list sids headers N/A _do_add N/A N/A self sid name email N/A None None N/A N/A N/A sid authenticated N/A N/A self _split_sid sid N/A N/A N/A self env db_transaction db N/A N/A N/A N/A N/A db INSERT INTO session VALUES (%s, %s, %s) N/A sid authenticated N/A int N/A time_now N/A N/A N/A Exception N/A N/A N/A AdminCommandError N/A _ Session '%(sid)s' already exists sid sid N/A N/A name None N/A N/A N/A db INSERT INTO session_attribute VALUES (%s,%s,'name',%s) N/A sid authenticated name N/A N/A email None N/A N/A N/A db INSERT INTO session_attribute VALUES (%s,%s,'email',%s) N/A sid authenticated email N/A N/A N/A N/A self env invalidate_known_users_cache N/A _do_set N/A N/A self attr sid val N/A N/A N/A N/A attr N/A name email default_handler N/A N/A N/A AdminCommandError N/A _ Invalid attribute '%(attr)s' attr attr N/A N/A attr default_handler N/A N/A N/A val N/A val N/A self _valid_default_handlers N/A N/A N/A AdminCommandError N/A _ Invalid default_handler '%(val)s' val val N/A N/A sid authenticated N/A N/A self _split_sid sid N/A N/A N/A self env db_transaction db N/A N/A N/A N/A db SELECT sid FROM session
                         WHERE sid=%s AND authenticated=%s N/A sid authenticated N/A N/A N/A AdminCommandError N/A _ Session '%(sid)s' not found sid sid N/A N/A db 
                DELETE FROM session_attribute
                WHERE sid=%s AND authenticated=%s AND name=%s
                 N/A sid authenticated attr N/A N/A db INSERT INTO session_attribute VALUES (%s, %s, %s, %s) N/A sid authenticated attr val N/A N/A N/A N/A self env invalidate_known_users_cache N/A _do_delete N/A N/A self N/A sids N/A N/A N/A N/A self env db_transaction db N/A N/A sid sids N/A N/A N/A sid authenticated N/A N/A self _split_sid sid N/A N/A sid anonymous N/A N/A N/A db DELETE FROM session WHERE authenticated=0 N/A N/A db DELETE FROM session_attribute WHERE authenticated=0 N/A N/A N/A db 
                        DELETE FROM session
                        WHERE sid=%s AND authenticated=%s
                         N/A sid authenticated N/A N/A db 
                        DELETE FROM session_attribute
                        WHERE sid=%s AND authenticated=%s
                         N/A sid authenticated N/A N/A N/A N/A self env invalidate_known_users_cache N/A _do_purge N/A N/A self age N/A N/A N/A when N/A parse_date age hint datetime locale N/A get_console_locale N/A self env N/A N/A N/A self env db_transaction db N/A N/A ts N/A to_timestamp when N/A N/A db 
                DELETE FROM session
                WHERE authenticated=0 AND last_visit<%s
                 N/A ts N/A N/A db 
                DELETE FROM session_attribute
                WHERE authenticated=0
                      AND sid NOT IN (SELECT sid FROM session
                                      WHERE authenticated=0)
                 N/A N/A