msessionmanager Module

msessionmanager.py Helper for database object for storing session data

class mewlo.mpacks.core.session.msessionmanager.MewloSessionManager(mewlosite, debugmode)[source]

Bases: mewlo.mpacks.core.manager.modelmanager.MewloModelManager

The MewloSessionManager class helps session management.

dumps(indent=0)[source]

Return a string (with newlines and indents) that displays some debugging useful information about the object.

get_session_for_request_storage(request, flag_makesessionifnone)[source]

Get or create a session data for a request. IMPORTANT: Only the Request object should ever call this because it needs to be stored in request if we are to associate it with client and save it, etc.

get_sessionid_cookiename()[source]
lookup_or_make_sessionobject(request, sessionidinput, flag_makesessionifnone)[source]

Lookup or make new session object (note that sessionid will be None if user does not have cookie set).

sanitize_input_sessionid(sessionid)[source]

sessionid is provided by user client, sanitize it or return None on error / bad syntax.

sitecomp_usermanager()[source]

Table Of Contents

This Page