6.62. umbra.managers.patchesManager

patchesManager.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the PatchesManager and Patches classes.

Others:

6.62.1. Module Attributes

umbra.managers.patchesManager.LOGGER

6.62.2. Classes

class umbra.managers.patchesManager.Patch(**kwargs)[source]

Bases: foundations.dataStructures.Structure

This class represents a storage object for PatchesManager class patch.

Parameters:**kwargs – name, path, module, apply, uid. ( Key / Value pairs )
class umbra.managers.patchesManager.PatchesManager(historyFile=None, paths=None, extension=u'py')[source]

Bases: object

This class defines the Application patches manager.

Parameters:
  • historyFile – Patches history file. ( String )
  • paths – Patches paths. ( Tuple / List )
  • extension – Patches extension. ( String )
historyFile[source]

This method is the property for self.__historyFile attribute.

Returns:self.__historyFile. ( String )
paths[source]

This method is the property for self.__paths attribute.

Returns:self.__paths. ( Tuple / List )
extension[source]

This method is the property for self.__extension attribute.

Returns:self.__extension. ( String )
patches[source]

This method is the property for self.__patches attribute.

Returns:self.__patches. ( Dictionary )
listPatches()[source]

This method returns the registered patches.

Returns:Patches list. ( List )
isPatchRegistered(patch)[source]

This method returns if the given patch is registered.

Parameters:patch – Patch. ( String )
Returns:Is patch registered. ( Boolean )
registerPatch(name, path)[source]

This method registers given patch.

Parameters:
  • name – Patch name. ( String )
  • path – Patch path. ( String )
Returns:

Method success. ( Boolean )

registerPatches()[source]

This method registers the patches.

Returns:Method success. ( Boolean )
applyPatch(patch)[source]

This method applies given patch.

Parameters:patch – Patch. ( Patch )
Returns:Method success. ( Boolean )
applyPatches()[source]

This method applies the patches.

Returns:Method success. ( Boolean )
getPatchFromUid(uid)[source]

This method returns the patch with given uid.

Parameters:uid – Patch uid. ( String )
Returns:Patch. ( Patch )

Table Of Contents

Previous topic

6.61. umbra.managers.notificationsManager

Next topic

6.63. umbra.preferences

This Page