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

Method encode

web/session.py:226–229  ·  view source on GitHub ↗

encodes session dict as a string

(self, session_dict)

Source from the content-addressed store, hash-verified

224 raise NotImplementedError()
225
226 def encode(self, session_dict):
227 """encodes session dict as a string"""
228 pickled = pickle.dumps(session_dict)
229 return encodebytes(pickled)
230
231 def decode(self, session_data):
232 """decodes the data to get back the session dict"""

Callers 10

testParallelSessionsMethod · 0.80
fMethod · 0.80
requestMethod · 0.80
build_resultMethod · 0.80
default_email_senderMethod · 0.80
urlquoteFunction · 0.80
_generate_session_idMethod · 0.80
decodeMethod · 0.80
__setitem__Method · 0.80
__setitem__Method · 0.80

Calls

no outgoing calls

Tested by 2

testParallelSessionsMethod · 0.64
fMethod · 0.64