univention.management.console.modules.appcenter package#
- class univention.management.console.modules.appcenter.NoneCandidate[source]#
Bases:
objectMock object if package has no candidate (may happen without network connection)
- class univention.management.console.modules.appcenter.UMCProgressHandler(progress)[source]#
Bases:
HandlerInitializes the instance - basically setting the formatter to None and the filter list to empty.
- class univention.management.console.modules.appcenter.ProgressInfoHandler(package_manager)[source]#
Bases:
HandlerInitializes the instance - basically setting the formatter to None and the filter list to empty.
- class univention.management.console.modules.appcenter.ProgressPercentageHandler(package_manager)[source]#
Bases:
ProgressInfoHandlerInitializes the instance - basically setting the formatter to None and the filter list to empty.
- class univention.management.console.modules.appcenter.Instance(*args, **kwargs)[source]#
Bases:
Base,ProgressMixin- error_handling(etype, exc, etraceback)[source]#
Translate generic UDM exceptions back to LDAP exceptions.
- Parameters:
etype – The exception class.
exc – The exception instance.
etraceback – The exception traceback instance; may be None.
- keep_alive(request, *args, **kwargs)[source]#
Fix for Bug #30611: UMC kills appcenter module if no request is sent for $(ucr get umc/module/timeout). this happens if a user logs out during a very long installation. this function will be run by the frontend to always have one connection open to prevent killing the module.
- packages_sections(request, *args, **kwargs)[source]#
fills the ‘sections’ combobox in the search form
- components_query(request, *args, **kwargs)[source]#
Returns components list for the grid in the ComponentsPage.
- components_add(request)#
Writes back one or more component definitions.
Submodules#
univention.management.console.modules.appcenter.constants module#
univention.management.console.modules.appcenter.sanitizers module#
- univention.management.console.modules.appcenter.sanitizers.error_handling(etype, exc, etraceback)[source]#
univention.management.console.modules.appcenter.util module#
- univention.management.console.modules.appcenter.util.create_url(server: str, prefix: str, username: str, password: str, port: str) str[source]#
- class univention.management.console.modules.appcenter.util.HTTPSConnection(*args, **kwargs)[source]#
Bases:
HTTPSConnectionVerified HTTP Connection, Bug #30620
- class univention.management.console.modules.appcenter.util.HTTPSHandler(debuglevel=0, context=None, check_hostname=None)[source]#
Bases:
HTTPSHandler
- univention.management.console.modules.appcenter.util.get_current_ram_available()[source]#
Returns RAM currently available in MB, excluding Swap
- univention.management.console.modules.appcenter.util.component_registered(component_id, ucr)[source]#
Checks if a component is registered (enabled or disabled). Moved outside of ComponentManager to avoid dependencies for UniventionUpdater when just using Application.all()
- univention.management.console.modules.appcenter.util.component_current(component_id, ucr)[source]#
Checks if a component is enabled (not disabled!). Moved outside of ComponentManager to avoid dependencies for UniventionUpdater
- class univention.management.console.modules.appcenter.util.Changes(ucr)[source]#
Bases:
object
- class univention.management.console.modules.appcenter.util.ComponentManager(ucr, updater)[source]#
Bases:
object- put(data, super_ucr)[source]#
Does the real work of writing one component definition back. Will be called for each element in the request array of a ‘put’ call, returns one element that has to go into the result of the ‘put’ call. Function does not throw exceptions or print log messages.