MCPcopy Index your code
hub / github.com/webpy/webpy / __init__

Method __init__

web/session.py:59–71  ·  view source on GitHub ↗
(self, app, store, initializer=None)

Source from the content-addressed store, hash-verified

57 ]
58
59 def __init__(self, app, store, initializer=None):
60 self.store = store
61 self._initializer = initializer
62 self._last_cleanup_time = 0
63 self._config = utils.storage(web.config.session_parameters)
64 self._data = utils.threadeddict()
65
66 self.__getitem__ = self._data.__getitem__
67 self.__setitem__ = self._data.__setitem__
68 self.__delitem__ = self._data.__delitem__
69
70 if app:
71 app.add_processor(self._processor)
72
73 def __contains__(self, name):
74 return name in self._data

Callers 1

__init__Method · 0.45

Calls 1

add_processorMethod · 0.80

Tested by

no test coverage detected