def build_session_key(cls, session_key): if type(session_key) is str: return session_key # Prepend session prefix session_prefix = SessionPrefix.get() return '%s:%s' % (session_prefix, session_key)
def build_session_key(cls, session_key): if type(session_key) is str: return session_key # Prepend session prefix session_prefix = SessionPrefix.get() return '%s:%s' % ( session_prefix, session_key )
def on_starting_plugins(): log.debug('on_starting_plugins') SessionPrefix.increment()