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:... | 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.
... | 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... | 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... | 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... | 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.sta... | 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.getho... | 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 Ru... | 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... | 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><IND... | 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>RuntimeGl... | 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.joi... | 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>pars... | 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(... | 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(lin... | 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... | 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... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.