univention.portal package#
- class univention.portal.Plugins(python_path: str)[source]#
Bases:
objectRegister Plugin subclasses and iterate over them.
- Parameters:
python_path (str) – fully dotted Python path that the plugins will be found below
Subpackages#
- univention.portal.extensions package
- Submodules
- univention.portal.extensions.authenticator module
- univention.portal.extensions.cache module
- univention.portal.extensions.demo_reloader module
- univention.portal.extensions.portal module
PortalPortal.get_cache_id()Portal.get_user()Portal.login_user()Portal.login_request()Portal.logout_user()Portal.get_visible_content()Portal.get_user_links()Portal.get_menu_links()Portal.get_entries()Portal.get_folders()Portal.get_categories()Portal.auth_mode()Portal.may_be_edited()Portal.get_meta()Portal.get_announcements()Portal.refresh()Portal.score()
UMCPortalUMCPortal.auth_mode()UMCPortal.may_be_edited()UMCPortal.get_visible_content()UMCPortal.get_user_links()UMCPortal.get_menu_links()UMCPortal.get_entries()UMCPortal.get_folders()UMCPortal.get_categories()UMCPortal.get_meta()UMCPortal.get_announcements()UMCPortal.refresh()UMCPortal.get_cache_id()
- univention.portal.extensions.reloader module
- univention.portal.extensions.scorer module
- univention.portal.handlers package
Submodules#
univention.portal.config module#
univention.portal.factory module#
univention.portal.log module#
- class univention.portal.log.ShortNameFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)[source]#
Bases:
FormatterInitialize the formatter with specified format strings.
Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument. If datefmt is omitted, you get an ISO8601-like (or RFC 3339-like) format.
Use a style parameter of ‘%’, ‘{’ or ‘$’ to specify that you want to use one of %-formatting,
str.format()({}) formatting orstring.Templateformatting in your format string.Changed in version 3.2: Added the
styleparameter.- shorten = 'univention.portal'#
- format(record)[source]#
Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
univention.portal.main module#
univention.portal.user module#
univention.portal.util module#
- univention.portal.util.is_current_time_between(start_iso_datetime_str: str, end_iso_datetime_str: str) bool[source]#
Return if the current system time (datetime.now()) lies within the given range. In case, start is later than end, ignore both.
- start_iso_datetime_strstr
the first point in time that is in range
- end_iso_datetime_strstr
the last point in time that is in range
- return: bool
is datetime.now() between start_iso_datetime_str and end_iso_datetime_str, including boundaries