Previous topic

stalker.models.auth.Group

Next topic

stalker.models.auth.Permission

This Page

stalker.models.auth.LocalSession

Inheritance diagram of stalker.models.auth.LocalSession

class stalker.models.auth.LocalSession[source]

Bases: object

A simple temporary session object which simple stores session data.

This class will later be removed, it is here because we need a login window for the Qt user interfaces.

On initialize it will load the SessionData from the users .strc folder

__init__()[source]

Methods

__init__()
delete() removes the cache file
load() loads the data from the saved local session
save() remembers the data in user local file system
session_file_full_path()
return str:the session file full path
store_user(user) stores the given user instance

Attributes

logged_in_user returns the logged in user
load()[source]

loads the data from the saved local session

logged_in_user[source]

returns the logged in user

store_user(user)[source]

stores the given user instance

Parameters:user – The user instance.
save()[source]

remembers the data in user local file system

delete()[source]

removes the cache file

classmethod session_file_full_path()[source]
Return str:the session file full path