:py:mod:`oioioi.su` =================== .. py:module:: oioioi.su .. autoapi-nested-parse:: The SU app is used to change the current logged in user on-the-fly. In order to achieve this goal, the module introduces concept of *effective* and *real* user privileges known from Unix-like systems. The *effective* user is stored in ``request.user`` field, while the *real* in ``request.real_user``. On-the-fly means that current session variables are preserved while changing *effective* user, which may be also a pitfall if some code stores there data directly connected with current user scope. Subpackages ----------- .. toctree:: :titlesonly: :maxdepth: 3 templatetags/index.rst Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 apps/index.rst forms/index.rst middleware/index.rst models/index.rst processors/index.rst urls/index.rst utils/index.rst views/index.rst Package Contents ---------------- .. py:data:: SU_UID_SESSION_KEY :annotation: = su_effective_user_id .. py:data:: SU_BACKEND_SESSION_KEY :annotation: = su_effective_backend