MCPcopy Create free account
hub / github.com/ActiveState/code / print_session

Function print_session

recipes/Python/577524_Python_Sessions/recipe-577524.py:292–303  ·  view source on GitHub ↗

Prints info from the current session. WARNING: ONLY FOR DEBUGGING. MAJOR SECURITY RISK!

(session)

Source from the content-addressed store, hash-verified

290 self.release()
291
292def print_session(session):
293 """
294 Prints info from the current session.
295
296 WARNING: ONLY FOR DEBUGGING. MAJOR SECURITY RISK!
297 """
298 print "<h3>Session Data</h3>"
299 print "<dl>"
300 for name in session:
301 print "<dt>%s <i>%s</i></dt>"%(name, type(session[name]))
302 print "<dd>%s</dd>"%repr(session[name])
303 print "</dl>"
304
305def main():
306 """Tester Program"""

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected