signature
stringlengths
8
3.44k
body
stringlengths
0
1.41M
docstring
stringlengths
1
122k
id
stringlengths
5
17
def set(self, value, mode=None):
if mode == '<STR_LIT>':<EOL><INDENT>func = uwsgi.metric_set_max<EOL><DEDENT>elif mode == '<STR_LIT>':<EOL><INDENT>func = uwsgi.metric_set_min<EOL><DEDENT>else:<EOL><INDENT>func = uwsgi.metric_set<EOL><DEDENT>return func(self.name, value)<EOL>
Sets metric value. :param int|long value: New value. :param str|unicode mode: Update mode. * None - Unconditional update. * max - Sets metric value if it is greater that the current one. * min - Sets metric value if it is less that the current one. :rtype: bool
f13087:c0:m2
def incr(self, delta=<NUM_LIT:1>):
return uwsgi.metric_inc(self.name, delta)<EOL>
Increments the specified metric key value by the specified value. :param int delta: :rtype: bool
f13087:c0:m3
def decr(self, delta=<NUM_LIT:1>):
return uwsgi.metric_dec(self.name, delta)<EOL>
Decrements the specified metric key value by the specified value. :param int delta: :rtype: bool
f13087:c0:m4
def mul(self, value=<NUM_LIT:1>):
return uwsgi.metric_mul(self.name, value)<EOL>
Multiplies the specified metric key value by the specified value. :param int value: :rtype: bool
f13087:c0:m5
def div(self, value=<NUM_LIT:1>):
return uwsgi.metric_div(self.name, value)<EOL>
Divides the specified metric key value by the specified value. :param int value: :rtype: bool
f13087:c0:m6
@property<EOL><INDENT>def worker_id(self):<DEDENT>
return uwsgi.worker_id()<EOL>
Returns current worker ID. :rtype: int
f13088:c0:m0
@property<EOL><INDENT>def ready_for_requests(self):<DEDENT>
return uwsgi.ready()<EOL>
Returns flag indicating whether we are ready to handle requests. :rtype: bool
f13088:c0:m1
@property<EOL><INDENT>def master_pid(self):<DEDENT>
return uwsgi.masterpid()<EOL>
Return the process identifier (PID) of the uWSGI master process. :rtype: int
f13088:c0:m2
@property<EOL><INDENT>def memory(self):<DEDENT>
return uwsgi.mem()<EOL>
Returns memory usage tuple of ints: (rss, vsz). :rtype: tuple[int, int]
f13088:c0:m3
@property<EOL><INDENT>def clock(self):<DEDENT>
return uwsgi.micros()<EOL>
Returns uWSGI clock microseconds. :rtype|long
f13088:c0:m4
def get_version(self, as_tuple=False):
if as_tuple:<EOL><INDENT>return uwsgi.version_info<EOL><DEDENT>return decode(uwsgi.version)<EOL>
Returns uWSGI version string or tuple. :param bool as_tuple: :rtype: str|tuple
f13088:c0:m5
def __init__(self, id):
self.id = id<EOL>
:param int id: Mule ID
f13089:c0:m0
@classmethod<EOL><INDENT>def get_current_id(cls):<DEDENT>
return uwsgi.mule_id()<EOL>
Returns current mule ID. :rtype: int
f13089:c0:m1
@classmethod<EOL><INDENT>def get_message(cls, signals=True, farms=False, buffer_size=<NUM_LIT>, timeout=-<NUM_LIT:1>):<DEDENT>
return decode(uwsgi.mule_get_msg(signals, farms, buffer_size, timeout))<EOL>
Block until a mule message is received and return it. This can be called from multiple threads in the same programmed mule. :param bool signals: Whether to manage signals. :param bool farms: Whether to manage farms. :param int buffer_size: :param int timeout: Seconds. :rtype: str|unicode :raises ValueError: If not in a mule.
f13089:c0:m2
def send(self, message):
return uwsgi.mule_msg(message, self.id)<EOL>
Sends a message to a mule(s)/farm. :param str|unicode message: :rtype: bool :raises ValueError: If no mules, or mule ID or farm name is not recognized.
f13089:c0:m3
def __init__(self, name):
self.name = name<EOL>
:param str|unicode name: Mule farm name.
f13089:c1:m0
@property<EOL><INDENT>def is_mine(self):<DEDENT>
return uwsgi.in_farm(self.name)<EOL>
Returns flag indicating whether current mule belongs to this farm. :param str|unicode name: Farm name. :rtype: bool
f13089:c1:m1
@classmethod<EOL><INDENT>def get_message(cls):<DEDENT>
return decode(uwsgi.farm_get_msg())<EOL>
Reads a mule farm message. * http://uwsgi.readthedocs.io/en/latest/Embed.html .. warning:: Bytes are returned for Python 3. :rtype: str|unicode|None :raises ValueError: If not in a mule
f13089:c1:m2
def send(self, message):
return uwsgi.farm_msg(self.name, message)<EOL>
Sends a message to the given farm. :param str|unicode message:
f13089:c1:m3
def __init__(self, name=None, timeout=None):
self.timeout = timeout or <NUM_LIT><EOL>self.name = name<EOL>
:param str|unicode name: Cache name with optional address (if @-syntax is used). :param int timeout: Expire timeout (seconds). Default 300 (5 minutes).
f13090:c0:m0
def __contains__(self, key):
return uwsgi.cache_exists(key, self.name)<EOL>
Checks whether there is a value in the cache associated with the given key. :param str|unicode key: The cache key to check. :rtype: bool
f13090:c0:m1
@property<EOL><INDENT>def keys(self):<DEDENT>
return uwsgi.cache_keys(self.name)<EOL>
Returns a list of keys available in cache. :rtype: list :raises ValueError: If cache is unavailable.
f13090:c0:m2
def clear(self):
uwsgi.cache_clear(self.name)<EOL>
Clears cache the cache.
f13090:c0:m3
def get(self, key, default=None, as_int=False, setter=None):
if as_int:<EOL><INDENT>val = uwsgi.cache_num(key, self.name)<EOL><DEDENT>else:<EOL><INDENT>val = decode(uwsgi.cache_get(key, self.name))<EOL><DEDENT>if val is None:<EOL><INDENT>if setter is None:<EOL><INDENT>return default<EOL><DEDENT>val = setter(key)<EOL>if val is None:<EOL><INDENT>return default<EOL><DEDENT>self.set(key, val)<EOL><DEDENT>return val<EOL>
Gets a value from the cache. :param str|unicode key: The cache key to get value for. :param default: Value to return if none found in cache. :param bool as_int: Return 64bit number instead of str. :param callable setter: Setter callable to automatically set cache value if not already cached. Required to accept a key and return a value that will be cached. :rtype: str|unicode|int
f13090:c0:m4
def set(self, key, value):
return uwsgi.cache_set(key, value, self.timeout, self.name)<EOL>
Sets the specified key value. :param str|unicode key: :param int|str|unicode value: :rtype: bool
f13090:c0:m5
def delete(self, key):
uwsgi.cache_del(key, self.name)<EOL>
Deletes the given cached key from the cache. :param str|unicode key: The cache key to delete. :rtype: None
f13090:c0:m6
def incr(self, key, delta=<NUM_LIT:1>):
return uwsgi.cache_inc(key, delta, self.timeout, self.name)<EOL>
Increments the specified key value by the specified value. :param str|unicode key: :param int delta: :rtype: bool
f13090:c0:m7
def decr(self, key, delta=<NUM_LIT:1>):
return uwsgi.cache_dec(key, delta, self.timeout, self.name)<EOL>
Decrements the specified key value by the specified value. :param str|unicode key: :param int delta: :rtype: bool
f13090:c0:m8
def mul(self, key, value=<NUM_LIT:2>):
return uwsgi.cache_mul(key, value, self.timeout, self.name)<EOL>
Multiplies the specified key value by the specified value. :param str|unicode key: :param int value: :rtype: bool
f13090:c0:m9
def div(self, key, value=<NUM_LIT:2>):
return uwsgi.cache_mul(key, value, self.timeout, self.name)<EOL>
Divides the specified key value by the specified value. :param str|unicode key: :param int value: :rtype: bool
f13090:c0:m10
def recv(request_context=None, non_blocking=False):
if non_blocking:<EOL><INDENT>result = uwsgi.websocket_recv_nb(request_context)<EOL><DEDENT>else:<EOL><INDENT>result = uwsgi.websocket_recv(request_context)<EOL><DEDENT>return result<EOL>
Receives data from websocket. :param request_context: :param bool non_blocking: :rtype: bytes|str :raises IOError: If unable to receive a message.
f13092:m0
def send(message, request_context=None, binary=False):
if binary:<EOL><INDENT>return uwsgi.websocket_send_binary(message, request_context)<EOL><DEDENT>return uwsgi.websocket_send(message, request_context)<EOL>
Sends a message to websocket. :param str message: data to send :param request_context: :raises IOError: If unable to send a message.
f13092:m1
def app_1(env, start_response):
from uwsgiconf.runtime.environ import uwsgi_env<EOL>start_response('<STR_LIT>', [('<STR_LIT:Content-Type>','<STR_LIT>')])<EOL>data = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>' % uwsgi_env.get_version(),<EOL>'<STR_LIT>' % uwsgi_env.request.id,<EOL>]<EOL>return encode(data)<EOL>
This is simple WSGI application that will be served by uWSGI.
f13093:m1
def app_2(env, start_response):
import random<EOL>start_response('<STR_LIT>', [('<STR_LIT:Content-Type>','<STR_LIT>')])<EOL>data = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>' % random.randint(<NUM_LIT:1>, <NUM_LIT>),<EOL>]<EOL>return encode(data)<EOL>
This is another simple WSGI application that will be served by uWSGI.
f13093:m2
def configure():
import os<EOL>from uwsgiconf.presets.nice import PythonSection<EOL>FILE = os.path.abspath(__file__)<EOL>port = <NUM_LIT><EOL>configurations = []<EOL>for idx in range(<NUM_LIT:2>):<EOL><INDENT>alias = '<STR_LIT>' % (idx + <NUM_LIT:1>)<EOL>section = PythonSection(<EOL>touch_reload=FILE,<EOL>process_prefix=alias,<EOL>wsgi_module=FILE,<EOL>wsgi_callable=alias,<EOL>workers=<NUM_LIT:1>,<EOL>).networking.register_socket(<EOL>PythonSection.networking.sockets.http('<STR_LIT>' % port)<EOL>)<EOL>port += <NUM_LIT:1><EOL>configurations.append(<EOL>section.as_configuration(alias=alias))<EOL><DEDENT>return configurations<EOL>
Configure uWSGI. This returns several configuration objects, which will be used to spawn several uWSGI processes. Applications are on 127.0.0.1 on ports starting from 8000.
f13093:m3
def bleach(file):
LOGGER.info("<STR_LIT>".format(__name__, file))<EOL>source_file = File(file)<EOL>content = source_file.read()<EOL>for pattern in STATEMENT_SUBSTITUTE:<EOL><INDENT>matches = [match for match in re.finditer(pattern, content, re.DOTALL)]<EOL>offset = <NUM_LIT:0><EOL>for match in matches:<EOL><INDENT>start, end = match.start("<STR_LIT>"), match.end("<STR_LIT>")<EOL>substitution = "<STR_LIT>".format(STATEMENT_UPDATE_MESSAGE,<EOL>re.sub("<STR_LIT:\n>", "<STR_LIT>".format(STATEMENT_UPDATE_MESSAGE),<EOL>match.group("<STR_LIT>")))<EOL>content = "<STR_LIT>".join((content[<NUM_LIT:0>: start + offset],<EOL>substitution,<EOL>content[end + offset:]))<EOL>offset += len(substitution) - len(match.group("<STR_LIT>"))<EOL><DEDENT><DEDENT>content = foundations.strings.replace(content, STATEMENT_REPLACE)<EOL>source_file.content = [content]<EOL>source_file.write()<EOL>return True<EOL>
Sanitizes given python module. :param file: Python module file. :type file: unicode :return: Definition success. :rtype: bool
f13096:m0
def u_edit(*args):
paths = []<EOL>for path in args:<EOL><INDENT>if not os.path.exists(path):<EOL><INDENT>continue<EOL><DEDENT>paths.append(os.path.abspath(path))<EOL><DEDENT>if not paths:<EOL><INDENT>return<EOL><DEDENT>connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<EOL>connection.connect((socket.gethostbyname(socket.gethostname()), <NUM_LIT>))<EOL>connection.send("<STR_LIT>".format("<STR_LIT:\n>".join(COMMAND_TEMPLATE).format(paths)))<EOL>connection.close()<EOL>return True<EOL>
Edits given paths into Umbra. :param \*args: Arguments. :type \*args: \* :return: Definition success. :rtype: bool
f13097:m0
def _set_package_directory():
package_directory = os.path.normpath(os.path.join(os.path.dirname(__file__), "<STR_LIT>"))<EOL>package_directory not in sys.path and sys.path.append(package_directory)<EOL>
Sets the Application package directory in the path.
f13098:m0
def _override_dependencies_globals():
foundations.globals.constants.Constants.logger = manager.globals.constants.Constants.logger = Constants.logger<EOL>foundations.globals.constants.Constants.application_directory =manager.globals.constants.Constants.application_directory = Constants.application_directory<EOL>
Overrides dependencies globals.
f13098:m1
def _extend_resources_paths():
for path in (os.path.join(umbra.__path__[<NUM_LIT:0>], Constants.resources_directory),<EOL>os.path.join(os.getcwd(), umbra.__name__, Constants.resources_directory)):<EOL><INDENT>path = os.path.normpath(path)<EOL>if foundations.common.path_exists(path):<EOL><INDENT>path not in RuntimeGlobals.resources_directories and RuntimeGlobals.resources_directories.append(path)<EOL><DEDENT><DEDENT>
Extend resources paths.
f13098:m2
def _initialize_logging():
<EOL>if sys.stdout.isatty() or platform.system() in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>RuntimeGlobals.logging_console_handler = foundations.verbose.get_logging_console_handler()<EOL><DEDENT>RuntimeGlobals.logging_formatters = {"<STR_LIT>": foundations.verbose.LOGGING_DEFAULT_FORMATTER,<EOL>"<STR_LIT>": foundations.verbose.LOGGING_EXTENDED_FORMATTER,<EOL>"<STR_LIT>": foundations.verbose.LOGGING_STANDARD_FORMATTER}<EOL>
Initializes the Application logging.
f13098:m3
def _initialize_application():
RuntimeGlobals.application = umbra.ui.common.get_application_instance()<EOL>umbra.ui.common.set_window_default_icon(RuntimeGlobals.application)<EOL>RuntimeGlobals.reporter = umbra.reporter.install_exception_reporter()<EOL>
Initializes the Application.
f13098:m4
@umbra.reporter.critical_exception_handler<EOL>def _initialize_applicationUiFile():
RuntimeGlobals.ui_file = umbra.ui.common.get_resource_path(UiConstants.ui_file)<EOL>if not foundations.common.path_exists(RuntimeGlobals.ui_file):<EOL><INDENT>raise foundations.exceptions.FileExistsError("<STR_LIT>".format(<EOL>UiConstants.ui_file, Constants.application_name))<EOL><DEDENT>
Initializes the Application ui file.
f13098:m5
def show_processing(message="<STR_LIT>"):
def show_processingDecorator(object):<EOL><INDENT>"""<STR_LIT>"""<EOL>@functools.wraps(object)<EOL>def show_processingWrapper(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>RuntimeGlobals.engine.start_processing(message, warning=False)<EOL>try:<EOL><INDENT>return object(*args, **kwargs)<EOL><DEDENT>finally:<EOL><INDENT>RuntimeGlobals.engine.stop_processing(warning=False)<EOL><DEDENT><DEDENT>return show_processingWrapper<EOL><DEDENT>return show_processingDecorator<EOL>
Shows processing behavior. :param message: Operation description. :type message: unicode :return: Object. :rtype: object
f13098:m6
def encapsulate_processing(object):
@functools.wraps(object)<EOL>def encapsulate_processing_wrapper(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>RuntimeGlobals.engine._Umbra__store_processing_state()<EOL>RuntimeGlobals.engine.stop_processing(warning=False)<EOL>try:<EOL><INDENT>return object(*args, **kwargs)<EOL><DEDENT>finally:<EOL><INDENT>RuntimeGlobals.engine.stop_processing(warning=False)<EOL>RuntimeGlobals.engine._Umbra__restore_processing_state()<EOL><DEDENT><DEDENT>return encapsulate_processing_wrapper<EOL>
Encapsulates a processing operation. :param object: Object to decorate. :type object: object :return: Object. :rtype: object
f13098:m7
@umbra.reporter.critical_exception_handler<EOL>def set_user_application_data_directory(directory):
LOGGER.debug("<STR_LIT>".format(directory))<EOL>if foundations.io.set_directory(directory):<EOL><INDENT>for sub_directory in Constants.preferences_directories:<EOL><INDENT>if not foundations.io.set_directory(os.path.join(directory, sub_directory)):<EOL><INDENT>raise OSError("<STR_LIT>".format(<EOL>__name__, os.path.join(directory, sub_directory), Constants.application_name))<EOL><DEDENT><DEDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise OSError("<STR_LIT>".format(__name__,<EOL>directory,<EOL>Constants.application_name))<EOL><DEDENT>
Sets the user Application data directory. :param directory: Starting point for the directories tree creation. :type directory: unicode :return: Definition success. :rtype: bool
f13098:m8
def get_command_line_parameters_parser():
parser = optparse.OptionParser(formatter=optparse.IndentedHelpFormatter(indent_increment=<NUM_LIT:2>,<EOL>max_help_position=<NUM_LIT:8>,<EOL>width=<NUM_LIT>,<EOL>short_first=<NUM_LIT:1>),<EOL>add_help_option=None)<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store_true>",<EOL>default=False,<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store>",<EOL>type="<STR_LIT:int>",<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store>",<EOL>type="<STR_LIT:string>",<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>".format(<EOL>"<STR_LIT:U+002CU+0020>".join(sorted(RuntimeGlobals.logging_formatters))))<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store>",<EOL>type="<STR_LIT:string>",<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store_true>",<EOL>default=False,<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store_true>",<EOL>default=False,<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store>",<EOL>type="<STR_LIT:string>",<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>action="<STR_LIT:store>",<EOL>default="<STR_LIT:{}>",<EOL>type="<STR_LIT:string>",<EOL>dest="<STR_LIT>",<EOL>help="<STR_LIT>")<EOL>return parser<EOL>
Returns the command line parameters parser. :return: Parser. :rtype: Parser
f13098:m9
@umbra.reporter.critical_exception_handler<EOL>def get_logging_file(maximum_logging_files=<NUM_LIT:10>, retries=<NUM_LIT:2> ^ <NUM_LIT:16>):
logging_directory = os.path.join(RuntimeGlobals.user_application_data_directory, Constants.logging_directory)<EOL>for file in sorted(foundations.walkers.files_walker(logging_directory),<EOL>key=lambda y: os.path.getmtime(os.path.abspath(y)), reverse=True)[maximum_logging_files:]:<EOL><INDENT>try:<EOL><INDENT>os.remove(file)<EOL><DEDENT>except OSError:<EOL><INDENT>LOGGER.warning(<EOL>"<STR_LIT>".format(__name__, file, Constants.application_name))<EOL><DEDENT><DEDENT>path = None<EOL>for i in range(retries):<EOL><INDENT>path = os.path.join(RuntimeGlobals.user_application_data_directory,<EOL>Constants.logging_directory,<EOL>Constants.logging_file.format(foundations.strings.get_random_sequence()))<EOL>if not os.path.exists(path):<EOL><INDENT>break<EOL><DEDENT><DEDENT>if path is None:<EOL><INDENT>raise umbra.exceptions.EngineConfigurationError(<EOL>"<STR_LIT>".format(__name__, Constants.application_name))<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(path))<EOL>return path<EOL>
Returns the logging file path. :param maximum_logging_files: Maximum allowed logging files in the logging directory. :type maximum_logging_files: int :param retries: Number of retries to generate a unique logging file name. :type retries: int :return: Logging file path. :rtype: unicode
f13098:m10
@umbra.reporter.critical_exception_handler<EOL>def run(engine, parameters, components_paths=None, requisite_components=None, visible_components=None):
<EOL>RuntimeGlobals.parameters, RuntimeGlobals.arguments = parameters<EOL>foundations.trace.evaluate_trace_request(RuntimeGlobals.parameters.trace_modules, foundations.verbose.tracer)<EOL>if RuntimeGlobals.parameters.about:<EOL><INDENT>for line in SESSION_HEADER_TEXT:<EOL><INDENT>sys.stdout.write("<STR_LIT>".format(line))<EOL><DEDENT>foundations.core.exit(<NUM_LIT:1>)<EOL><DEDENT>sys.stdout = foundations.verbose.StandardOutputStreamer(LOGGER)<EOL>sys.stderr = foundations.verbose.StandardOutputStreamer(LOGGER)<EOL>foundations.verbose.set_verbosity_level(<NUM_LIT:4>)<EOL>if RuntimeGlobals.parameters.user_application_data_directory:<EOL><INDENT>user_application_data_directory = RuntimeGlobals.user_application_data_directory =RuntimeGlobals.parameters.user_application_data_directory<EOL><DEDENT>else:<EOL><INDENT>user_application_data_directory = RuntimeGlobals.user_application_data_directory =foundations.environment.get_user_application_data_directory()<EOL><DEDENT>if not set_user_application_data_directory(user_application_data_directory):<EOL><INDENT>raise umbra.exceptions.EngineConfigurationError(<EOL>"<STR_LIT>".format(<EOL>__name__, RuntimeGlobals.user_application_data_directory, Constants.application_name))<EOL><DEDENT>if foundations.environment.get_temporary_directory() in user_application_data_directory:<EOL><INDENT>umbra.ui.widgets.message_box.message_box("<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>".format(<EOL>Constants.application_name,<EOL>user_application_data_directory))<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(sys.executable))<EOL>LOGGER.debug("<STR_LIT>".format(PYQT_VERSION_STR))<EOL>LOGGER.debug("<STR_LIT>".format(os.getcwd()))<EOL>LOGGER.debug("<STR_LIT>".format(<EOL>RuntimeGlobals.user_application_data_directory))<EOL>LOGGER.debug("<STR_LIT>".format(Constants.application_name))<EOL>RuntimeGlobals.logging_file = get_logging_file()<EOL>RuntimeGlobals.logging_file_handler = foundations.verbose.get_logging_file_handler(<EOL>file=RuntimeGlobals.logging_file)<EOL>RuntimeGlobals.patches_file = os.path.join(RuntimeGlobals.user_application_data_directory,<EOL>Constants.patches_directory,<EOL>Constants.patches_file)<EOL>RuntimeGlobals.patches_manager = umbra.managers.patches_manager.PatchesManager(RuntimeGlobals.patches_file,<EOL>[os.path.join(path,<EOL>Constants.patches_directory)<EOL>for path in<EOL>RuntimeGlobals.resources_directories])<EOL>RuntimeGlobals.patches_manager.register_patches() and RuntimeGlobals.patches_manager.apply_patches()<EOL>RuntimeGlobals.settings_file = os.path.join(RuntimeGlobals.user_application_data_directory,<EOL>Constants.settings_directory,<EOL>Constants.settings_file)<EOL>RuntimeGlobals.settings = Preferences(RuntimeGlobals.settings_file)<EOL>LOGGER.debug("<STR_LIT>")<EOL>RuntimeGlobals.settings.set_default_layouts(("<STR_LIT>",))<EOL>foundations.common.path_exists(RuntimeGlobals.settings_file) or RuntimeGlobals.settings.set_default_preferences()<EOL>LOGGER.debug("<STR_LIT>")<EOL>RuntimeGlobals.verbosity_level = RuntimeGlobals.parameters.verbosity_levelif RuntimeGlobals.parameters.verbosity_level is not None elsefoundations.common.get_first_item(RuntimeGlobals.settings.get_key("<STR_LIT>", "<STR_LIT>").toInt())<EOL>LOGGER.debug("<STR_LIT>".format(RuntimeGlobals.verbosity_level))<EOL>foundations.verbose.set_verbosity_level(RuntimeGlobals.verbosity_level)<EOL>RuntimeGlobals.settings.set_key("<STR_LIT>", "<STR_LIT>", RuntimeGlobals.verbosity_level)<EOL>LOGGER.debug("<STR_LIT>")<EOL>logging_formatter = RuntimeGlobals.parameters.logging_formatter if RuntimeGlobals.parameters.logging_formatter is not None elsefoundations.strings.to_string(RuntimeGlobals.settings.get_key("<STR_LIT>", "<STR_LIT>").toString())<EOL>logging_formatter = logging_formatter if logging_formatter in RuntimeGlobals.logging_formatters else None<EOL>RuntimeGlobals.logging_active_formatter = logging_formatter if logging_formatter is not None else Constants.logging_default_formatter<EOL>LOGGER.debug("<STR_LIT>".format(RuntimeGlobals.logging_active_formatter))<EOL>for handler in (RuntimeGlobals.logging_console_handler, RuntimeGlobals.logging_file_handler):<EOL><INDENT>handler and handler.setFormatter(RuntimeGlobals.logging_formatters[RuntimeGlobals.logging_active_formatter])<EOL><DEDENT>RuntimeGlobals.logging_session_handler = foundations.verbose.get_logging_stream_handler()<EOL>RuntimeGlobals.logging_session_handler_stream = RuntimeGlobals.logging_session_handler.stream<EOL>LOGGER.info(Constants.logging_separators)<EOL>for line in SESSION_HEADER_TEXT:<EOL><INDENT>LOGGER.info(line)<EOL><DEDENT>LOGGER.info("<STR_LIT>".format(Constants.application_name, time.strftime('<STR_LIT>')))<EOL>LOGGER.info(Constants.logging_separators)<EOL>LOGGER.info("<STR_LIT>".format(Constants.application_name))<EOL>if RuntimeGlobals.parameters.hide_splash_screen:<EOL><INDENT>LOGGER.debug("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>LOGGER.debug("<STR_LIT>")<EOL>RuntimeGlobals.splashscreen_image = QPixmap(umbra.ui.common.get_resource_path(UiConstants.splash_screen_image))<EOL>RuntimeGlobals.splashscreen = Delayed_QSplashScreen(RuntimeGlobals.splashscreen_image, text_color=Qt.white)<EOL>RuntimeGlobals.splashscreen.show_message(<EOL>"<STR_LIT>".format(Constants.application_name, Constants.version))<EOL>RuntimeGlobals.splashscreen.show()<EOL><DEDENT>RuntimeGlobals.requests_stack = collections.deque()<EOL>RuntimeGlobals.engine = engine(parent=None,<EOL>components_paths=components_paths,<EOL>requisite_components=requisite_components,<EOL>visible_components=visible_components,<EOL>splashscreen=RuntimeGlobals.splashscreen,<EOL>requests_stack=RuntimeGlobals.requests_stack,<EOL>patches_manager=RuntimeGlobals.patches_manager,<EOL>user_application_data_directory=RuntimeGlobals.user_application_data_directory,<EOL>logging_session_handler=RuntimeGlobals.logging_session_handler,<EOL>logging_file_handler=RuntimeGlobals.logging_file_handler,<EOL>logging_console_handler=RuntimeGlobals.logging_console_handler,<EOL>logging_session_handler_stream=RuntimeGlobals.logging_session_handler_stream,<EOL>logging_active_formatter=RuntimeGlobals.logging_active_formatter,<EOL>settings=RuntimeGlobals.settings,<EOL>verbosity_level=RuntimeGlobals.verbosity_level,<EOL>parameters=RuntimeGlobals.parameters,<EOL>arguments=RuntimeGlobals.arguments)<EOL>RuntimeGlobals.engine.show()<EOL>RuntimeGlobals.engine.raise_()<EOL>return sys.exit(RuntimeGlobals.application.exec_())<EOL>
Starts the Application. :param engine: Engine. :type engine: QObject :param parameters: Command line parameters. :type parameters: tuple :param components_paths: Components components_paths. :type components_paths: tuple or list :param requisite_components: Requisite components names. :type requisite_components: tuple or list :param visible_components: Visible components names. :type visible_components: tuple or list :return: Definition success. :rtype: bool
f13098:m11
def exit(exit_code=<NUM_LIT:0>):
for line in SESSION_FOOTER_TEXT:<EOL><INDENT>LOGGER.info(line)<EOL><DEDENT>foundations.verbose.remove_logging_handler(RuntimeGlobals.logging_console_handler)<EOL>RuntimeGlobals.application.exit(exit_code)<EOL>
Exits the Application. :param exit_code: Exit code. :type exit_code: int
f13098:m12
def __new__(cls, *args, **kwargs):
RuntimeGlobals.engine = super(Umbra, cls).__new__(cls)<EOL>return RuntimeGlobals.engine<EOL>
Constructor of the class. :param \*args: Arguments. :type \*args: \* :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\* :return: Class instance. :rtype: Umbra
f13098:c0:m0
@umbra.reporter.critical_exception_handler<EOL><INDENT>def __init__(self,<EOL>parent=None,<EOL>*args,<EOL>**kwargs):<DEDENT>
<EOL>hasattr(self, "<STR_LIT>") and self.on_pre_initialisation()<EOL>LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>settings = foundations.data_structures.Structure(**{"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None,<EOL>"<STR_LIT>": None})<EOL>settings.update(dict((key, value) for key, value in kwargs.items() if key in settings))<EOL>super(Umbra, self).__init__(parent,<EOL>*args,<EOL>**dict((key, value) for key, value in kwargs.items() if key not in settings))<EOL>hasattr(self, "<STR_LIT>") and self.on_initialisation()<EOL>self.__components_paths = settings.components_paths or []<EOL>self.__requisite_components = settings.requisite_components or []<EOL>self.__visible_components = settings.visible_components or []<EOL>self.__splashscreen = settings.splashscreen<EOL>self.__timer = None<EOL>self.__requests_stack = settings.requests_stack<EOL>self.__patches_manager = settings.patches_manager<EOL>self.__components_manager = None<EOL>self.__actions_manager = None<EOL>self.__file_system_events_manager = None<EOL>self.__notifications_manager = None<EOL>self.__layouts_manager = None<EOL>self.__user_application_data_directory = settings.user_application_data_directory<EOL>self.__logging_session_handler = settings.logging_session_handler<EOL>self.__logging_file_handler = settings.logging_file_handler<EOL>self.__logging_console_handler = settings.logging_console_handler<EOL>self.__logging_session_handler_stream = settings.logging_session_handler_stream<EOL>self.__logging_active_formatter = settings.logging_active_formatter<EOL>self.__verbosity_level = settings.verbosity_level<EOL>self.__settings = settings.settings<EOL>self.__parameters = settings.parameters<EOL>self.__arguments = settings.arguments<EOL>self.__worker_threads = []<EOL>self.__is_processing = False<EOL>self.__locals = {}<EOL>self.__processing_state = None<EOL>self.__timer = QTimer(self)<EOL>self.__timer.start(Constants.default_timer_cycle)<EOL>self.__splashscreen and self.__splashscreen.show_message(<EOL>"<STR_LIT>".format(self.__class__.__name__, Constants.version),<EOL>wait_time=<NUM_LIT>)<EOL>self.__actions_manager = RuntimeGlobals.actions_manager = umbra.managers.actions_manager.ActionsManager(self)<EOL>self.__file_system_events_manager = RuntimeGlobals.file_system_events_manager =umbra.managers.file_system_events_manager.FileSystemEventsManager(self)<EOL>self.__worker_threads.append(self.__file_system_events_manager)<EOL>if not self.__parameters.deactivate_worker_threads:<EOL><INDENT>self.__file_system_events_manager.start()<EOL><DEDENT>else:<EOL><INDENT>LOGGER.info("<STR_LIT>".format(<EOL>self.__class__.__name__, "<STR_LIT>"))<EOL><DEDENT>self.__notifications_manager = RuntimeGlobals.notifications_manager =umbra.managers.notifications_manager.NotificationsManager(self)<EOL>self.__layouts_manager = RuntimeGlobals.layouts_manager = umbra.managers.layouts_manager.LayoutsManager(self)<EOL>self.set_visual_style()<EOL>umbra.ui.common.set_window_default_icon(self)<EOL>self.setAcceptDrops(True)<EOL>self.setWindowTitle("<STR_LIT>".format(Constants.application_name, Constants.version))<EOL>self.toolBar = Application_QToolBar(self)<EOL>self.addToolBar(self.toolBar)<EOL>self.Application_Progress_Status_processing = Processing(self, Qt.Window)<EOL>self.statusBar.addPermanentWidget(self.Application_Progress_Status_processing)<EOL>self.Application_Progress_Status_processing.hide()<EOL>self.__splashscreen and self.__splashscreen.show_message(<EOL>"<STR_LIT>".format(self.__class__.__name__, Constants.version),<EOL>wait_time=<NUM_LIT>)<EOL>self.__components_manager = RuntimeGlobals.components_manager = Manager(settings.components_paths)<EOL>self.__components_manager.register_components()<EOL>if not self.__components_manager.components:<EOL><INDENT>self.notifications_manager.warnify("<STR_LIT>".format(<EOL>self.__class__.__name__, Constants.application_name))<EOL><DEDENT>self.__components_manager.instantiate_components(self.__components_instantiation_callback)<EOL>self.__set_components(requisite=True)<EOL>self.__set_components(requisite=False)<EOL>self.__set_locals()<EOL>self.__timer.timeout.connect(self.__process_requests_stack)<EOL>LOGGER.debug("<STR_LIT>")<EOL>if self.__splashscreen:<EOL><INDENT>self.__splashscreen.show_message("<STR_LIT>".format(<EOL>self.__class__.__name__, Constants.version))<EOL>self.__splashscreen.hide()<EOL><DEDENT>for component in self.__components_manager.list_components():<EOL><INDENT>try:<EOL><INDENT>interface = self.__components_manager.get_interface(component)<EOL>if not interface:<EOL><INDENT>continue<EOL><DEDENT>if interface.activated:<EOL><INDENT>hasattr(interface, "<STR_LIT>") and interface.on_startup()<EOL><DEDENT><DEDENT>except Exception as error:<EOL><INDENT>umbra.reporter.base_exception_handler(umbra.exceptions.EngineInitializationError(<EOL>"<STR_LIT>".format(<EOL>component, error)))<EOL><DEDENT><DEDENT>self.__layouts_manager.restore_startup_layout()<EOL>hasattr(self, "<STR_LIT>") and self.on_post_initialisation()<EOL>
Initializes the class. :param parent: QWidget parent. :type parent: QWidget :param \*args: Arguments. :type \*args: \* :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13098:c0:m1
@property<EOL><INDENT>def timer(self):<DEDENT>
return self.__timer<EOL>
Property for **self.__timer** attribute. :return: self.__timer. :rtype: QTimer
f13098:c0:m2
@timer.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def timer(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__timer** attribute. :param value: Attribute value. :type value: QTimer
f13098:c0:m3
@timer.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def timer(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__timer** attribute.
f13098:c0:m4
@property<EOL><INDENT>def requests_stack(self):<DEDENT>
return self.__requests_stack<EOL>
Property for **self.__requests_stack** attribute. :return: self.__requests_stack. ( collections.deque )
f13098:c0:m5
@requests_stack.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def requests_stack(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__requests_stack** attribute. :param value: Attribute value. ( collections.deque )
f13098:c0:m6
@requests_stack.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def requests_stack(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__requests_stack** attribute.
f13098:c0:m7
@property<EOL><INDENT>def components_paths(self):<DEDENT>
return self.__components_paths<EOL>
Property for **self.__components_paths** attribute. :return: self.__components_paths. :rtype: tuple or list
f13098:c0:m8
@components_paths.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_paths(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__components_paths** attribute. :param value: Attribute value. :type value: tuple or list
f13098:c0:m9
@components_paths.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_paths(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__components_paths** attribute.
f13098:c0:m10
@property<EOL><INDENT>def requisite_components(self):<DEDENT>
return self.__requisite_components<EOL>
Property for **self.__requisite_components** attribute. :return: self.__requisite_components. :rtype: tuple or list
f13098:c0:m11
@requisite_components.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def requisite_components(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__requisite_components** attribute. :param value: Attribute value. :type value: tuple or list
f13098:c0:m12
@requisite_components.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def requisite_components(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__requisite_components** attribute.
f13098:c0:m13
@property<EOL><INDENT>def visible_components(self):<DEDENT>
return self.__visible_components<EOL>
Property for **self.__visible_components** attribute. :return: self.__visible_components. :rtype: tuple or list
f13098:c0:m14
@visible_components.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def visible_components(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) in (tuple, list), "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>for element in value:<EOL><INDENT>assert type(element) is str, "<STR_LIT>".format(<EOL>"<STR_LIT>", element)<EOL><DEDENT><DEDENT>self.__visible_components = value<EOL>
Setter for **self.__visible_components** attribute. :param value: Attribute value. :type value: tuple or list
f13098:c0:m15
@visible_components.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def visible_components(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__visible_components** attribute.
f13098:c0:m16
@property<EOL><INDENT>def splashscreen(self):<DEDENT>
return self.__splashscreen<EOL>
Property for **self.__splashscreen** attribute. :return: self.__splashscreen. :rtype: Delayed_QSplashScreen
f13098:c0:m17
@splashscreen.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def splashscreen(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__splashscreen** attribute. :param value: Attribute value. :type value: Delayed_QSplashScreen
f13098:c0:m18
@splashscreen.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def splashscreen(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__splashscreen** attribute.
f13098:c0:m19
@property<EOL><INDENT>def patches_manager(self):<DEDENT>
return self.__patches_manager<EOL>
Property for **self.__patches_manager** attribute. :return: self.__patches_manager. :rtype: PatchesManager
f13098:c0:m20
@patches_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def patches_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__patches_manager** attribute. :param value: Attribute value. :type value: PatchesManager
f13098:c0:m21
@patches_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def patches_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__patches_manager** attribute.
f13098:c0:m22
@property<EOL><INDENT>def components_manager(self):<DEDENT>
return self.__components_manager<EOL>
Property for **self.__components_manager** attribute. :return: self.__components_manager. :rtype: ComponentsManager
f13098:c0:m23
@components_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__components_manager** attribute. :param value: Attribute value. :type value: ComponentsManager
f13098:c0:m24
@components_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__components_manager** attribute.
f13098:c0:m25
@property<EOL><INDENT>def notifications_manager(self):<DEDENT>
return self.__notifications_manager<EOL>
Property for **self.__notifications_manager** attribute. :return: self.__notifications_manager. :rtype: NotificationsManager
f13098:c0:m26
@notifications_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def notifications_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__notifications_manager** attribute. :param value: Attribute value. :type value: NotificationsManager
f13098:c0:m27
@notifications_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def notifications_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__notifications_manager** attribute.
f13098:c0:m28
@property<EOL><INDENT>def actions_manager(self):<DEDENT>
return self.__actions_manager<EOL>
Property for **self.__actions_manager** attribute. :return: self.__actions_manager. :rtype: ActionsManager
f13098:c0:m29
@actions_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def actions_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__actions_manager** attribute. :param value: Attribute value. :type value: ActionsManager
f13098:c0:m30
@actions_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def actions_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__actions_manager** attribute.
f13098:c0:m31
@property<EOL><INDENT>def file_system_events_manager(self):<DEDENT>
return self.__file_system_events_manager<EOL>
Property for **self.__file_system_events_manager** attribute. :return: self.__file_system_events_manager. :rtype: FileSystemEventsManager
f13098:c0:m32
@file_system_events_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def file_system_events_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__file_system_events_manager** attribute. :param value: Attribute value. :type value: FileSystemEventsManager
f13098:c0:m33
@file_system_events_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def file_system_events_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__file_system_events_manager** attribute.
f13098:c0:m34
@property<EOL><INDENT>def layouts_manager(self):<DEDENT>
return self.__layouts_manager<EOL>
Property for **self.__layouts_manager** attribute. :return: self.__layouts_manager. :rtype: LayoutsManager
f13098:c0:m35
@layouts_manager.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def layouts_manager(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__layouts_manager** attribute. :param value: Attribute value. :type value: LayoutsManager
f13098:c0:m36
@layouts_manager.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def layouts_manager(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__layouts_manager** attribute.
f13098:c0:m37
@property<EOL><INDENT>def user_application_data_directory(self):<DEDENT>
return self.__user_application_data_directory<EOL>
Property for **self.__user_application_data_directory** attribute. :return: self.__user_application_data_directory. :rtype: unicode
f13098:c0:m38
@user_application_data_directory.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def user_application_data_directory(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__user_application_data_directory** attribute. :param value: Attribute value. :type value: unicode
f13098:c0:m39
@user_application_data_directory.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def user_application_data_directory(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT>"))<EOL>
Deleter for **self.__user_application_data_directory** attribute.
f13098:c0:m40
@property<EOL><INDENT>def logging_session_handler(self):<DEDENT>
return self.__logging_session_handler<EOL>
Property for **self.__logging_session_handler** attribute. :return: self.__logging_session_handler. :rtype: Handler
f13098:c0:m41
@logging_session_handler.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_session_handler(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__logging_session_handler** attribute. :param value: Attribute value. :type value: Handler
f13098:c0:m42
@logging_session_handler.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_session_handler(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__logging_session_handler** attribute.
f13098:c0:m43
@property<EOL><INDENT>def logging_file_handler(self):<DEDENT>
return self.__logging_file_handler<EOL>
Property for **self.__logging_file_handler** attribute. :return: self.__logging_file_handler. :rtype: Handler
f13098:c0:m44
@logging_file_handler.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_file_handler(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__logging_file_handler** attribute. :param value: Attribute value. :type value: Handler
f13098:c0:m45
@logging_file_handler.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_file_handler(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__logging_file_handler** attribute.
f13098:c0:m46
@property<EOL><INDENT>def logging_console_handler(self):<DEDENT>
return self.__logging_console_handler<EOL>
Property for **self.__logging_console_handler** attribute. :return: self.__logging_console_handler. :rtype: Handler
f13098:c0:m47
@logging_console_handler.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_console_handler(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__logging_console_handler** attribute. :param value: Attribute value. :type value: Handler
f13098:c0:m48
@logging_console_handler.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def logging_console_handler(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__logging_console_handler** attribute.
f13098:c0:m49