From: crouzet Date: Thu, 31 Jan 2019 11:17:33 +0000 (+0100) Subject: add a hpc mode for products, remove doc build, correct 2 small bugs X-Git-Tag: 5.3.0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9ed5d52d2534d2f4d1e741656a8854a2601c30a;p=tools%2Fsat.git add a hpc mode for products, remove doc build, correct 2 small bugs --- diff --git a/doc/build/doctrees/commands/apidoc/modules.doctree b/doc/build/doctrees/commands/apidoc/modules.doctree deleted file mode 100644 index 143e3ee..0000000 Binary files a/doc/build/doctrees/commands/apidoc/modules.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/apidoc/src.colorama.doctree b/doc/build/doctrees/commands/apidoc/src.colorama.doctree deleted file mode 100644 index bf32bb7..0000000 Binary files a/doc/build/doctrees/commands/apidoc/src.colorama.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/apidoc/src.doctree b/doc/build/doctrees/commands/apidoc/src.doctree deleted file mode 100644 index f4ed64e..0000000 Binary files a/doc/build/doctrees/commands/apidoc/src.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/application.doctree b/doc/build/doctrees/commands/application.doctree deleted file mode 100644 index 0819dda..0000000 Binary files a/doc/build/doctrees/commands/application.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/clean.doctree b/doc/build/doctrees/commands/clean.doctree deleted file mode 100644 index b8c16ec..0000000 Binary files a/doc/build/doctrees/commands/clean.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/compile.doctree b/doc/build/doctrees/commands/compile.doctree deleted file mode 100644 index 0e8e988..0000000 Binary files a/doc/build/doctrees/commands/compile.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/config.doctree b/doc/build/doctrees/commands/config.doctree deleted file mode 100644 index 05ed62b..0000000 Binary files a/doc/build/doctrees/commands/config.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/doc.doctree b/doc/build/doctrees/commands/doc.doctree deleted file mode 100644 index 9e1bad5..0000000 Binary files a/doc/build/doctrees/commands/doc.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/environ.doctree b/doc/build/doctrees/commands/environ.doctree deleted file mode 100644 index 84598b6..0000000 Binary files a/doc/build/doctrees/commands/environ.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/generate.doctree b/doc/build/doctrees/commands/generate.doctree deleted file mode 100644 index 91b6c82..0000000 Binary files a/doc/build/doctrees/commands/generate.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/launcher.doctree b/doc/build/doctrees/commands/launcher.doctree deleted file mode 100644 index fb50017..0000000 Binary files a/doc/build/doctrees/commands/launcher.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/log.doctree b/doc/build/doctrees/commands/log.doctree deleted file mode 100644 index 2339146..0000000 Binary files a/doc/build/doctrees/commands/log.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/package.doctree b/doc/build/doctrees/commands/package.doctree deleted file mode 100644 index 0f84caa..0000000 Binary files a/doc/build/doctrees/commands/package.doctree and /dev/null differ diff --git a/doc/build/doctrees/commands/prepare.doctree b/doc/build/doctrees/commands/prepare.doctree deleted file mode 100644 index fc00108..0000000 Binary files a/doc/build/doctrees/commands/prepare.doctree and /dev/null differ diff --git a/doc/build/doctrees/configuration.doctree b/doc/build/doctrees/configuration.doctree deleted file mode 100644 index f1d9e9b..0000000 Binary files a/doc/build/doctrees/configuration.doctree and /dev/null differ diff --git a/doc/build/doctrees/environment.pickle b/doc/build/doctrees/environment.pickle deleted file mode 100644 index 8ecb325..0000000 Binary files a/doc/build/doctrees/environment.pickle and /dev/null differ diff --git a/doc/build/doctrees/index.doctree b/doc/build/doctrees/index.doctree deleted file mode 100644 index bc6543b..0000000 Binary files a/doc/build/doctrees/index.doctree and /dev/null differ diff --git a/doc/build/doctrees/installation_of_sat.doctree b/doc/build/doctrees/installation_of_sat.doctree deleted file mode 100644 index 6cdc03a..0000000 Binary files a/doc/build/doctrees/installation_of_sat.doctree and /dev/null differ diff --git a/doc/build/doctrees/release_notes/release_notes_5.0.0.doctree b/doc/build/doctrees/release_notes/release_notes_5.0.0.doctree deleted file mode 100644 index 47e0137..0000000 Binary files a/doc/build/doctrees/release_notes/release_notes_5.0.0.doctree and /dev/null differ diff --git a/doc/build/doctrees/usage_of_sat.doctree b/doc/build/doctrees/usage_of_sat.doctree deleted file mode 100644 index a5ed8c2..0000000 Binary files a/doc/build/doctrees/usage_of_sat.doctree and /dev/null differ diff --git a/doc/build/doctrees/write_command.doctree b/doc/build/doctrees/write_command.doctree deleted file mode 100644 index d8cb0d7..0000000 Binary files a/doc/build/doctrees/write_command.doctree and /dev/null differ diff --git a/doc/build/html/.buildinfo b/doc/build/html/.buildinfo deleted file mode 100644 index 83f65b3..0000000 --- a/doc/build/html/.buildinfo +++ /dev/null @@ -1,4 +0,0 @@ -# Sphinx build info version 1 -# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: d7bdbf2f29518819f629c0dfc8f7331a -tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/doc/build/html/_images/sat_about.png b/doc/build/html/_images/sat_about.png deleted file mode 100644 index 600d3d8..0000000 Binary files a/doc/build/html/_images/sat_about.png and /dev/null differ diff --git a/doc/build/html/_modules/index.html b/doc/build/html/_modules/index.html deleted file mode 100644 index ef5afaa..0000000 --- a/doc/build/html/_modules/index.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - Overview: module code — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
- - -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src.html b/doc/build/html/_modules/src.html deleted file mode 100644 index ea5debb..0000000 --- a/doc/build/html/_modules/src.html +++ /dev/null @@ -1,531 +0,0 @@ - - - - - - - - src — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-
-"""\
-initial imports and utilities methods for salomeTools
-"""
-
-import os
-import shutil
-import errno
-import stat
-
-from . import pyconf
-from . import architecture
-from . import printcolors
-from . import options
-from . import system
-from . import ElementTree
-from . import logger
-from . import product
-from . import environment
-from . import fileEnviron
-from . import compilation
-from . import test_module
-from . import template
-
-import platform
-if platform.system() == "Windows" :
-    import colorama
-    colorama.init()
-
-OK_STATUS = "OK"
-KO_STATUS = "KO"
-NA_STATUS = "NA"
-KNOWNFAILURE_STATUS = "KF"
-TIMEOUT_STATUS = "TIMEOUT"
-
-CONFIG_FILENAME = "sat-config.pyconf"
-
-
[docs]class SatException(Exception): - """rename Exception Class""" - pass
- -
[docs]def ensure_path_exists(p): - """Create a path if not existing - - :param p str: The path. - """ - if not os.path.exists(p): - os.makedirs(p)
- -
[docs]def check_config_has_application( config, details = None ): - """check that the config has the key APPLICATION. Else raise an exception. - - :param config class 'common.pyconf.Config': The config. - """ - if 'APPLICATION' not in config: - message = _("An APPLICATION is required. Use 'config --list' to get" - " the list of available applications.\n") - if details : - details.append(message) - raise SatException( message )
- -
[docs]def check_config_has_profile( config, details = None ): - """\ - check that the config has the key APPLICATION.profile. - else, raise an exception. - - :param config class 'common.pyconf.Config': The config. - """ - check_config_has_application(config) - if 'profile' not in config.APPLICATION: - message = _("A profile section is required in your application.\n") - if details : - details.append(message) - raise SatException( message )
- -
[docs]def config_has_application( config ): - return 'APPLICATION' in config
- -
[docs]def get_cfg_param(config, param_name, default): - """\ - eearch for param_name value in config. - if param_name is not in config - then return default, - else return the found value - - :param config class 'common.pyconf.Config': The config. - :param param_name str: the name of the parameter to get the value - :param default str: The value to return if param_name is not in config - :return: see initial description of the function - :rtype: str - """ - if param_name in config: - return config[param_name] - return default
- - - -
[docs]def get_base_path(config): - """\ - Returns the path of the products base. - - :param config Config: The global Config instance. - :return: The path of the products base. - :rtype: str - """ - if "base" not in config.LOCAL: - local_file_path = os.path.join(config.VARS.salometoolsway, - "data", - "local.pyconf") - msg = _("Please define a base path in the file %s" % local_file_path) - raise SatException(msg) - - base_path = os.path.abspath(config.LOCAL.base) - - return base_path
- -
[docs]def get_launcher_name(config): - """\ - Returns the name of salome launcher. - - :param config Config: The global Config instance. - :return: The name of salome launcher. - :rtype: str - """ - check_config_has_application(config) - if 'profile' in config.APPLICATION and 'launcher_name' in config.APPLICATION.profile: - launcher_name = config.APPLICATION.profile.launcher_name - else: - launcher_name = 'salome' - - return launcher_name
- -
[docs]def get_log_path(config): - """\ - Returns the path of the logs. - - :param config Config: The global Config instance. - :return: The path of the logs. - :rtype: str - """ - if "log_dir" not in config.LOCAL: - local_file_path = os.path.join(config.VARS.salometoolsway, - "data", - "local.pyconf") - msg = _("Please define a log_dir in the file %s" % local_file_path) - raise SatException(msg) - - log_dir_path = os.path.abspath(config.LOCAL.log_dir) - - return log_dir_path
- -
[docs]def get_salome_version(config): - if hasattr(config.APPLICATION, 'version_salome'): - Version = config.APPLICATION.version_salome - else: - KERNEL_info = product.get_product_config(config, "KERNEL") - VERSION = os.path.join( - KERNEL_info.install_dir, - "bin", - "salome", - "VERSION") - if not os.path.isfile(VERSION): - return None - - fVERSION = open(VERSION) - Version = fVERSION.readline() - fVERSION.close() - - VersionSalome = int(only_numbers(Version)) - return VersionSalome
- -
[docs]def only_numbers(str_num): - return ''.join([nb for nb in str_num if nb in '0123456789'] or '0')
- -
[docs]def read_config_from_a_file(filePath): - try: - cfg_file = pyconf.Config(filePath) - except pyconf.ConfigError as e: - raise SatException(_("Error in configuration file: %(file)s\n %(error)s") % \ - { 'file': filePath, 'error': str(e) }) - return cfg_file
- -
[docs]def get_tmp_filename(cfg, name): - if not os.path.exists(cfg.VARS.tmp_root): - os.makedirs(cfg.VARS.tmp_root) - - return os.path.join(cfg.VARS.tmp_root, name)
- -## -# Utils class to simplify path manipulations. -
[docs]class Path: - def __init__(self, path): - self.path = str(path) - - def __add__(self, other): - return Path(os.path.join(self.path, str(other))) - - def __abs__(self): - return Path(os.path.abspath(self.path)) - - def __str__(self): - return self.path - - def __eq__(self, other): - return self.path == other.path - -
[docs] def exists(self): - return self.islink() or os.path.exists(self.path)
- - - -
[docs] def isdir(self): - return os.path.isdir(self.path)
- -
[docs] def isfile(self): - return os.path.isfile(self.path)
- -
[docs] def list(self): - return [Path(p) for p in os.listdir(self.path)]
- -
[docs] def dir(self): - return Path(os.path.dirname(self.path))
- -
[docs] def base(self): - return Path(os.path.basename(self.path))
- -
[docs] def make(self, mode=None): - os.makedirs(self.path) - if mode: - os.chmod(self.path, mode)
- -
[docs] def chmod(self, mode): - os.chmod(self.path, mode)
- -
[docs] def rm(self): - if self.islink(): - os.remove(self.path) - else: - shutil.rmtree( self.path, onerror = handleRemoveReadonly )
- -
[docs] def copy(self, path, smart=False): - if not isinstance(path, Path): - path = Path(path) - - if os.path.islink(self.path): - return self.copylink(path) - elif os.path.isdir(self.path): - return self.copydir(path, smart) - else: - return self.copyfile(path)
- -
[docs] def smartcopy(self, path): - return self.copy(path, True)
- - - - - - - -
[docs] def copydir(self, dst, smart=False): - try: - names = self.list() - - if not dst.exists(): - dst.make() - - for name in names: - if name == dst: - continue - if smart and (str(name) in [".git", "CVS", ".svn"]): - continue - srcname = self + name - dstname = dst + name - srcname.copy(dstname, smart) - return True - except: - return False
- -
[docs] def copyfile(self, path): - try: - shutil.copy2(self.path, str(path)) - return True - except: - return False
- -
[docs]def find_file_in_lpath(file_name, lpath, additional_dir = ""): - """\ - Find in all the directories in lpath list the file that has the same name - as file_name. - If it is found - then return the full path of the file - else return False. - - The additional_dir (optional) is the name of the directory to add to all - paths in lpath. - - :param file_name str: The file name to search - :param lpath List: The list of directories where to search - :param additional_dir str: The name of the additional directory - :return: the full path of the file or False if not found - :rtype: str - """ - for directory in lpath: - dir_complete = os.path.join(directory, additional_dir) - if not os.path.isdir(directory) or not os.path.isdir(dir_complete): - continue - l_files = os.listdir(dir_complete) - for file_n in l_files: - if file_n == file_name: - return os.path.join(dir_complete, file_name) - return False
- -
[docs]def handleRemoveReadonly(func, path, exc): - excvalue = exc[1] - if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES: - os.chmod(path, stat.S_IRWXU| stat.S_IRWXG| stat.S_IRWXO) # 0777 - func(path) - else: - raise
- -
[docs]def deepcopy_list(input_list): - """\ - Do a deep copy of a list - - :param input_list List: The list to copy - :return: The copy of the list - :rtype: List - """ - res = [] - for elem in input_list: - res.append(elem) - return res
- -
[docs]def remove_item_from_list(input_list, item): - """\ - Remove all occurences of item from input_list - - :param input_list List: The list to modify - :return: The without any item - :rtype: List - """ - res = [] - for elem in input_list: - if elem == item: - continue - res.append(elem) - return res
- -
[docs]def parse_date(date): - """\ - Transform YYYYMMDD_hhmmss into YYYY-MM-DD hh:mm:ss. - - :param date str: The date to transform - :return: The date in the new format - :rtype: str - """ - if len(date) != 15: - return date - res = "%s-%s-%s %s:%s:%s" % (date[0:4], - date[4:6], - date[6:8], - date[9:11], - date[11:13], - date[13:]) - return res
- -
[docs]def merge_dicts(*dict_args): - """\ - Given any number of dicts, shallow copy and merge into a new dict, - precedence goes to key value pairs in latter dicts. - """ - result = {} - for dictionary in dict_args: - result.update(dictionary) - return result
- -
[docs]def replace_in_file(filein, strin, strout): - """Replace <strin> by <strout> in file <filein>""" - shutil.move(filein, filein + "_old") - fileout= filein - filein = filein + "_old" - fin = open(filein, "r") - fout = open(fileout, "w") - for line in fin: - fout.write(line.replace(strin, strout))
- -
[docs]def get_property_in_product_cfg(product_cfg, pprty): - if not "properties" in product_cfg: - return None - if not pprty in product_cfg.properties: - return None - return product_cfg.properties[pprty]
- -
[docs]def activate_mesa_property(config): - """Add mesa property into application properties - - :param config Config: The global configuration. It must have an application! - """ - # Verify the existence of the file - if not 'properties' in config.APPLICATION: - config.APPLICATION.addMapping( 'properties', pyconf.Mapping(), None ) - config.APPLICATION.properties.use_mesa="yes"
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/ElementTree.html b/doc/build/html/_modules/src/ElementTree.html deleted file mode 100644 index a4cc3c8..0000000 --- a/doc/build/html/_modules/src/ElementTree.html +++ /dev/null @@ -1,1381 +0,0 @@ - - - - - - - - src.ElementTree — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.ElementTree

-#
-# ElementTree
-# $Id: ElementTree.py 2326 2005-03-17 07:45:21Z fredrik $
-#
-# light-weight XML support for Python 1.5.2 and later.
-#
-# history:
-# 2001-10-20 fl   created (from various sources)
-# 2001-11-01 fl   return root from parse method
-# 2002-02-16 fl   sort attributes in lexical order
-# 2002-04-06 fl   TreeBuilder refactoring, added PythonDoc markup
-# 2002-05-01 fl   finished TreeBuilder refactoring
-# 2002-07-14 fl   added basic namespace support to ElementTree.write
-# 2002-07-25 fl   added QName attribute support
-# 2002-10-20 fl   fixed encoding in write
-# 2002-11-24 fl   changed default encoding to ascii; fixed attribute encoding
-# 2002-11-27 fl   accept file objects or file names for parse/write
-# 2002-12-04 fl   moved XMLTreeBuilder back to this module
-# 2003-01-11 fl   fixed entity encoding glitch for us-ascii
-# 2003-02-13 fl   added XML literal factory
-# 2003-02-21 fl   added ProcessingInstruction/PI factory
-# 2003-05-11 fl   added tostring/fromstring helpers
-# 2003-05-26 fl   added ElementPath support
-# 2003-07-05 fl   added makeelement factory method
-# 2003-07-28 fl   added more well-known namespace prefixes
-# 2003-08-15 fl   fixed typo in ElementTree.findtext (Thomas Dartsch)
-# 2003-09-04 fl   fall back on emulator if ElementPath is not installed
-# 2003-10-31 fl   markup updates
-# 2003-11-15 fl   fixed nested namespace bug
-# 2004-03-28 fl   added XMLID helper
-# 2004-06-02 fl   added default support to findtext
-# 2004-06-08 fl   fixed encoding of non-ascii element/attribute names
-# 2004-08-23 fl   take advantage of post-2.1 expat features
-# 2005-02-01 fl   added iterparse implementation
-# 2005-03-02 fl   fixed iterparse support for pre-2.2 versions
-#
-# Copyright (c) 1999-2005 by Fredrik Lundh.  All rights reserved.
-#
-# fredrik@pythonware.com
-# http://www.pythonware.com
-#
-# --------------------------------------------------------------------
-# The ElementTree toolkit is
-#
-# Copyright (c) 1999-2005 by Fredrik Lundh
-#
-# By obtaining, using, and/or copying this software and/or its
-# associated documentation, you agree that you have read, understood,
-# and will comply with the following terms and conditions:
-#
-# Permission to use, copy, modify, and distribute this software and
-# its associated documentation for any purpose and without fee is
-# hereby granted, provided that the above copyright notice appears in
-# all copies, and that both that copyright notice and this permission
-# notice appear in supporting documentation, and that the name of
-# Secret Labs AB or the author not be used in advertising or publicity
-# pertaining to distribution of the software without specific, written
-# prior permission.
-#
-# SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
-# TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
-# ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
-# BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
-# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
-# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
-# OF THIS SOFTWARE.
-# --------------------------------------------------------------------
-
-__all__ = [
-    # public symbols
-    "Comment",
-    "dump",
-    "Element", "ElementTree",
-    "fromstring",
-    "iselement", "iterparse",
-    "parse",
-    "PI", "ProcessingInstruction",
-    "QName",
-    "SubElement",
-    "tostring",
-    "TreeBuilder",
-    "VERSION", "XML",
-    "XMLTreeBuilder",
-    ]
-
-##
-# The <b>Element</b> type is a flexible container object, designed to
-# store hierarchical data structures in memory. The type can be
-# described as a cross between a list and a dictionary.
-# <p>
-# Each element has a number of properties associated with it:
-# <ul>
-# <li>a <i>tag</i>. This is a string identifying what kind of data
-# this element represents (the element type, in other words).</li>
-# <li>a number of <i>attributes</i>, stored in a Python dictionary.</li>
-# <li>a <i>text</i> string.</li>
-# <li>an optional <i>tail</i> string.</li>
-# <li>a number of <i>child elements</i>, stored in a Python sequence</li>
-# </ul>
-#
-# To create an element instance, use the {@link #Element} or {@link
-# #SubElement} factory functions.
-# <p>
-# The {@link #ElementTree} class can be used to wrap an element
-# structure, and convert it from and to XML.
-##
-
-import string, sys, re, platform
-
-class _SimpleElementPath:
-    # emulate pre-1.2 find/findtext/findall behaviour
-    def find(self, element, tag):
-        for elem in element:
-            if elem.tag == tag:
-                return elem
-        return None
-    def findtext(self, element, tag, default=None):
-        for elem in element:
-            if elem.tag == tag:
-                return elem.text or ""
-        return default
-    def findall(self, element, tag):
-        if tag[:3] == ".//":
-            return element.getiterator(tag[3:])
-        result = []
-        for elem in element:
-            if elem.tag == tag:
-                result.append(elem)
-        return result
-
-try:
-    import ElementPath
-except ImportError:
-    # FIXME: issue warning in this case?
-    ElementPath = _SimpleElementPath()
-
-# TODO: add support for custom namespace resolvers/default namespaces
-# TODO: add improved support for incremental parsing
-
-VERSION = "1.2.6"
-
-##
-# Internal element class.  This class defines the Element interface,
-# and provides a reference implementation of this interface.
-# <p>
-# You should not create instances of this class directly.  Use the
-# appropriate factory functions instead, such as {@link #Element}
-# and {@link #SubElement}.
-#
-# @see Element
-# @see SubElement
-# @see Comment
-# @see ProcessingInstruction
-
-class _ElementInterface:
-    # <tag attrib>text<child/>...</tag>tail
-
-    ##
-    # (Attribute) Element tag.
-
-    tag = None
-
-    ##
-    # (Attribute) Element attribute dictionary.  Where possible, use
-    # {@link #_ElementInterface.get},
-    # {@link #_ElementInterface.set},
-    # {@link #_ElementInterface.keys}, and
-    # {@link #_ElementInterface.items} to access
-    # element attributes.
-
-    attrib = None
-
-    ##
-    # (Attribute) Text before first subelement.  This is either a
-    # string or the value None, if there was no text.
-
-    text = None
-
-    ##
-    # (Attribute) Text after this element's end tag, but before the
-    # next sibling element's start tag.  This is either a string or
-    # the value None, if there was no text.
-
-    tail = None # text after end tag, if any
-
-    def __init__(self, tag, attrib):
-        self.tag = tag
-        self.attrib = attrib
-        self._children = []
-
-    def __repr__(self):
-        return "<Element %s at %x>" % (self.tag, id(self))
-
-    ##
-    # Creates a new element object of the same type as this element.
-    #
-    # @param tag Element tag.
-    # @param attrib Element attributes, given as a dictionary.
-    # @return A new element instance.
-
-    def makeelement(self, tag, attrib):
-        return Element(tag, attrib)
-
-    ##
-    # Returns the number of subelements.
-    #
-    # @return The number of subelements.
-
-    def __len__(self):
-        return len(self._children)
-
-    ##
-    # Returns the given subelement.
-    #
-    # @param index What subelement to return.
-    # @return The given subelement.
-    # @exception IndexError If the given element does not exist.
-
-    def __getitem__(self, index):
-        return self._children[index]
-
-    ##
-    # Replaces the given subelement.
-    #
-    # @param index What subelement to replace.
-    # @param element The new element value.
-    # @exception IndexError If the given element does not exist.
-    # @exception AssertionError If element is not a valid object.
-
-    def __setitem__(self, index, element):
-        assert iselement(element)
-        self._children[index] = element
-
-    ##
-    # Deletes the given subelement.
-    #
-    # @param index What subelement to delete.
-    # @exception IndexError If the given element does not exist.
-
-    def __delitem__(self, index):
-        del self._children[index]
-
-    ##
-    # Returns a list containing subelements in the given range.
-    #
-    # @param start The first subelement to return.
-    # @param stop The first subelement that shouldn't be returned.
-    # @return A sequence object containing subelements.
-
-    def __getslice__(self, start, stop):
-        return self._children[start:stop]
-
-    ##
-    # Replaces a number of subelements with elements from a sequence.
-    #
-    # @param start The first subelement to replace.
-    # @param stop The first subelement that shouldn't be replaced.
-    # @param elements A sequence object with zero or more elements.
-    # @exception AssertionError If a sequence member is not a valid object.
-
-    def __setslice__(self, start, stop, elements):
-        for element in elements:
-            assert iselement(element)
-        self._children[start:stop] = list(elements)
-
-    ##
-    # Deletes a number of subelements.
-    #
-    # @param start The first subelement to delete.
-    # @param stop The first subelement to leave in there.
-
-    def __delslice__(self, start, stop):
-        del self._children[start:stop]
-
-    ##
-    # Adds a subelement to the end of this element.
-    #
-    # @param element The element to add.
-    # @exception AssertionError If a sequence member is not a valid object.
-
-    def append(self, element):
-        assert iselement(element)
-        self._children.append(element)
-
-    ##
-    # Inserts a subelement at the given position in this element.
-    #
-    # @param index Where to insert the new subelement.
-    # @exception AssertionError If the element is not a valid object.
-
-    def insert(self, index, element):
-        assert iselement(element)
-        self._children.insert(index, element)
-
-    ##
-    # Removes a matching subelement.  Unlike the <b>find</b> methods,
-    # this method compares elements based on identity, not on tag
-    # value or contents.
-    #
-    # @param element What element to remove.
-    # @exception ValueError If a matching element could not be found.
-    # @exception AssertionError If the element is not a valid object.
-
-    def remove(self, element):
-        assert iselement(element)
-        self._children.remove(element)
-
-    ##
-    # Returns all subelements.  The elements are returned in document
-    # order.
-    #
-    # @return A list of subelements.
-    # @defreturn list of Element instances
-
-    def getchildren(self):
-        return self._children
-
-    ##
-    # Finds the first matching subelement, by tag name or path.
-    #
-    # @param path What element to look for.
-    # @return The first matching element, or None if no element was found.
-    # @defreturn Element or None
-
-    def find(self, path):
-        if ElementPath.find(self, path) == None:
-            return ElementPath.find(self, path.encode())
-        return ElementPath.find(self, path)
-
-    ##
-    # Finds text for the first matching subelement, by tag name or path.
-    #
-    # @param path What element to look for.
-    # @param default What to return if the element was not found.
-    # @return The text content of the first matching element, or the
-    #     default value no element was found.  Note that if the element
-    #     has is found, but has no text content, this method returns an
-    #     empty string.
-    # @defreturn string
-
-    def findtext(self, path, default=None):
-        return ElementPath.findtext(self, path, default)
-
-    ##
-    # Finds all matching subelements, by tag name or path.
-    #
-    # @param path What element to look for.
-    # @return A list or iterator containing all matching elements,
-    #    in document order.
-    # @defreturn list of Element instances
-
-    def findall(self, path):
-        return ElementPath.findall(self, path)
-
-    ##
-    # Resets an element.  This function removes all subelements, clears
-    # all attributes, and sets the text and tail attributes to None.
-
-    def clear(self):
-        self.attrib.clear()
-        self._children = []
-        self.text = self.tail = None
-
-    ##
-    # Gets an element attribute.
-    #
-    # @param key What attribute to look for.
-    # @param default What to return if the attribute was not found.
-    # @return The attribute value, or the default value, if the
-    #     attribute was not found.
-    # @defreturn string or None
-
-    def get(self, key, default=None):
-        res = self.attrib.get(key, default)
-        if not res:
-            res = self.attrib.get(key.encode(), default)
-        if isinstance(res, bytes):
-            return res.decode()
-        else:
-            return res
-
-    ##
-    # Sets an element attribute.
-    #
-    # @param key What attribute to set.
-    # @param value The attribute value.
-
-    def set(self, key, value):
-        self.attrib[key] = value
-
-    ##
-    # Gets a list of attribute names.  The names are returned in an
-    # arbitrary order (just like for an ordinary Python dictionary).
-    #
-    # @return A list of element attribute names.
-    # @defreturn list of strings
-
-    def keys(self):
-        res = []
-        for key in self.attrib.keys():
-            if isinstance(key, bytes):
-                res.append(key.decode())
-            else:
-                res.append(key)
-        return res
-                
-    ##
-    # Gets element attributes, as a sequence.  The attributes are
-    # returned in an arbitrary order.
-    #
-    # @return A list of (name, value) tuples for all attributes.
-    # @defreturn list of (string, string) tuples
-
-    def items(self):
-        return self.attrib.items()
-
-    ##
-    # Creates a tree iterator.  The iterator loops over this element
-    # and all subelements, in document order, and returns all elements
-    # with a matching tag.
-    # <p>
-    # If the tree structure is modified during iteration, the result
-    # is undefined.
-    #
-    # @param tag What tags to look for (default is to return all elements).
-    # @return A list or iterator containing all the matching elements.
-    # @defreturn list or iterator
-
-    def getiterator(self, tag=None):
-        nodes = []
-        if tag == "*":
-            tag = None
-        if tag is None or self.tag == tag:
-            nodes.append(self)
-        for node in self._children:
-            nodes.extend(node.getiterator(tag))
-        return nodes
-
-# compatibility
-_Element = _ElementInterface
-
-##
-# Element factory.  This function returns an object implementing the
-# standard Element interface.  The exact class or type of that object
-# is implementation dependent, but it will always be compatible with
-# the {@link #_ElementInterface} class in this module.
-# <p>
-# The element name, attribute names, and attribute values can be
-# either 8-bit ASCII strings or Unicode strings.
-#
-# @param tag The element name.
-# @param attrib An optional dictionary, containing element attributes.
-# @param **extra Additional attributes, given as keyword arguments.
-# @return An element instance.
-# @defreturn Element
-
-
[docs]def Element(tag, attrib={}, **extra): - attrib = attrib.copy() - attrib.update(extra) - return _ElementInterface(tag, attrib)
- -## -# Subelement factory. This function creates an element instance, and -# appends it to an existing element. -# <p> -# The element name, attribute names, and attribute values can be -# either 8-bit ASCII strings or Unicode strings. -# -# @param parent The parent element. -# @param tag The subelement name. -# @param attrib An optional dictionary, containing element attributes. -# @param **extra Additional attributes, given as keyword arguments. -# @return An element instance. -# @defreturn Element - -
[docs]def SubElement(parent, tag, attrib={}, **extra): - attrib = attrib.copy() - attrib.update(extra) - element = parent.makeelement(tag, attrib) - parent.append(element) - return element
- -## -# Comment element factory. This factory function creates a special -# element that will be serialized as an XML comment. -# <p> -# The comment string can be either an 8-bit ASCII string or a Unicode -# string. -# -# @param text A string containing the comment string. -# @return An element instance, representing a comment. -# @defreturn Element - -
[docs]def Comment(text=None): - element = Element(Comment) - element.text = text - return element
- -## -# PI element factory. This factory function creates a special element -# that will be serialized as an XML processing instruction. -# -# @param target A string containing the PI target. -# @param text A string containing the PI contents, if any. -# @return An element instance, representing a PI. -# @defreturn Element - -
[docs]def ProcessingInstruction(target, text=None): - element = Element(ProcessingInstruction) - element.text = target - if text: - element.text = element.text + " " + text - return element
- -PI = ProcessingInstruction - -## -# QName wrapper. This can be used to wrap a QName attribute value, in -# order to get proper namespace handling on output. -# -# @param text A string containing the QName value, in the form {uri}local, -# or, if the tag argument is given, the URI part of a QName. -# @param tag Optional tag. If given, the first argument is interpreted as -# an URI, and this argument is interpreted as a local name. -# @return An opaque object, representing the QName. - -
[docs]class QName: - def __init__(self, text_or_uri, tag=None): - if tag: - text_or_uri = "{%s}%s" % (text_or_uri, tag) - self.text = text_or_uri - def __str__(self): - return self.text - def __hash__(self): - return hash(self.text) - def __cmp__(self, other): - if isinstance(other, QName): - return cmp(self.text, other.text) - return cmp(self.text, other)
- -## -# ElementTree wrapper class. This class represents an entire element -# hierarchy, and adds some extra support for serialization to and from -# standard XML. -# -# @param element Optional root element. -# @keyparam file Optional file handle or name. If given, the -# tree is initialized with the contents of this XML file. - -
[docs]class ElementTree: - - def __init__(self, element=None, file=None): - assert element is None or iselement(element) - self._root = element # first node - if file: - self.parse(file) - - ## - # Gets the root element for this tree. - # - # @return An element instance. - # @defreturn Element - -
[docs] def getroot(self): - return self._root
- - ## - # Replaces the root element for this tree. This discards the - # current contents of the tree, and replaces it with the given - # element. Use with care. - # - # @param element An element instance. - - def _setroot(self, element): - assert iselement(element) - self._root = element - - ## - # Loads an external XML document into this element tree. - # - # @param source A file name or file object. - # @param parser An optional parser instance. If not given, the - # standard {@link XMLTreeBuilder} parser is used. - # @return The document root element. - # @defreturn Element - -
[docs] def parse(self, source, parser=None): - if not hasattr(source, "read"): - # OP 14/11/2017 Ajout de traces pour essayer de decouvrir le pb - # de remontee de log des tests - #print "TRACES OP - ElementTree.py/ElementTree.parse() source = '#%s#'" %source - source = open(source, "rb") - if not parser: - parser = XMLTreeBuilder() - while 1: - data = source.read(32768) - if not data: - break - parser.feed(data) - self._root = parser.close() - return self._root
- - ## - # Creates a tree iterator for the root element. The iterator loops - # over all elements in this tree, in document order. - # - # @param tag What tags to look for (default is to return all elements) - # @return An iterator. - # @defreturn iterator - -
[docs] def getiterator(self, tag=None): - assert self._root is not None - return self._root.getiterator(tag)
- - ## - # Finds the first toplevel element with given tag. - # Same as getroot().find(path). - # - # @param path What element to look for. - # @return The first matching element, or None if no element was found. - # @defreturn Element or None - -
[docs] def find(self, path): - assert self._root is not None - if path[:1] == "/": - path = "." + path - return self._root.find(path)
- - ## - # Finds the element text for the first toplevel element with given - # tag. Same as getroot().findtext(path). - # - # @param path What toplevel element to look for. - # @param default What to return if the element was not found. - # @return The text content of the first matching element, or the - # default value no element was found. Note that if the element - # has is found, but has no text content, this method returns an - # empty string. - # @defreturn string - -
[docs] def findtext(self, path, default=None): - assert self._root is not None - if path[:1] == "/": - path = "." + path - return self._root.findtext(path, default)
- - ## - # Finds all toplevel elements with the given tag. - # Same as getroot().findall(path). - # - # @param path What element to look for. - # @return A list or iterator containing all matching elements, - # in document order. - # @defreturn list of Element instances - -
[docs] def findall(self, path): - assert self._root is not None - if path[:1] == "/": - path = "." + path - return self._root.findall(path)
- - ## - # Writes the element tree to a file, as XML. - # - # @param file A file name, or a file object opened for writing. - # @param encoding Optional output encoding (default is US-ASCII). - -
[docs] def write(self, file, encoding="us-ascii"): - assert self._root is not None - if not hasattr(file, "write"): - file = open(file, "wb") - if not encoding: - encoding = "us-ascii" - elif encoding != "utf-8" and encoding != "us-ascii": - file.write("<?xml version='1.0' encoding='%s'?>\n" % encoding) - self._write(file, self._root, encoding, {})
- - def _write(self, file, node, encoding, namespaces, margin=0): - # write XML to file - tag = node.tag - if tag is Comment: - file.write("<!-- %s -->\n" % _escape_cdata(node.text, encoding)) - elif tag is ProcessingInstruction: - file.write("<?%s?>\n" % _escape_cdata(node.text, encoding)) - else: - items = node.items() - xmlns_items = [] # new namespaces in this scope - try: - if isinstance(tag, QName) or tag[:1] == "{": - tag, xmlns = fixtag(tag, namespaces) - if xmlns: xmlns_items.append(xmlns) - except TypeError: - _raise_serialization_error(tag) - file.write(' ' * margin) - file.write(_encode("<", encoding) + _encode(tag, encoding)) - if items or xmlns_items: - items = sorted(items) # lexical order - for k, v in items: - try: - if isinstance(k, QName) or k[:1] == "{": - k, xmlns = fixtag(k, namespaces) - if xmlns: xmlns_items.append(xmlns) - except TypeError: - _raise_serialization_error(k) - try: - if isinstance(v, QName): - v, xmlns = fixtag(v, namespaces) - if xmlns: xmlns_items.append(xmlns) - except TypeError: - _raise_serialization_error(v) - file.write(" %s=\"%s\"" % (k,v)) - for k, v in xmlns_items: - file.write(" %s=\"%s\"" % (k,v)) - if node.text or len(node): - file.write(">") - if node.text: - file.write(_escape_cdata(node.text, encoding)) - if len(node) > 0: file.write("\n") - for n in node: - self._write(file, n, encoding, namespaces, margin + 2) - if len(node) > 0: file.write(' ' * margin) - file.write(_encode("</", encoding) + _encode(tag, encoding) + _encode(">\n", encoding)) - else: - file.write("/>\n") - for k, v in xmlns_items: - del namespaces[v] - if node.tail: - file.write(_escape_cdata(node.tail, encoding))
- -# -------------------------------------------------------------------- -# helpers - -## -# Checks if an object appears to be a valid element object. -# -# @param An element instance. -# @return A true value if this is an element object. -# @defreturn flag - -
[docs]def iselement(element): - # FIXME: not sure about this; might be a better idea to look - # for tag/attrib/text attributes - return isinstance(element, _ElementInterface) or hasattr(element, "tag")
- -## -# Writes an element tree or element structure to sys.stdout. This -# function should be used for debugging only. -# <p> -# The exact output format is implementation dependent. In this -# version, it's written as an ordinary XML file. -# -# @param elem An element tree or an individual element. - -
[docs]def dump(elem): - # debugging - if not isinstance(elem, ElementTree): - elem = ElementTree(elem) - elem.write(sys.stdout) - tail = elem.getroot().tail - if not tail or tail[-1] != "\n": - sys.stdout.write("\n")
- -def _encode(s, encoding): - try: - return s.encode(encoding) - except AttributeError: - return s # 1.5.2: assume the string uses the right encoding - -if sys.version[:3] == "1.5": - _escape = re.compile(r"[&<>\"\x80-\xff]+") # 1.5.2 -else: - _escape = re.compile(eval(r'u"[&<>\"\u0080-\uffff]+"')) - -_escape_map = { - "&": "&amp;", - "<": "&lt;", - ">": "&gt;", - '"': "&quot;", -} - -_namespace_map = { - # "well-known" namespace prefixes - "http://www.w3.org/XML/1998/namespace": "xml", - "http://www.w3.org/1999/xhtml": "html", - "http://www.w3.org/1999/02/22-rdf-syntax-ns#": "rdf", - "http://schemas.xmlsoap.org/wsdl/": "wsdl", -} - -def _raise_serialization_error(text): - raise TypeError( - "cannot serialize %r (type %s)" % (text, type(text).__name__) - ) - -def _encode_entity(text, pattern=_escape): - # map reserved and non-ascii characters to numerical entities - def escape_entities(m, map=_escape_map): - out = [] - append = out.append - for char in m.group(): - text = map.get(char) - if text is None: - text = "&#%d;" % ord(char) - append(text) - return string.join(out, "") - try: - return _encode(pattern.sub(escape_entities, text), "ascii") - except TypeError: - _raise_serialization_error(text) - -# -# the following functions assume an ascii-compatible encoding -# (or "utf-16") - -def _escape_cdata(text, encoding=None, replace=str.replace): - # escape character data - try: - if platform.python_version()[0] == '2': # python 2.x.y - if encoding: - try: - text = _encode(text, encoding) - except UnicodeError: - return _encode_entity(text) - - text = replace(text, "&", "&amp;") - text = replace(text, "<", "&lt;") - text = replace(text, ">", "&gt;") - text = replace(text, "####newLine####", "<br \>") - if encoding: - try: - text = _encode(text, encoding) - except UnicodeError: - return _encode_entity(text) - return text - except (TypeError, AttributeError): - _raise_serialization_error(text) - -def _escape_attrib(text, encoding=None, replace=str.replace): - # escape attribute value - try: - text = replace(text, "&", "&amp;") - text = replace(text, "'", "&apos;") # FIXME: overkill - text = replace(text, "\"", "&quot;") - text = replace(text, "<", "&lt;") - text = replace(text, ">", "&gt;") - if encoding: - try: - text = _encode(text, encoding) - except UnicodeError: - return _encode_entity(text) - return text - except (TypeError, AttributeError): - _raise_serialization_error(text) - -def fixtag(tag, namespaces): - # given a decorated tag (of the form {uri}tag), return prefixed - # tag and namespace declaration, if any - if isinstance(tag, QName): - tag = tag.text - namespace_uri, tag = string.split(tag[1:], "}", 1) - prefix = namespaces.get(namespace_uri) - if prefix is None: - prefix = _namespace_map.get(namespace_uri) - if prefix is None: - prefix = "ns%d" % len(namespaces) - namespaces[namespace_uri] = prefix - if prefix == "xml": - xmlns = None - else: - xmlns = ("xmlns:%s" % prefix, namespace_uri) - else: - xmlns = None - return "%s:%s" % (prefix, tag), xmlns - -## -# Parses an XML document into an element tree. -# -# @param source A filename or file object containing XML data. -# @param parser An optional parser instance. If not given, the -# standard {@link XMLTreeBuilder} parser is used. -# @return An ElementTree instance - -
[docs]def parse(source, parser=None): - # OP 14/11/2017 Ajout de traces pour essayer de decouvrir le pb - # de remontee de log des tests - #print "TRACES OP - ElementTree.py/parse() source = '#%s#'" %source - tree = ElementTree() - tree.parse(source, parser) - return tree
- -## -# Parses an XML document into an element tree incrementally, and reports -# what's going on to the user. -# -# @param source A filename or file object containing XML data. -# @param events A list of events to report back. If omitted, only "end" -# events are reported. -# @return A (event, elem) iterator. - -
[docs]class iterparse: - - def __init__(self, source, events=None): - if not hasattr(source, "read"): - # OP TEST - print("iterparse.__init__ source = %s" % source) - source = open(source, "rb") - self._file = source - self._events = [] - self._index = 0 - self.root = self._root = None - self._parser = XMLTreeBuilder() - # wire up the parser for event reporting - parser = self._parser._parser - append = self._events.append - if events is None: - events = ["end"] - for event in events: - if event == "start": - try: - parser.ordered_attributes = 1 - parser.specified_attributes = 1 - def handler(tag, attrib_in, event=event, append=append, - start=self._parser._start_list): - append((event, start(tag, attrib_in))) - parser.StartElementHandler = handler - except AttributeError: - def handler(tag, attrib_in, event=event, append=append, - start=self._parser._start): - append((event, start(tag, attrib_in))) - parser.StartElementHandler = handler - elif event == "end": - def handler(tag, event=event, append=append, - end=self._parser._end): - append((event, end(tag))) - parser.EndElementHandler = handler - elif event == "start-ns": - def handler(prefix, uri, event=event, append=append): - try: - uri = _encode(uri, "ascii") - except UnicodeError: - pass - append((event, (prefix or "", uri))) - parser.StartNamespaceDeclHandler = handler - elif event == "end-ns": - def handler(prefix, event=event, append=append): - append((event, None)) - parser.EndNamespaceDeclHandler = handler - -
[docs] def next(self): - while 1: - try: - item = self._events[self._index] - except IndexError: - if self._parser is None: - self.root = self._root - try: - raise StopIteration - except NameError: - raise IndexError - # load event buffer - del self._events[:] - self._index = 0 - data = self._file.read(16384) - if data: - self._parser.feed(data) - else: - self._root = self._parser.close() - self._parser = None - else: - self._index = self._index + 1 - return item
- - try: - iter - def __iter__(self): - return self - except NameError: - def __getitem__(self, index): - return self.next()
- -## -# Parses an XML document from a string constant. This function can -# be used to embed "XML literals" in Python code. -# -# @param source A string containing XML data. -# @return An Element instance. -# @defreturn Element - -
[docs]def XML(text): - parser = XMLTreeBuilder() - parser.feed(text) - return parser.close()
- -## -# Parses an XML document from a string constant, and also returns -# a dictionary which maps from element id:s to elements. -# -# @param source A string containing XML data. -# @return A tuple containing an Element instance and a dictionary. -# @defreturn (Element, dictionary) - -def XMLID(text): - parser = XMLTreeBuilder() - parser.feed(text) - tree = parser.close() - ids = {} - for elem in tree.getiterator(): - id = elem.get("id") - if id: - ids[id] = elem - return tree, ids - -## -# Parses an XML document from a string constant. Same as {@link #XML}. -# -# @def fromstring(text) -# @param source A string containing XML data. -# @return An Element instance. -# @defreturn Element - -fromstring = XML - -## -# Generates a string representation of an XML element, including all -# subelements. -# -# @param element An Element instance. -# @return An encoded string containing the XML data. -# @defreturn string - -
[docs]def tostring(element, encoding=None): - class dummy: - pass - data = [] - file = dummy() - file.write = data.append - ElementTree(element).write(file, encoding) - data2 = [] - for item in data: - if isinstance(item, bytes): - item = item.decode() - data2.append(item) - return "".join(data2)
- -## -# Generic element structure builder. This builder converts a sequence -# of {@link #TreeBuilder.start}, {@link #TreeBuilder.data}, and {@link -# #TreeBuilder.end} method calls to a well-formed element structure. -# <p> -# You can use this class to build an element structure using a custom XML -# parser, or a parser for some other XML-like format. -# -# @param element_factory Optional element factory. This factory -# is called to create new Element instances, as necessary. - -
[docs]class TreeBuilder: - - def __init__(self, element_factory=None): - self._data = [] # data collector - self._elem = [] # element stack - self._last = None # last element - self._tail = None # true if we're after an end tag - if element_factory is None: - element_factory = _ElementInterface - self._factory = element_factory - - ## - # Flushes the parser buffers, and returns the toplevel documen - # element. - # - # @return An Element instance. - # @defreturn Element - -
[docs] def close(self): - assert len(self._elem) == 0, "missing end tags" - assert self._last != None, "missing toplevel element" - return self._last
- - def _flush(self): - if self._data: - if self._last is not None: - text = "" - for item in self._data: - try: - text += item - except: - text += item.decode() - if self._tail: - assert self._last.tail is None, "internal error (tail)" - self._last.tail = text - else: - assert self._last.text is None, "internal error (text)" - self._last.text = text - self._data = [] - - ## - # Adds text to the current element. - # - # @param data A string. This should be either an 8-bit string - # containing ASCII text, or a Unicode string. - -
[docs] def data(self, data): - self._data.append(data)
- - ## - # Opens a new element. - # - # @param tag The element name. - # @param attrib A dictionary containing element attributes. - # @return The opened element. - # @defreturn Element - -
[docs] def start(self, tag, attrs): - self._flush() - self._last = elem = self._factory(tag, attrs) - if self._elem: - self._elem[-1].append(elem) - self._elem.append(elem) - self._tail = 0 - return elem
- - ## - # Closes the current element. - # - # @param tag The element name. - # @return The closed element. - # @defreturn Element - -
[docs] def end(self, tag): - self._flush() - self._last = self._elem.pop() - assert self._last.tag == tag,\ - "end tag mismatch (expected %s, got %s)" % ( - self._last.tag, tag) - self._tail = 1 - return self._last
- -## -# Element structure builder for XML source data, based on the -# <b>expat</b> parser. -# -# @keyparam target Target object. If omitted, the builder uses an -# instance of the standard {@link #TreeBuilder} class. -# @keyparam html Predefine HTML entities. This flag is not supported -# by the current implementation. -# @see #ElementTree -# @see #TreeBuilder - -
[docs]class XMLTreeBuilder: - - def __init__(self, html=0, target=None): - try: - from xml.parsers import expat - except ImportError: - raise ImportError( - "No module named expat; use SimpleXMLTreeBuilder instead" - ) - self._parser = parser = expat.ParserCreate(None, "}") - if target is None: - target = TreeBuilder() - self._target = target - self._names = {} # name memo cache - # callbacks - parser.DefaultHandlerExpand = self._default - parser.StartElementHandler = self._start - parser.EndElementHandler = self._end - parser.CharacterDataHandler = self._data - # let expat do the buffering, if supported - try: - self._parser.buffer_text = 1 - except AttributeError: - pass - # use new-style attribute handling, if supported - try: - self._parser.ordered_attributes = 1 - self._parser.specified_attributes = 1 - parser.StartElementHandler = self._start_list - except AttributeError: - pass - #encoding = None - #if not parser.returns_unicode: - # encoding = "utf-8" - # target.xml(encoding, None) - self._doctype = None - self.entity = {} - - def _fixtext(self, text): - # convert text string to ascii, if possible - try: - return _encode(text, "ascii") - except UnicodeError: - return text - - def _fixname(self, key): - # expand qname, and convert name string to ascii, if possible - try: - name = self._names[key] - except KeyError: - name = key - if "}" in name: - name = "{" + name - self._names[key] = name = self._fixtext(name) - return name - - def _start(self, tag, attrib_in): - fixname = self._fixname - tag = fixname(tag) - attrib = {} - for key, value in attrib_in.items(): - attrib[fixname(key)] = self._fixtext(value) - return self._target.start(tag, attrib) - - def _start_list(self, tag, attrib_in): - fixname = self._fixname - tag = fixname(tag) - attrib = {} - if attrib_in: - for i in range(0, len(attrib_in), 2): - attrib[fixname(attrib_in[i])] = self._fixtext(attrib_in[i+1]) - return self._target.start(tag, attrib) - - def _data(self, text): - return self._target.data(self._fixtext(text)) - - def _end(self, tag): - return self._target.end(self._fixname(tag)) - - def _default(self, text): - prefix = text[:1] - if prefix == "&": - # deal with undefined entities - try: - self._target.data(self.entity[text[1:-1]]) - except KeyError: - from xml.parsers import expat - raise expat.error( - "undefined entity %s: line %d, column %d" % - (text, self._parser.ErrorLineNumber, - self._parser.ErrorColumnNumber) - ) - elif prefix == "<" and text[:9] == "<!DOCTYPE": - self._doctype = [] # inside a doctype declaration - elif self._doctype is not None: - # parse doctype contents - if prefix == ">": - self._doctype = None - return - text = string.strip(text) - if not text: - return - self._doctype.append(text) - n = len(self._doctype) - if n > 2: - type = self._doctype[1] - if type == "PUBLIC" and n == 4: - name, type, pubid, system = self._doctype - elif type == "SYSTEM" and n == 3: - name, type, system = self._doctype - pubid = None - else: - return - if pubid: - pubid = pubid[1:-1] - self.doctype(name, pubid, system[1:-1]) - self._doctype = None - - ## - # Handles a doctype declaration. - # - # @param name Doctype name. - # @param pubid Public identifier. - # @param system System identifier. - -
[docs] def doctype(self, name, pubid, system): - pass
- - ## - # Feeds data to the parser. - # - # @param data Encoded data. - -
[docs] def feed(self, data): - # OP 14/11/2017 Ajout de traces pour essayer de decouvrir le pb - # de remontee de log des tests - #print "TRACES OP - ElementTree.py/XMLTreeBuilder.feed() data = '#%s#'" %data - self._parser.Parse(data, 0)
- - ## - # Finishes feeding data to the parser. - # - # @return An element structure. - # @defreturn Element - -
[docs] def close(self): - self._parser.Parse("", 1) # end of data - tree = self._target.close() - del self._target, self._parser # get rid of circular references - return tree
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/__init__.html b/doc/build/html/_modules/src/__init__.html deleted file mode 100644 index bfe63d7..0000000 --- a/doc/build/html/_modules/src/__init__.html +++ /dev/null @@ -1,533 +0,0 @@ - - - - - - - - src.__init__ — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.__init__

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-
-"""\
-initial imports and utilities methods for salomeTools
-"""
-
-import os
-import shutil
-import errno
-import stat
-
-from . import pyconf
-from . import architecture
-from . import printcolors
-from . import options
-from . import system
-from . import ElementTree
-from . import logger
-from . import product
-from . import environment
-from . import fileEnviron
-from . import compilation
-from . import test_module
-from . import template
-
-import platform
-if platform.system() == "Windows" :
-    import colorama
-    colorama.init()
-
-OK_STATUS = "OK"
-KO_STATUS = "KO"
-NA_STATUS = "NA"
-KNOWNFAILURE_STATUS = "KF"
-TIMEOUT_STATUS = "TIMEOUT"
-
-CONFIG_FILENAME = "sat-config.pyconf"
-
-
[docs]class SatException(Exception): - """rename Exception Class""" - pass
- -
[docs]def ensure_path_exists(p): - """Create a path if not existing - - :param p str: The path. - """ - if not os.path.exists(p): - os.makedirs(p)
- -
[docs]def check_config_has_application( config, details = None ): - """check that the config has the key APPLICATION. Else raise an exception. - - :param config class 'common.pyconf.Config': The config. - """ - if 'APPLICATION' not in config: - message = _("An APPLICATION is required. Use 'config --list' to get" - " the list of available applications.\n") - if details : - details.append(message) - raise SatException( message )
- -
[docs]def check_config_has_profile( config, details = None ): - """\ - check that the config has the key APPLICATION.profile. - else, raise an exception. - - :param config class 'common.pyconf.Config': The config. - """ - check_config_has_application(config) - if 'profile' not in config.APPLICATION: - message = _("A profile section is required in your application.\n") - if details : - details.append(message) - raise SatException( message )
- -
[docs]def config_has_application( config ): - return 'APPLICATION' in config
- -
[docs]def get_cfg_param(config, param_name, default): - """\ - eearch for param_name value in config. - if param_name is not in config - then return default, - else return the found value - - :param config class 'common.pyconf.Config': The config. - :param param_name str: the name of the parameter to get the value - :param default str: The value to return if param_name is not in config - :return: see initial description of the function - :rtype: str - """ - if param_name in config: - return config[param_name] - return default
- - - -
[docs]def get_base_path(config): - """\ - Returns the path of the products base. - - :param config Config: The global Config instance. - :return: The path of the products base. - :rtype: str - """ - if "base" not in config.LOCAL: - local_file_path = os.path.join(config.VARS.salometoolsway, - "data", - "local.pyconf") - msg = _("Please define a base path in the file %s" % local_file_path) - raise SatException(msg) - - base_path = os.path.abspath(config.LOCAL.base) - - return base_path
- -
[docs]def get_launcher_name(config): - """\ - Returns the name of salome launcher. - - :param config Config: The global Config instance. - :return: The name of salome launcher. - :rtype: str - """ - check_config_has_application(config) - if 'profile' in config.APPLICATION and 'launcher_name' in config.APPLICATION.profile: - launcher_name = config.APPLICATION.profile.launcher_name - else: - launcher_name = 'salome' - - return launcher_name
- -
[docs]def get_log_path(config): - """\ - Returns the path of the logs. - - :param config Config: The global Config instance. - :return: The path of the logs. - :rtype: str - """ - if "log_dir" not in config.LOCAL: - local_file_path = os.path.join(config.VARS.salometoolsway, - "data", - "local.pyconf") - msg = _("Please define a log_dir in the file %s" % local_file_path) - raise SatException(msg) - - log_dir_path = os.path.abspath(config.LOCAL.log_dir) - - return log_dir_path
- -
[docs]def get_salome_version(config): - if hasattr(config.APPLICATION, 'version_salome'): - Version = config.APPLICATION.version_salome - else: - KERNEL_info = product.get_product_config(config, "KERNEL") - VERSION = os.path.join( - KERNEL_info.install_dir, - "bin", - "salome", - "VERSION") - if not os.path.isfile(VERSION): - return None - - fVERSION = open(VERSION) - Version = fVERSION.readline() - fVERSION.close() - - VersionSalome = int(only_numbers(Version)) - return VersionSalome
- -
[docs]def only_numbers(str_num): - return ''.join([nb for nb in str_num if nb in '0123456789'] or '0')
- -
[docs]def read_config_from_a_file(filePath): - try: - cfg_file = pyconf.Config(filePath) - except pyconf.ConfigError as e: - raise SatException(_("Error in configuration file: %(file)s\n %(error)s") % \ - { 'file': filePath, 'error': str(e) }) - return cfg_file
- -
[docs]def get_tmp_filename(cfg, name): - if not os.path.exists(cfg.VARS.tmp_root): - os.makedirs(cfg.VARS.tmp_root) - - return os.path.join(cfg.VARS.tmp_root, name)
- -## -# Utils class to simplify path manipulations. -
[docs]class Path: - def __init__(self, path): - self.path = str(path) - - def __add__(self, other): - return Path(os.path.join(self.path, str(other))) - - def __abs__(self): - return Path(os.path.abspath(self.path)) - - def __str__(self): - return self.path - - def __eq__(self, other): - return self.path == other.path - -
[docs] def exists(self): - return self.islink() or os.path.exists(self.path)
- - - -
[docs] def isdir(self): - return os.path.isdir(self.path)
- -
[docs] def isfile(self): - return os.path.isfile(self.path)
- -
[docs] def list(self): - return [Path(p) for p in os.listdir(self.path)]
- -
[docs] def dir(self): - return Path(os.path.dirname(self.path))
- -
[docs] def base(self): - return Path(os.path.basename(self.path))
- -
[docs] def make(self, mode=None): - os.makedirs(self.path) - if mode: - os.chmod(self.path, mode)
- -
[docs] def chmod(self, mode): - os.chmod(self.path, mode)
- -
[docs] def rm(self): - if self.islink(): - os.remove(self.path) - else: - shutil.rmtree( self.path, onerror = handleRemoveReadonly )
- -
[docs] def copy(self, path, smart=False): - if not isinstance(path, Path): - path = Path(path) - - if os.path.islink(self.path): - return self.copylink(path) - elif os.path.isdir(self.path): - return self.copydir(path, smart) - else: - return self.copyfile(path)
- -
[docs] def smartcopy(self, path): - return self.copy(path, True)
- - - - - - - -
[docs] def copydir(self, dst, smart=False): - try: - names = self.list() - - if not dst.exists(): - dst.make() - - for name in names: - if name == dst: - continue - if smart and (str(name) in [".git", "CVS", ".svn"]): - continue - srcname = self + name - dstname = dst + name - srcname.copy(dstname, smart) - return True - except: - return False
- -
[docs] def copyfile(self, path): - try: - shutil.copy2(self.path, str(path)) - return True - except: - return False
- -
[docs]def find_file_in_lpath(file_name, lpath, additional_dir = ""): - """\ - Find in all the directories in lpath list the file that has the same name - as file_name. - If it is found - then return the full path of the file - else return False. - - The additional_dir (optional) is the name of the directory to add to all - paths in lpath. - - :param file_name str: The file name to search - :param lpath List: The list of directories where to search - :param additional_dir str: The name of the additional directory - :return: the full path of the file or False if not found - :rtype: str - """ - for directory in lpath: - dir_complete = os.path.join(directory, additional_dir) - if not os.path.isdir(directory) or not os.path.isdir(dir_complete): - continue - l_files = os.listdir(dir_complete) - for file_n in l_files: - if file_n == file_name: - return os.path.join(dir_complete, file_name) - return False
- -
[docs]def handleRemoveReadonly(func, path, exc): - excvalue = exc[1] - if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES: - os.chmod(path, stat.S_IRWXU| stat.S_IRWXG| stat.S_IRWXO) # 0777 - func(path) - else: - raise
- -
[docs]def deepcopy_list(input_list): - """\ - Do a deep copy of a list - - :param input_list List: The list to copy - :return: The copy of the list - :rtype: List - """ - res = [] - for elem in input_list: - res.append(elem) - return res
- -
[docs]def remove_item_from_list(input_list, item): - """\ - Remove all occurences of item from input_list - - :param input_list List: The list to modify - :return: The without any item - :rtype: List - """ - res = [] - for elem in input_list: - if elem == item: - continue - res.append(elem) - return res
- -
[docs]def parse_date(date): - """\ - Transform YYYYMMDD_hhmmss into YYYY-MM-DD hh:mm:ss. - - :param date str: The date to transform - :return: The date in the new format - :rtype: str - """ - if len(date) != 15: - return date - res = "%s-%s-%s %s:%s:%s" % (date[0:4], - date[4:6], - date[6:8], - date[9:11], - date[11:13], - date[13:]) - return res
- -
[docs]def merge_dicts(*dict_args): - """\ - Given any number of dicts, shallow copy and merge into a new dict, - precedence goes to key value pairs in latter dicts. - """ - result = {} - for dictionary in dict_args: - result.update(dictionary) - return result
- -
[docs]def replace_in_file(filein, strin, strout): - """Replace <strin> by <strout> in file <filein>""" - shutil.move(filein, filein + "_old") - fileout= filein - filein = filein + "_old" - fin = open(filein, "r") - fout = open(fileout, "w") - for line in fin: - fout.write(line.replace(strin, strout))
- -
[docs]def get_property_in_product_cfg(product_cfg, pprty): - if not "properties" in product_cfg: - return None - if not pprty in product_cfg.properties: - return None - return product_cfg.properties[pprty]
- -
[docs]def activate_mesa_property(config): - """Add mesa property into application properties - - :param config Config: The global configuration. It must have an application! - """ - # Verify the existence of the file - if not 'properties' in config.APPLICATION: - config.APPLICATION.addMapping( 'properties', src.pyconf.Mapping(), None ) - config.APPLICATION.properties.use_mesa="yes"
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/architecture.html b/doc/build/html/_modules/src/architecture.html deleted file mode 100644 index 8a9a84e..0000000 --- a/doc/build/html/_modules/src/architecture.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - src.architecture — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.architecture

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-'''
-In this file : all the stuff that can change with the architecture 
-on which SAT is running
-'''
-
-import os, sys, platform
-
-
[docs]def is_windows(): - '''method that checks windows OS - - :rtype: boolean - ''' - return platform.system() == 'Windows'
- -
[docs]def get_user(): - '''method that gets the username that launched sat - - :rtype: str - ''' - # In windows case, the USERNAME environment variable has to be set - if is_windows(): - if not os.environ.has_key('USERNAME'): - raise Exception('USERNAME environment variable not set') - return os.environ['USERNAME'] - else: # linux - import pwd - return pwd.getpwuid(os.getuid())[0]
- -def _lsb_release(args): - '''Get system information with lsb_release. - - :param args str: The arguments to give to lsb_release. - :return: The distribution. - :rtype: str - ''' - try: - path = '/usr/local/bin:/usr/bin:/bin' - lsb_path = os.getenv("LSB_PATH") - if lsb_path is not None: - path = lsb_path + ":" + path - - from subprocess import Popen, PIPE - res = Popen(['lsb_release', args], env={'PATH': path}, - stdout=PIPE).communicate()[0][:-1] - # in case of python3, convert byte to str - if isinstance(res, bytes): - res = res.decode() - return res - except OSError: - sys.stderr.write(_(u"lsb_release not installed\n")) - sys.stderr.write(_(u"You can define $LSB_PATH to give" - " the path to lsb_release\n")) - sys.exit(-1) - -
[docs]def get_distribution(codes): - '''Gets the code for the distribution - - :param codes L{Mapping}: The map containing distribution correlation table. - :return: The distribution on which salomeTools is running, regarding the - distribution correlation table contained in codes variable. - :rtype: str - ''' - if is_windows(): - return "Win" - - # Call to lsb_release - distrib = _lsb_release('-si') - if codes is not None and distrib in codes: - distrib = codes[distrib] - else: - sys.stderr.write(_(u"Unknown distribution: '%s'\n") % distrib) - sys.stderr.write(_(u"Please add your distribution to" - " src/internal_config/distrib.pyconf\n")) - sys.exit(-1) - - return distrib
- - -
[docs]def get_distrib_version(distrib, codes): - '''Gets the version of the distribution - - :param distrib str: The distribution on which the version will be found. - :param codes L{Mapping}: The map containing distribution correlation table. - :return: The version of the distribution on which salomeTools is running, - regarding the distribution correlation table contained in codes - variable. - :rtype: str - ''' - - if is_windows(): - return platform.release() - - # Call to lsb_release - version = _lsb_release('-sr') - if distrib in codes: - if version in codes[distrib]: - version = codes[distrib][version] - - if distrib == "CO": - version=version[0] #for centos, we only care for major version - return version
- -
[docs]def get_python_version(): - '''Gets the version of the running python. - - :return: the version of the running python. - :rtype: str - ''' - - # The platform python module gives the answer - return platform.python_version()
- -
[docs]def get_nb_proc(): - '''Gets the number of processors of the machine - on which salomeTools is running. - - :return: the number of processors. - :rtype: str - ''' - - try : - import multiprocessing - nb_proc=multiprocessing.cpu_count() - except : - nb_proc=int(os.sysconf('SC_NPROCESSORS_ONLN')) - return nb_proc
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/colorama/ansi.html b/doc/build/html/_modules/src/colorama/ansi.html deleted file mode 100644 index 5ac04a1..0000000 --- a/doc/build/html/_modules/src/colorama/ansi.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - - - src.colorama.ansi — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.colorama.ansi

-# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
-'''
-This module generates ANSI character codes to printing colors to terminals.
-See: http://en.wikipedia.org/wiki/ANSI_escape_code
-'''
-
-CSI = '\033['
-OSC = '\033]'
-BEL = '\007'
-
-
-
[docs]def code_to_chars(code): - return CSI + str(code) + 'm'
- -
[docs]def set_title(title): - return OSC + '2;' + title + BEL
- -
[docs]def clear_screen(mode=2): - return CSI + str(mode) + 'J'
- -
[docs]def clear_line(mode=2): - return CSI + str(mode) + 'K'
- - -
[docs]class AnsiCodes(object): - def __init__(self): - # the subclasses declare class attributes which are numbers. - # Upon instantiation we define instance attributes, which are the same - # as the class attributes but wrapped with the ANSI escape sequence - for name in dir(self): - if not name.startswith('_'): - value = getattr(self, name) - setattr(self, name, code_to_chars(value))
- - -
[docs]class AnsiCursor(object): -
[docs] def UP(self, n=1): - return CSI + str(n) + 'A'
-
[docs] def DOWN(self, n=1): - return CSI + str(n) + 'B'
-
[docs] def FORWARD(self, n=1): - return CSI + str(n) + 'C'
-
[docs] def BACK(self, n=1): - return CSI + str(n) + 'D'
-
[docs] def POS(self, x=1, y=1): - return CSI + str(y) + ';' + str(x) + 'H'
- - -
[docs]class AnsiFore(AnsiCodes): - BLACK = 30 - RED = 31 - GREEN = 32 - YELLOW = 33 - BLUE = 34 - MAGENTA = 35 - CYAN = 36 - WHITE = 37 - RESET = 39 - - # These are fairly well supported, but not part of the standard. - LIGHTBLACK_EX = 90 - LIGHTRED_EX = 91 - LIGHTGREEN_EX = 92 - LIGHTYELLOW_EX = 93 - LIGHTBLUE_EX = 94 - LIGHTMAGENTA_EX = 95 - LIGHTCYAN_EX = 96 - LIGHTWHITE_EX = 97
- - -
[docs]class AnsiBack(AnsiCodes): - BLACK = 40 - RED = 41 - GREEN = 42 - YELLOW = 43 - BLUE = 44 - MAGENTA = 45 - CYAN = 46 - WHITE = 47 - RESET = 49 - - # These are fairly well supported, but not part of the standard. - LIGHTBLACK_EX = 100 - LIGHTRED_EX = 101 - LIGHTGREEN_EX = 102 - LIGHTYELLOW_EX = 103 - LIGHTBLUE_EX = 104 - LIGHTMAGENTA_EX = 105 - LIGHTCYAN_EX = 106 - LIGHTWHITE_EX = 107
- - -
[docs]class AnsiStyle(AnsiCodes): - BRIGHT = 1 - DIM = 2 - NORMAL = 22 - RESET_ALL = 0
- -Fore = AnsiFore() -Back = AnsiBack() -Style = AnsiStyle() -Cursor = AnsiCursor() -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/colorama/ansitowin32.html b/doc/build/html/_modules/src/colorama/ansitowin32.html deleted file mode 100644 index 095b674..0000000 --- a/doc/build/html/_modules/src/colorama/ansitowin32.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - - - src.colorama.ansitowin32 — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.colorama.ansitowin32

-# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
-import re
-import sys
-import os
-
-from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style
-from .winterm import WinTerm, WinColor, WinStyle
-from .win32 import windll, winapi_test
-
-
-winterm = None
-if windll is not None:
-    winterm = WinTerm()
-
-
-
[docs]def is_stream_closed(stream): - return not hasattr(stream, 'closed') or stream.closed
- - -
[docs]def is_a_tty(stream): - return hasattr(stream, 'isatty') and stream.isatty()
- - -
[docs]class StreamWrapper(object): - ''' - Wraps a stream (such as stdout), acting as a transparent proxy for all - attribute access apart from method 'write()', which is delegated to our - Converter instance. - ''' - def __init__(self, wrapped, converter): - # double-underscore everything to prevent clashes with names of - # attributes on the wrapped stream object. - self.__wrapped = wrapped - self.__convertor = converter - - def __getattr__(self, name): - return getattr(self.__wrapped, name) - -
[docs] def write(self, text): - self.__convertor.write(text)
- - -
[docs]class AnsiToWin32(object): - ''' - Implements a 'write()' method which, on Windows, will strip ANSI character - sequences from the text, and if outputting to a tty, will convert them into - win32 function calls. - ''' - ANSI_CSI_RE = re.compile('\001?\033\[((?:\d|;)*)([a-zA-Z])\002?') # Control Sequence Introducer - ANSI_OSC_RE = re.compile('\001?\033\]((?:.|;)*?)(\x07)\002?') # Operating System Command - - def __init__(self, wrapped, convert=None, strip=None, autoreset=False): - # The wrapped stream (normally sys.stdout or sys.stderr) - self.wrapped = wrapped - - # should we reset colors to defaults after every .write() - self.autoreset = autoreset - - # create the proxy wrapping our output stream - self.stream = StreamWrapper(wrapped, self) - - on_windows = os.name == 'nt' - # We test if the WinAPI works, because even if we are on Windows - # we may be using a terminal that doesn't support the WinAPI - # (e.g. Cygwin Terminal). In this case it's up to the terminal - # to support the ANSI codes. - conversion_supported = on_windows and winapi_test() - - # should we strip ANSI sequences from our output? - if strip is None: - strip = conversion_supported or (not is_stream_closed(wrapped) and not is_a_tty(wrapped)) - self.strip = strip - - # should we should convert ANSI sequences into win32 calls? - if convert is None: - convert = conversion_supported and not is_stream_closed(wrapped) and is_a_tty(wrapped) - self.convert = convert - - # dict of ansi codes to win32 functions and parameters - self.win32_calls = self.get_win32_calls() - - # are we wrapping stderr? - self.on_stderr = self.wrapped is sys.stderr - -
[docs] def should_wrap(self): - ''' - True if this class is actually needed. If false, then the output - stream will not be affected, nor will win32 calls be issued, so - wrapping stdout is not actually required. This will generally be - False on non-Windows platforms, unless optional functionality like - autoreset has been requested using kwargs to init() - ''' - return self.convert or self.strip or self.autoreset
- -
[docs] def get_win32_calls(self): - if self.convert and winterm: - return { - AnsiStyle.RESET_ALL: (winterm.reset_all, ), - AnsiStyle.BRIGHT: (winterm.style, WinStyle.BRIGHT), - AnsiStyle.DIM: (winterm.style, WinStyle.NORMAL), - AnsiStyle.NORMAL: (winterm.style, WinStyle.NORMAL), - AnsiFore.BLACK: (winterm.fore, WinColor.BLACK), - AnsiFore.RED: (winterm.fore, WinColor.RED), - AnsiFore.GREEN: (winterm.fore, WinColor.GREEN), - AnsiFore.YELLOW: (winterm.fore, WinColor.YELLOW), - AnsiFore.BLUE: (winterm.fore, WinColor.BLUE), - AnsiFore.MAGENTA: (winterm.fore, WinColor.MAGENTA), - AnsiFore.CYAN: (winterm.fore, WinColor.CYAN), - AnsiFore.WHITE: (winterm.fore, WinColor.GREY), - AnsiFore.RESET: (winterm.fore, ), - AnsiFore.LIGHTBLACK_EX: (winterm.fore, WinColor.BLACK, True), - AnsiFore.LIGHTRED_EX: (winterm.fore, WinColor.RED, True), - AnsiFore.LIGHTGREEN_EX: (winterm.fore, WinColor.GREEN, True), - AnsiFore.LIGHTYELLOW_EX: (winterm.fore, WinColor.YELLOW, True), - AnsiFore.LIGHTBLUE_EX: (winterm.fore, WinColor.BLUE, True), - AnsiFore.LIGHTMAGENTA_EX: (winterm.fore, WinColor.MAGENTA, True), - AnsiFore.LIGHTCYAN_EX: (winterm.fore, WinColor.CYAN, True), - AnsiFore.LIGHTWHITE_EX: (winterm.fore, WinColor.GREY, True), - AnsiBack.BLACK: (winterm.back, WinColor.BLACK), - AnsiBack.RED: (winterm.back, WinColor.RED), - AnsiBack.GREEN: (winterm.back, WinColor.GREEN), - AnsiBack.YELLOW: (winterm.back, WinColor.YELLOW), - AnsiBack.BLUE: (winterm.back, WinColor.BLUE), - AnsiBack.MAGENTA: (winterm.back, WinColor.MAGENTA), - AnsiBack.CYAN: (winterm.back, WinColor.CYAN), - AnsiBack.WHITE: (winterm.back, WinColor.GREY), - AnsiBack.RESET: (winterm.back, ), - AnsiBack.LIGHTBLACK_EX: (winterm.back, WinColor.BLACK, True), - AnsiBack.LIGHTRED_EX: (winterm.back, WinColor.RED, True), - AnsiBack.LIGHTGREEN_EX: (winterm.back, WinColor.GREEN, True), - AnsiBack.LIGHTYELLOW_EX: (winterm.back, WinColor.YELLOW, True), - AnsiBack.LIGHTBLUE_EX: (winterm.back, WinColor.BLUE, True), - AnsiBack.LIGHTMAGENTA_EX: (winterm.back, WinColor.MAGENTA, True), - AnsiBack.LIGHTCYAN_EX: (winterm.back, WinColor.CYAN, True), - AnsiBack.LIGHTWHITE_EX: (winterm.back, WinColor.GREY, True), - } - return dict()
- -
[docs] def write(self, text): - if self.strip or self.convert: - self.write_and_convert(text) - else: - self.wrapped.write(text) - self.wrapped.flush() - if self.autoreset: - self.reset_all()
- - -
[docs] def reset_all(self): - if self.convert: - self.call_win32('m', (0,)) - elif not self.strip and not is_stream_closed(self.wrapped): - self.wrapped.write(Style.RESET_ALL)
- - -
[docs] def write_and_convert(self, text): - ''' - Write the given text to our wrapped stream, stripping any ANSI - sequences from the text, and optionally converting them into win32 - calls. - ''' - cursor = 0 - text = self.convert_osc(text) - for match in self.ANSI_CSI_RE.finditer(text): - start, end = match.span() - self.write_plain_text(text, cursor, start) - self.convert_ansi(*match.groups()) - cursor = end - self.write_plain_text(text, cursor, len(text))
- - -
[docs] def write_plain_text(self, text, start, end): - if start < end: - self.wrapped.write(text[start:end]) - self.wrapped.flush()
- - -
[docs] def convert_ansi(self, paramstring, command): - if self.convert: - params = self.extract_params(command, paramstring) - self.call_win32(command, params)
- - -
[docs] def extract_params(self, command, paramstring): - if command in 'Hf': - params = tuple(int(p) if len(p) != 0 else 1 for p in paramstring.split(';')) - while len(params) < 2: - # defaults: - params = params + (1,) - else: - params = tuple(int(p) for p in paramstring.split(';') if len(p) != 0) - if len(params) == 0: - # defaults: - if command in 'JKm': - params = (0,) - elif command in 'ABCD': - params = (1,) - - return params
- - -
[docs] def call_win32(self, command, params): - if command == 'm': - for param in params: - if param in self.win32_calls: - func_args = self.win32_calls[param] - func = func_args[0] - args = func_args[1:] - kwargs = dict(on_stderr=self.on_stderr) - func(*args, **kwargs) - elif command in 'J': - winterm.erase_screen(params[0], on_stderr=self.on_stderr) - elif command in 'K': - winterm.erase_line(params[0], on_stderr=self.on_stderr) - elif command in 'Hf': # cursor position - absolute - winterm.set_cursor_position(params, on_stderr=self.on_stderr) - elif command in 'ABCD': # cursor position - relative - n = params[0] - # A - up, B - down, C - forward, D - back - x, y = {'A': (0, -n), 'B': (0, n), 'C': (n, 0), 'D': (-n, 0)}[command] - winterm.cursor_adjust(x, y, on_stderr=self.on_stderr)
- - -
[docs] def convert_osc(self, text): - for match in self.ANSI_OSC_RE.finditer(text): - start, end = match.span() - text = text[:start] + text[end:] - paramstring, command = match.groups() - if command in '\x07': # \x07 = BEL - params = paramstring.split(";") - # 0 - change title and icon (we will only change title) - # 1 - change icon (we don't support this) - # 2 - change title - if params[0] in '02': - winterm.set_title(params[1]) - return text
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/colorama/initialise.html b/doc/build/html/_modules/src/colorama/initialise.html deleted file mode 100644 index 65cfa79..0000000 --- a/doc/build/html/_modules/src/colorama/initialise.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - - src.colorama.initialise — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.colorama.initialise

-# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
-import atexit
-import contextlib
-import sys
-
-from .ansitowin32 import AnsiToWin32
-
-
-orig_stdout = None
-orig_stderr = None
-
-wrapped_stdout = None
-wrapped_stderr = None
-
-atexit_done = False
-
-
-
[docs]def reset_all(): - if AnsiToWin32 is not None: # Issue #74: objects might become None at exit - AnsiToWin32(orig_stdout).reset_all()
- - -
[docs]def init(autoreset=False, convert=None, strip=None, wrap=True): - - if not wrap and any([autoreset, convert, strip]): - raise ValueError('wrap=False conflicts with any other arg=True') - - global wrapped_stdout, wrapped_stderr - global orig_stdout, orig_stderr - - orig_stdout = sys.stdout - orig_stderr = sys.stderr - - if sys.stdout is None: - wrapped_stdout = None - else: - sys.stdout = wrapped_stdout = \ - wrap_stream(orig_stdout, convert, strip, autoreset, wrap) - if sys.stderr is None: - wrapped_stderr = None - else: - sys.stderr = wrapped_stderr = \ - wrap_stream(orig_stderr, convert, strip, autoreset, wrap) - - global atexit_done - if not atexit_done: - atexit.register(reset_all) - atexit_done = True
- - -
[docs]def deinit(): - if orig_stdout is not None: - sys.stdout = orig_stdout - if orig_stderr is not None: - sys.stderr = orig_stderr
- - -
[docs]@contextlib.contextmanager -def colorama_text(*args, **kwargs): - init(*args, **kwargs) - try: - yield - finally: - deinit()
- - -
[docs]def reinit(): - if wrapped_stdout is not None: - sys.stdout = wrapped_stdout - if wrapped_stderr is not None: - sys.stderr = wrapped_stderr
- - -
[docs]def wrap_stream(stream, convert, strip, autoreset, wrap): - if wrap: - wrapper = AnsiToWin32(stream, - convert=convert, strip=strip, autoreset=autoreset) - if wrapper.should_wrap(): - stream = wrapper.stream - return stream
- - -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/colorama/win32.html b/doc/build/html/_modules/src/colorama/win32.html deleted file mode 100644 index 54a765c..0000000 --- a/doc/build/html/_modules/src/colorama/win32.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - src.colorama.win32 — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.colorama.win32

-# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
-
-# from winbase.h
-STDOUT = -11
-STDERR = -12
-
-try:
-    import ctypes
-    from ctypes import LibraryLoader
-    windll = LibraryLoader(ctypes.WinDLL)
-    from ctypes import wintypes
-except (AttributeError, ImportError):
-    windll = None
-    SetConsoleTextAttribute = lambda *_: None
-    winapi_test = lambda *_: None
-else:
-    from ctypes import byref, Structure, c_char, POINTER
-
-    COORD = wintypes._COORD
-
-    class CONSOLE_SCREEN_BUFFER_INFO(Structure):
-        """struct in wincon.h."""
-        _fields_ = [
-            ("dwSize", COORD),
-            ("dwCursorPosition", COORD),
-            ("wAttributes", wintypes.WORD),
-            ("srWindow", wintypes.SMALL_RECT),
-            ("dwMaximumWindowSize", COORD),
-        ]
-        def __str__(self):
-            return '(%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d)' % (
-                self.dwSize.Y, self.dwSize.X
-                , self.dwCursorPosition.Y, self.dwCursorPosition.X
-                , self.wAttributes
-                , self.srWindow.Top, self.srWindow.Left, self.srWindow.Bottom, self.srWindow.Right
-                , self.dwMaximumWindowSize.Y, self.dwMaximumWindowSize.X
-            )
-
-    _GetStdHandle = windll.kernel32.GetStdHandle
-    _GetStdHandle.argtypes = [
-        wintypes.DWORD,
-    ]
-    _GetStdHandle.restype = wintypes.HANDLE
-
-    _GetConsoleScreenBufferInfo = windll.kernel32.GetConsoleScreenBufferInfo
-    _GetConsoleScreenBufferInfo.argtypes = [
-        wintypes.HANDLE,
-        POINTER(CONSOLE_SCREEN_BUFFER_INFO),
-    ]
-    _GetConsoleScreenBufferInfo.restype = wintypes.BOOL
-
-    _SetConsoleTextAttribute = windll.kernel32.SetConsoleTextAttribute
-    _SetConsoleTextAttribute.argtypes = [
-        wintypes.HANDLE,
-        wintypes.WORD,
-    ]
-    _SetConsoleTextAttribute.restype = wintypes.BOOL
-
-    _SetConsoleCursorPosition = windll.kernel32.SetConsoleCursorPosition
-    _SetConsoleCursorPosition.argtypes = [
-        wintypes.HANDLE,
-        COORD,
-    ]
-    _SetConsoleCursorPosition.restype = wintypes.BOOL
-
-    _FillConsoleOutputCharacterA = windll.kernel32.FillConsoleOutputCharacterA
-    _FillConsoleOutputCharacterA.argtypes = [
-        wintypes.HANDLE,
-        c_char,
-        wintypes.DWORD,
-        COORD,
-        POINTER(wintypes.DWORD),
-    ]
-    _FillConsoleOutputCharacterA.restype = wintypes.BOOL
-
-    _FillConsoleOutputAttribute = windll.kernel32.FillConsoleOutputAttribute
-    _FillConsoleOutputAttribute.argtypes = [
-        wintypes.HANDLE,
-        wintypes.WORD,
-        wintypes.DWORD,
-        COORD,
-        POINTER(wintypes.DWORD),
-    ]
-    _FillConsoleOutputAttribute.restype = wintypes.BOOL
-
-    _SetConsoleTitleW = windll.kernel32.SetConsoleTitleA
-    _SetConsoleTitleW.argtypes = [
-        wintypes.LPCSTR
-    ]
-    _SetConsoleTitleW.restype = wintypes.BOOL
-
-    handles = {
-        STDOUT: _GetStdHandle(STDOUT),
-        STDERR: _GetStdHandle(STDERR),
-    }
-
-
[docs] def winapi_test(): - handle = handles[STDOUT] - csbi = CONSOLE_SCREEN_BUFFER_INFO() - success = _GetConsoleScreenBufferInfo( - handle, byref(csbi)) - return bool(success)
- - def GetConsoleScreenBufferInfo(stream_id=STDOUT): - handle = handles[stream_id] - csbi = CONSOLE_SCREEN_BUFFER_INFO() - success = _GetConsoleScreenBufferInfo( - handle, byref(csbi)) - return csbi - -
[docs] def SetConsoleTextAttribute(stream_id, attrs): - handle = handles[stream_id] - return _SetConsoleTextAttribute(handle, attrs)
- - def SetConsoleCursorPosition(stream_id, position, adjust=True): - position = COORD(*position) - # If the position is out of range, do nothing. - if position.Y <= 0 or position.X <= 0: - return - # Adjust for Windows' SetConsoleCursorPosition: - # 1. being 0-based, while ANSI is 1-based. - # 2. expecting (x,y), while ANSI uses (y,x). - adjusted_position = COORD(position.Y - 1, position.X - 1) - if adjust: - # Adjust for viewport's scroll position - sr = GetConsoleScreenBufferInfo(STDOUT).srWindow - adjusted_position.Y += sr.Top - adjusted_position.X += sr.Left - # Resume normal processing - handle = handles[stream_id] - return _SetConsoleCursorPosition(handle, adjusted_position) - - def FillConsoleOutputCharacter(stream_id, char, length, start): - handle = handles[stream_id] - char = c_char(char.encode()) - length = wintypes.DWORD(length) - num_written = wintypes.DWORD(0) - # Note that this is hard-coded for ANSI (vs wide) bytes. - success = _FillConsoleOutputCharacterA( - handle, char, length, start, byref(num_written)) - return num_written.value - - def FillConsoleOutputAttribute(stream_id, attr, length, start): - ''' FillConsoleOutputAttribute( hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten )''' - handle = handles[stream_id] - attribute = wintypes.WORD(attr) - length = wintypes.DWORD(length) - num_written = wintypes.DWORD(0) - # Note that this is hard-coded for ANSI (vs wide) bytes. - return _FillConsoleOutputAttribute( - handle, attribute, length, start, byref(num_written)) - - def SetConsoleTitle(title): - return _SetConsoleTitleW(title) -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/colorama/winterm.html b/doc/build/html/_modules/src/colorama/winterm.html deleted file mode 100644 index f2418fe..0000000 --- a/doc/build/html/_modules/src/colorama/winterm.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - - src.colorama.winterm — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.colorama.winterm

-# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
-from . import win32
-
-
-# from wincon.h
-
[docs]class WinColor(object): - BLACK = 0 - BLUE = 1 - GREEN = 2 - CYAN = 3 - RED = 4 - MAGENTA = 5 - YELLOW = 6 - GREY = 7
- -# from wincon.h -
[docs]class WinStyle(object): - NORMAL = 0x00 # dim text, dim background - BRIGHT = 0x08 # bright text, dim background - BRIGHT_BACKGROUND = 0x80 # dim text, bright background
- -
[docs]class WinTerm(object): - - def __init__(self): - self._default = win32.GetConsoleScreenBufferInfo(win32.STDOUT).wAttributes - self.set_attrs(self._default) - self._default_fore = self._fore - self._default_back = self._back - self._default_style = self._style - # In order to emulate LIGHT_EX in windows, we borrow the BRIGHT style. - # So that LIGHT_EX colors and BRIGHT style do not clobber each other, - # we track them separately, since LIGHT_EX is overwritten by Fore/Back - # and BRIGHT is overwritten by Style codes. - self._light = 0 - -
[docs] def get_attrs(self): - return self._fore + self._back * 16 + (self._style | self._light)
- -
[docs] def set_attrs(self, value): - self._fore = value & 7 - self._back = (value >> 4) & 7 - self._style = value & (WinStyle.BRIGHT | WinStyle.BRIGHT_BACKGROUND)
- -
[docs] def reset_all(self, on_stderr=None): - self.set_attrs(self._default) - self.set_console(attrs=self._default)
- -
[docs] def fore(self, fore=None, light=False, on_stderr=False): - if fore is None: - fore = self._default_fore - self._fore = fore - # Emulate LIGHT_EX with BRIGHT Style - if light: - self._light |= WinStyle.BRIGHT - else: - self._light &= ~WinStyle.BRIGHT - self.set_console(on_stderr=on_stderr)
- -
[docs] def back(self, back=None, light=False, on_stderr=False): - if back is None: - back = self._default_back - self._back = back - # Emulate LIGHT_EX with BRIGHT_BACKGROUND Style - if light: - self._light |= WinStyle.BRIGHT_BACKGROUND - else: - self._light &= ~WinStyle.BRIGHT_BACKGROUND - self.set_console(on_stderr=on_stderr)
- -
[docs] def style(self, style=None, on_stderr=False): - if style is None: - style = self._default_style - self._style = style - self.set_console(on_stderr=on_stderr)
- -
[docs] def set_console(self, attrs=None, on_stderr=False): - if attrs is None: - attrs = self.get_attrs() - handle = win32.STDOUT - if on_stderr: - handle = win32.STDERR - win32.SetConsoleTextAttribute(handle, attrs)
- -
[docs] def get_position(self, handle): - position = win32.GetConsoleScreenBufferInfo(handle).dwCursorPosition - # Because Windows coordinates are 0-based, - # and win32.SetConsoleCursorPosition expects 1-based. - position.X += 1 - position.Y += 1 - return position
- -
[docs] def set_cursor_position(self, position=None, on_stderr=False): - if position is None: - # I'm not currently tracking the position, so there is no default. - # position = self.get_position() - return - handle = win32.STDOUT - if on_stderr: - handle = win32.STDERR - win32.SetConsoleCursorPosition(handle, position)
- -
[docs] def cursor_adjust(self, x, y, on_stderr=False): - handle = win32.STDOUT - if on_stderr: - handle = win32.STDERR - position = self.get_position(handle) - adjusted_position = (position.Y + y, position.X + x) - win32.SetConsoleCursorPosition(handle, adjusted_position, adjust=False)
- -
[docs] def erase_screen(self, mode=0, on_stderr=False): - # 0 should clear from the cursor to the end of the screen. - # 1 should clear from the cursor to the beginning of the screen. - # 2 should clear the entire screen, and move cursor to (1,1) - handle = win32.STDOUT - if on_stderr: - handle = win32.STDERR - csbi = win32.GetConsoleScreenBufferInfo(handle) - # get the number of character cells in the current buffer - cells_in_screen = csbi.dwSize.X * csbi.dwSize.Y - # get number of character cells before current cursor position - cells_before_cursor = csbi.dwSize.X * csbi.dwCursorPosition.Y + csbi.dwCursorPosition.X - if mode == 0: - from_coord = csbi.dwCursorPosition - cells_to_erase = cells_in_screen - cells_before_cursor - if mode == 1: - from_coord = win32.COORD(0, 0) - cells_to_erase = cells_before_cursor - elif mode == 2: - from_coord = win32.COORD(0, 0) - cells_to_erase = cells_in_screen - # fill the entire screen with blanks - win32.FillConsoleOutputCharacter(handle, ' ', cells_to_erase, from_coord) - # now set the buffer's attributes accordingly - win32.FillConsoleOutputAttribute(handle, self.get_attrs(), cells_to_erase, from_coord) - if mode == 2: - # put the cursor where needed - win32.SetConsoleCursorPosition(handle, (1, 1))
- -
[docs] def erase_line(self, mode=0, on_stderr=False): - # 0 should clear from the cursor to the end of the line. - # 1 should clear from the cursor to the beginning of the line. - # 2 should clear the entire line. - handle = win32.STDOUT - if on_stderr: - handle = win32.STDERR - csbi = win32.GetConsoleScreenBufferInfo(handle) - if mode == 0: - from_coord = csbi.dwCursorPosition - cells_to_erase = csbi.dwSize.X - csbi.dwCursorPosition.X - if mode == 1: - from_coord = win32.COORD(0, csbi.dwCursorPosition.Y) - cells_to_erase = csbi.dwCursorPosition.X - elif mode == 2: - from_coord = win32.COORD(0, csbi.dwCursorPosition.Y) - cells_to_erase = csbi.dwSize.X - # fill the entire screen with blanks - win32.FillConsoleOutputCharacter(handle, ' ', cells_to_erase, from_coord) - # now set the buffer's attributes accordingly - win32.FillConsoleOutputAttribute(handle, self.get_attrs(), cells_to_erase, from_coord)
- -
[docs] def set_title(self, title): - win32.SetConsoleTitle(title)
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/compilation.html b/doc/build/html/_modules/src/compilation.html deleted file mode 100644 index 3dcc1d4..0000000 --- a/doc/build/html/_modules/src/compilation.html +++ /dev/null @@ -1,583 +0,0 @@ - - - - - - - - src.compilation — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.compilation

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import os
-import subprocess
-import sys
-import shutil
-
-import src
-
-C_COMPILE_ENV_LIST = ["CC",
-                      "CXX",
-                      "F77",
-                      "CFLAGS",
-                      "CXXFLAGS",
-                      "LIBS",
-                      "LDFLAGS"]
-
-
[docs]class Builder: - """Class to handle all construction steps, like cmake, configure, make, ... - """ - def __init__(self, - config, - logger, - product_info, - options = src.options.OptResult(), - check_src=True): - self.config = config - self.logger = logger - self.options = options - self.product_info = product_info - self.build_dir = src.Path(self.product_info.build_dir) - self.source_dir = src.Path(self.product_info.source_dir) - self.install_dir = src.Path(self.product_info.install_dir) - self.header = "" - self.debug_mode = False - if "debug" in self.product_info and self.product_info.debug == "yes": - self.debug_mode = True - self.verbose_mode = False - if "verbose" in self.product_info and self.product_info.verbose == "yes": - self.verbose_mode = True - - ## - # Shortcut method to log in log file. -
[docs] def log(self, text, level, showInfo=True): - self.logger.write(text, level, showInfo) - self.logger.logTxtFile.write(src.printcolors.cleancolor(text)) - self.logger.flush()
- - ## - # Shortcut method to log a command. -
[docs] def log_command(self, command): - self.log("> %s\n" % command, 5)
- - ## - # Prepares the environment. - # Build two environment: one for building and one for testing (launch). -
[docs] def prepare(self): - - if not self.build_dir.exists(): - # create build dir - self.build_dir.make() - - self.log(' build_dir = %s\n' % str(self.build_dir), 4) - self.log(' install_dir = %s\n' % str(self.install_dir), 4) - self.log('\n', 4) - - # add products in depend and opt_depend list recursively - environ_info = src.product.get_product_dependencies(self.config, - self.product_info) - #environ_info.append(self.product_info.name) - - # create build environment - self.build_environ = src.environment.SalomeEnviron(self.config, - src.environment.Environ(dict(os.environ)), - True) - self.build_environ.silent = (self.config.USER.output_verbose_level < 5) - self.build_environ.set_full_environ(self.logger, environ_info) - - # create runtime environment - self.launch_environ = src.environment.SalomeEnviron(self.config, - src.environment.Environ(dict(os.environ)), - False) - self.launch_environ.silent = True # no need to show here - self.launch_environ.set_full_environ(self.logger, environ_info) - - for ee in C_COMPILE_ENV_LIST: - vv = self.build_environ.get(ee) - if len(vv) > 0: - self.log(" %s = %s\n" % (ee, vv), 4, False) - - return 0
- - ## - # Runs cmake with the given options. -
[docs] def cmake(self, options=""): - - cmake_option = options - # cmake_option +=' -DCMAKE_VERBOSE_MAKEFILE=ON -DSALOME_CMAKE_DEBUG=ON' - if 'cmake_options' in self.product_info: - cmake_option += " %s " % " ".join( - self.product_info.cmake_options.split()) - - # add debug option - if self.debug_mode: - cmake_option += " -DCMAKE_BUILD_TYPE=Debug" - else : - cmake_option += " -DCMAKE_BUILD_TYPE=Release" - - # add verbose option if specified in application for this product. - if self.verbose_mode: - cmake_option += " -DCMAKE_VERBOSE_MAKEFILE=ON" - - # In case CMAKE_GENERATOR is defined in environment, - # use it in spite of automatically detect it - if 'cmake_generator' in self.config.APPLICATION: - cmake_option += " -DCMAKE_GENERATOR=%s" \ - % self.config.APPLICATION.cmake_generator - - command = ("cmake %s -DCMAKE_INSTALL_PREFIX=%s %s" % - (cmake_option, self.install_dir, self.source_dir)) - - self.log_command(command) - # for key in sorted(self.build_environ.environ.environ.keys()): - # print key, " ", self.build_environ.environ.environ[key] - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - - self.put_txt_log_in_appli_log_dir("cmake") - if res == 0: - return res - else: - return 1
- - ## - # Runs build_configure with the given options. -
[docs] def build_configure(self, options=""): - - if 'buildconfigure_options' in self.product_info: - options += " %s " % self.product_info.buildconfigure_options - - command = str('%s/build_configure') % (self.source_dir) - command = command + " " + options - self.log_command(command) - - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - self.put_txt_log_in_appli_log_dir("build_configure") - if res == 0: - return res - else: - return 1
- - ## - # Runs configure with the given options. -
[docs] def configure(self, options=""): - - if 'configure_options' in self.product_info: - options += " %s " % self.product_info.configure_options - - command = "%s/configure --prefix=%s" % (self.source_dir, - str(self.install_dir)) - - command = command + " " + options - self.log_command(command) - - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - - self.put_txt_log_in_appli_log_dir("configure") - if res == 0: - return res - else: - return 1
- -
[docs] def hack_libtool(self): - if not os.path.exists(str(self.build_dir + 'libtool')): - return - - lf = open(os.path.join(str(self.build_dir), "libtool"), 'r') - for line in lf.readlines(): - if 'hack_libtool' in line: - return - - # fix libtool by replacing CC="<compil>" with hack_libtool function - hack_command='''sed -i "s%^CC=\\"\(.*\)\\"%hack_libtool() { \\n\\ -if test \\"\$(echo \$@ | grep -E '\\\\\\-L/usr/lib(/../lib)?(64)? ')\\" == \\\"\\\" \\n\\ - then\\n\\ - cmd=\\"\\1 \$@\\"\\n\\ - else\\n\\ - cmd=\\"\\1 \\"\`echo \$@ | sed -r -e 's|(.*)-L/usr/lib(/../lib)?(64)? (.*)|\\\\\\1\\\\\\4 -L/usr/lib\\\\\\3|g'\`\\n\\ - fi\\n\\ - \$cmd\\n\\ -}\\n\\ -CC=\\"hack_libtool\\"%g" libtool''' - - self.log_command(hack_command) - subprocess.call(hack_command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT)
- - - ## - # Runs make to build the module. -
[docs] def make(self, nb_proc, make_opt=""): - - # make - command = 'make' - command = command + " -j" + str(nb_proc) - command = command + " " + make_opt - self.log_command(command) - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - self.put_txt_log_in_appli_log_dir("make") - if res == 0: - return res - else: - return 1
- - ## - # Runs msbuild to build the module. -
[docs] def wmake(self,nb_proc, opt_nb_proc = None): - - hh = 'MSBUILD /m:%s' % str(nb_proc) - if self.debug_mode: - hh += " " + src.printcolors.printcWarning("DEBUG") - # make - command = 'msbuild' - command = command + " /maxcpucount:" + str(nb_proc) - if self.debug_mode: - command = command + " /p:Configuration=Debug" - else: - command = command + " /p:Configuration=Release" - command = command + " ALL_BUILD.vcxproj" - - self.log_command(command) - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - - self.put_txt_log_in_appli_log_dir("make") - if res == 0: - return res - else: - return 1
- - ## - # Runs 'make install'. -
[docs] def install(self): - if self.config.VARS.dist_name=="Win": - command = 'msbuild INSTALL.vcxproj' - if self.debug_mode: - command = command + " /p:Configuration=Debug" - else: - command = command + " /p:Configuration=Release" - else : - command = 'make install' - - self.log_command(command) - - res = subprocess.call(command, - shell=True, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - - self.put_txt_log_in_appli_log_dir("makeinstall") - if res == 0: - return res - else: - return 1
- - ## - # Runs 'make_check'. -
[docs] def check(self, command=""): - if src.architecture.is_windows(): - cmd = 'msbuild RUN_TESTS.vcxproj' - else : - if self.product_info.build_source=="autotools" : - cmd = 'make check' - else: - cmd = 'make test' - - if command: - cmd = command - - self.log_command(cmd) - - res = subprocess.call(cmd, - shell=True, - cwd=str(self.build_dir), - env=self.launch_environ.environ.environ, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT) - - if res == 0: - return res - else: - return 1
- - ## - # Performs a default build for this module. -
[docs] def do_default_build(self, - build_conf_options="", - configure_options="", - show_warning=True): - use_autotools = False - if 'use_autotools' in self.product_info: - uc = self.product_info.use_autotools - if uc in ['always', 'yes']: - use_autotools = True - elif uc == 'option': - use_autotools = self.options.autotools - - - self.use_autotools = use_autotools - - use_ctest = False - if 'use_ctest' in self.product_info: - uc = self.product_info.use_ctest - if uc in ['always', 'yes']: - use_ctest = True - elif uc == 'option': - use_ctest = self.options.ctest - - self.use_ctest = use_ctest - - if show_warning: - cmd = "" - if use_autotools: cmd = "(autotools)" - if use_ctest: cmd = "(ctest)" - - self.log("\n", 4, False) - self.log("%(module)s: Run default compilation method %(cmd)s\n" % \ - { "module": self.module, "cmd": cmd }, 4) - - if use_autotools: - if not self.prepare(): return self.get_result() - if not self.build_configure( - build_conf_options): return self.get_result() - if not self.configure(configure_options): return self.get_result() - if not self.make(): return self.get_result() - if not self.install(): return self.get_result() - if not self.clean(): return self.get_result() - - else: # CMake - if self.config.VARS.dist_name=='Win': - if not self.wprepare(): return self.get_result() - if not self.cmake(): return self.get_result() - if not self.wmake(): return self.get_result() - if not self.install(): return self.get_result() - if not self.clean(): return self.get_result() - else : - if not self.prepare(): return self.get_result() - if not self.cmake(): return self.get_result() - if not self.make(): return self.get_result() - if not self.install(): return self.get_result() - if not self.clean(): return self.get_result() - - return self.get_result()
- - ## - # Performs a build with a script. -
[docs] def do_python_script_build(self, script, nb_proc): - # script found - self.logger.write(_("Compile %(product)s using script %(script)s\n") % \ - { 'product': self.product_info.name, - 'script': src.printcolors.printcLabel(script) }, 4) - try: - import imp - product = self.product_info.name - pymodule = imp.load_source(product + "_compile_script", script) - self.nb_proc = nb_proc - retcode = pymodule.compil(self.config, self, self.logger) - except: - __, exceptionValue, exceptionTraceback = sys.exc_info() - self.logger.write(str(exceptionValue), 1) - import traceback - traceback.print_tb(exceptionTraceback) - traceback.print_exc() - retcode = 1 - finally: - self.put_txt_log_in_appli_log_dir("script") - - return retcode
- -
[docs] def complete_environment(self, make_options): - assert self.build_environ is not None - # pass additional variables to environment - # (may be used by the build script) - self.build_environ.set("SOURCE_DIR", str(self.source_dir)) - self.build_environ.set("INSTALL_DIR", str(self.install_dir)) - self.build_environ.set("PRODUCT_INSTALL", str(self.install_dir)) - self.build_environ.set("BUILD_DIR", str(self.build_dir)) - self.build_environ.set("PRODUCT_BUILD", str(self.build_dir)) - self.build_environ.set("MAKE_OPTIONS", make_options) - self.build_environ.set("DIST_NAME", self.config.VARS.dist_name) - self.build_environ.set("DIST_VERSION", self.config.VARS.dist_version) - self.build_environ.set("DIST", self.config.VARS.dist) - self.build_environ.set("VERSION", self.product_info.version)
- -
[docs] def do_batch_script_build(self, script, nb_proc): - - if src.architecture.is_windows(): - make_options = "/maxcpucount:%s" % nb_proc - else : - make_options = "-j%s" % nb_proc - - self.log_command(" " + _("Run build script %s\n") % script) - self.complete_environment(make_options) - - res = subprocess.call(script, - shell=True, - stdout=self.logger.logTxtFile, - stderr=subprocess.STDOUT, - cwd=str(self.build_dir), - env=self.build_environ.environ.environ) - - self.put_txt_log_in_appli_log_dir("script") - if res == 0: - return res - else: - return 1
- -
[docs] def do_script_build(self, script, number_of_proc=0): - # define make options (may not be used by the script) - if number_of_proc==0: - nb_proc = src.get_cfg_param(self.product_info,"nb_proc", 0) - if nb_proc == 0: - nb_proc = self.config.VARS.nb_proc - else: - nb_proc = min(number_of_proc, self.config.VARS.nb_proc) - - extension = script.split('.')[-1] - if extension in ["bat","sh"]: - return self.do_batch_script_build(script, nb_proc) - if extension == "py": - return self.do_python_script_build(script, nb_proc) - - msg = _("The script %s must have .sh, .bat or .py extension." % script) - raise src.SatException(msg)
- -
[docs] def put_txt_log_in_appli_log_dir(self, file_name): - '''Put the txt log (that contain the system logs, like make command - output) in the directory <APPLICATION DIR>/LOGS/<product_name>/ - - :param file_name Str: the name of the file to write - ''' - if self.logger.logTxtFile == sys.__stdout__: - return - dir_where_to_put = os.path.join(self.config.APPLICATION.workdir, - "LOGS", - self.product_info.name) - file_path = os.path.join(dir_where_to_put, file_name) - src.ensure_path_exists(dir_where_to_put) - # write the logTxtFile copy it to the destination, and then recreate - # it as it was - self.logger.logTxtFile.close() - shutil.move(self.logger.txtFilePath, file_path) - self.logger.logTxtFile = open(str(self.logger.txtFilePath), 'w') - self.logger.logTxtFile.write(open(file_path, "r").read())
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/debug.html b/doc/build/html/_modules/src/debug.html deleted file mode 100644 index cd0ed9e..0000000 --- a/doc/build/html/_modules/src/debug.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - - - src.debug — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.debug

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-
-#  Copyright (C) 2010-2018  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-"""
-This file assume DEBUG functionalities use.
-Print salomeTools debug messages in sys.stderr.
-Show pretty print debug representation from instances of SAT classes 
-(pretty print src.pyconf.Config)
-
-| Warning: supposedly show messages in SAT development phase, not production
-| 
-| Usage:
-| >> import debug as DBG
-| >> DBG.write("aTitle", aVariable)        # not shown in production 
-| >> DBG.write("aTitle", aVariable, True)  # unconditionaly shown (as show=True)
-| 
-| to set show message as development phase:
-| >> DBG.push_debug(True)
-| 
-| to set no show message as production phase:
-| >> DBG.push_debug(False)
-| 
-| to set show message temporary as development phase, only in a method:
-| >> def aMethodToDebug(...):
-| >>   DBG.push_debug(True)              #force show as appended status
-| >>   etc. method code with some DBG.write()
-| >>   DBG.pop_debug()                   #restore previous status (show or not show)
-| >>   return
-| 
-| to set a message for future fix, as temporary problem to not forget:
-| DBG.tofix("aTitle", aVariable, True/False) #True/False in production shown, or not
-| 
-| in command line interface you could redirect stderr to file 'myDebug.log':
-| >> sat compile ... 2> myDebug.log   # only stderr
-| >> sat compile ... &> myDebug.log   # stdout and stderr
-"""
-
-import os
-import sys
-import traceback
-import StringIO as SIO
-import pprint as PP
-
-_debug = [False] #support push/pop for temporary activate debug outputs
-
-_user = os.environ['USER']
-# wambeke is christian at home
-_developpers = ["christian", "wambeke", "crouzet"] # crouzet, kloss ...
-
-
-
[docs]def indent(text, amount=2, ch=' '): - """indent multi lines message""" - padding = amount * ch - return ''.join(padding + line for line in text.splitlines(True))
- -
[docs]def isTypeConfig(var): - """To know if var is instance from Config/pyconf""" - typ = str(type(var)) - # print "isTypeConfig" ,type, dir(var) - if ".pyconf.Config" in typ: return True - if ".pyconf.Mapping" in typ: return True - if ".pyconf.Sequence" in typ: return True - # print "NOT isTypeConfig %s" % typ - return False
- -
[docs]def write(title, var="", force=None, fmt="\n#### DEBUG: %s:\n%s\n"): - """write sys.stderr a message if _debug[-1]==True or optionaly force=True""" - if _debug[-1] or force: - tvar = type(var) - typ = str(tvar) - if isTypeConfig(var): - sys.stderr.write(fmt % (title, indent(COLS.toColor(getStrConfigDbg(var))))) - return - if 'UnittestStream' in typ: - sys.stderr.write(fmt % (title, indent(var.getLogs()))) - return - if tvar is not str and tvar is not unicode: - sys.stderr.write(fmt % (title, indent(PP.pformat(var)))) - return - sys.stderr.write(fmt % (title, indent(var))) - return - return
- -
[docs]def tofix(title, var="", force=None): - """ - write sys.stderr a message if _debug[-1]==True or optionaly force=True - use this only if no logger accessible for classic logger.warning(message) - """ - fmt = "\n#### TOFIX: %s:\n%s\n" - write(title, var, force, fmt)
- -
[docs]def push_debug(aBool): - """set debug outputs activated, or not""" - _debug.append(aBool)
- -
[docs]def pop_debug(): - """restore previous debug outputs status""" - if len(_debug) > 1: - return _debug.pop() - else: - sys.stderr.write("\nERROR: pop_debug: too much pop.") - return None
- - -
[docs]def format_exception(msg, limit=None, trace=None): - """ - Format a stack trace and the exception information. - as traceback.format_exception(), without color - with traceback only if (_debug) or (DBG._user in DBG._developpers) - """ - etype, value, tb = sys.exc_info() - if (_debug[-1]) or (_user in _developpers): - res = msg - if tb: - res += "\nTraceback (most recent call last):\n" - res += "".join(traceback.format_tb(tb, limit)) # [:-1]) - res += "\n" - res += "\n".join(traceback.format_exception_only(etype, value)) - return res - else: - res = msg - res += "".join(traceback.format_exception_only(etype, value)) - return res
- -
[docs]def format_color_exception(msg, limit=None, trace=None): - """ - Format a stack trace and the exception information. - as traceback.format_exception(), with color - with traceback only if (_debug) or (DBG._user in DBG._developpers) - """ - etype, value, tb = sys.exc_info() - if (_debug[-1]) or (_user in _developpers): - res = "<red>" + msg - if tb: - res += "<yellow>\nTraceback (most recent call last):\n" - res += "".join(traceback.format_tb(tb, limit)) # [:-1]) - res += "\n<red>" - res += "\n".join(traceback.format_exception_only(etype, value)) - return res + "<reset>" - else: - res = "<red>" + msg # + "<bright>" - res += "".join(traceback.format_exception_only(etype, value)) - return res + "<reset>"
- - -############################################### -# utilitaires divers pour debug -############################################### - -
[docs]class OutStream(SIO.StringIO): - """ - utility class for pyconf.Config output iostream - """ -
[docs] def close(self): - """ - because Config.__save__ calls close() stream as file - keep value before lost as self.value - """ - self.value = self.getvalue() - SIO.StringIO.close(self)
- -
[docs]class InStream(SIO.StringIO): - """utility class for pyconf.Config input iostream""" - pass
- -
[docs]def getLocalEnv(): - """get string for environment variables representation""" - res = "" - for i in sorted(os.environ): - res += "%s : %s\n" % (i, os.environ[i]) - return res
- -# save as initial Config.save() moved as Config.__save__() -
[docs]def saveConfigStd(config, aStream): - """returns as file .pyconf""" - indent = 0 - config.__save__(aStream, indent)
- -
[docs]def getStrConfigStd(config): - """set string as saveConfigStd, as file .pyconf""" - outStream = OutStream() - saveConfigStd(config, outStream) - return outStream.value
- -
[docs]def getStrConfigDbg(config): - """ - set string as saveConfigDbg, - as (path expression evaluation) for debug - """ - outStream = OutStream() - saveConfigDbg(config, outStream) - return outStream.value
- -
[docs]def saveConfigDbg(config, aStream, indent=0, path=""): - """pyconf returns multilines (path expression evaluation) for debug""" - _saveConfigRecursiveDbg(config, aStream, indent, path, 0) - aStream.close() # as config.__save__()
- -def _saveConfigRecursiveDbg(config, aStream, indent, path, nb): - """pyconf inspired from Mapping.__save__""" - debug = False - nbp = nb + 1 # depth recursive - if indent <= 0: - indentp = 0 - else: - indentp = indent + 2 - - if nbp > 10: # protection - # raise Exception("!!! ERROR: Circular reference after %s" % aStream.getvalue()) - # raise Exception("!!! ERROR: Circular reference %s" % path) - aStream.write("<red>!!! ERROR: Circular reference after %s<reset>\n" % path) - return - - indstr = indent * ' ' # '':no indent, ' ':indent - strType = str(type(config)) - if debug: print "saveDbg Type", path, strType - - if "Sequence" in strType: - for i in range(len(config)): - _saveConfigRecursiveDbg(config[i], aStream, indentp, path+"[%i]" % i, nbp) - return - ''' - if "Reference" in strType: - try: - #evaluate = value.resolve(config) - aStream.write("<header>%s%s<reset> : %s <yellow>--> '%s'<reset>\n" % (indstr, path, config, str(config))) - except Exception as e: - aStream.write("<header>%s%s<reset> : <red>!!! ERROR: %s !!!<reset>\n" % (indstr, path, e.message)) - return - ''' - - try: #type config, mapping - order = object.__getattribute__(config, 'order') - data = object.__getattribute__(config, 'data') - except: - aStream.write("%s%s : '%s'\n" % (indstr, path, str(config))) - return - for key in sorted(data): #order): # data as sort alphabetical, order as initial order - value = data[key] - strType = str(type(value)) - if debug: print 'strType', path, key, strType - if "Config" in strType: - _saveConfigRecursiveDbg(value, aStream, indentp, path+"."+key, nbp) - continue - if "Mapping" in strType: - _saveConfigRecursiveDbg(value, aStream, indentp, path+"."+key, nbp) - continue - if "Sequence" in strType: - for i in range(len(value)): - _saveConfigRecursiveDbg(value.data[i], aStream, indentp, path+"."+key+"[%i]" % i, nbp) - continue - if "Expression" in strType: - try: - evaluate = value.evaluate(config) - aStream.write("%s%s.%s : %s --> '%s'\n" % (indstr, path, key, str(value), evaluate)) - except Exception as e: - aStream.write("%s%s.%s : !!! ERROR: %s !!!\n" % (indstr, path, key, e.message)) - continue - if "Reference" in strType: - try: - evaluate = value.resolve(config) - aStream.write("%s%s.%s : %s --> '%s'\n" % (indstr, path, key, str(value), evaluate)) - except Exception as e: - aStream.write("%s%s.%s : !!! ERROR: %s !!!\n" % (indstr, path, key, e.message)) - continue - if type(value) in [str, bool, int, type(None), unicode]: - aStream.write("%s%s.%s : '%s'\n" % (indstr, path, key, str(value))) - continue - try: - aStream.write("!!! TODO fix that %s %s%s.%s : %s\n" % (type(value), indstr, path, key, str(value))) - except Exception as e: - aStream.write("%s%s.%s : !!! %s\n" % (indstr, path, key, e.message)) -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/environment.html b/doc/build/html/_modules/src/environment.html deleted file mode 100644 index b3f2b3c..0000000 --- a/doc/build/html/_modules/src/environment.html +++ /dev/null @@ -1,973 +0,0 @@ - - - - - - - - src.environment — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.environment

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import os
-import subprocess
-import string
-import sys
-
-import src
-import src.debug as DBG
-import pprint as PP
-
-
[docs]class Environ: - """\ - Class to manage the environment context - """ - def __init__(self, environ=None): - """Initialization. If the environ argument is passed, the environment - will be add to it, else it is the external environment. - - :param environ dict: - """ - if environ is not None: - self.environ = environ - else: - self.environ = os.environ - - def __repr__(self): - """easy non exhaustive quick resume for debug print""" - return "%s(\n%s\n)" % (self.__class__.__name__, PP.pformat(self.environ)) - - def _expandvars(self, value): - """\ - replace some $VARIABLE into its actual value in the environment - - :param value str: the string to be replaced - :return: the replaced variable - :rtype: str - """ - if "$" in value: - # The string.Template class is a string class - # for supporting $-substitutions - zt = string.Template(value) - try: - value = zt.substitute(self.environ) - except KeyError as exc: - raise src.SatException(_("Missing definition " - "in environment: %s") % str(exc)) - return value - -
[docs] def append_value(self, key, value, sep=os.pathsep): - """\ - append value to key using sep - - :param key str: the environment variable to append - :param value str: the value to append to key - :param sep str: the separator string - """ - # check if the key is already in the environment - if key in self.environ: - value_list = self.environ[key].split(sep) - # Check if the value is already in the key value or not - if not value in value_list: - value_list.append(value) - else: - value_list.append(value_list.pop(value_list.index(value))) - self.set(key, sep.join(value_list)) - else: - self.set(key, value)
- -
[docs] def append(self, key, value, sep=os.pathsep): - """\ - Same as append_value but the value argument can be a list - - :param key str: the environment variable to append - :param value str or list: the value(s) to append to key - :param sep str: the separator string - """ - if isinstance(value, list): - for v in value: - self.append_value(key, v, sep) - else: - self.append_value(key, value, sep)
- -
[docs] def prepend_value(self, key, value, sep=os.pathsep): - """\ - prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - :param sep str: the separator string - """ - if key in self.environ: - value_list = self.environ[key].split(sep) - if not value in value_list: - value_list.insert(0, value) - else: - value_list.insert(0, value_list.pop(value_list.index(value))) - self.set(key, sep.join(value_list)) - else: - self.set(key, value)
- -
[docs] def prepend(self, key, value, sep=os.pathsep): - """\ - Same as prepend_value but the value argument can be a list - - :param key str: the environment variable to prepend - :param value str or list: the value(s) to prepend to key - :param sep str: the separator string - """ - if isinstance(value, list): - for v in value: - self.prepend_value(key, v, sep) - else: - self.prepend_value(key, value, sep)
- -
[docs] def is_defined(self, key): - """\ - Check if the key exists in the environment - - :param key str: the environment variable to check - """ - return key in self.environ.keys()
- -
[docs] def set(self, key, value): - """\ - Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - self.environ[key] = self._expandvars(value)
- -
[docs] def get(self, key): - """\ - Get the value of the environment variable "key" - - :param key str: the environment variable - """ - if key in self.environ: - return self.environ[key] - else: - return ""
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key - - :param key str: the environment variable - :param command str: the command to execute - """ - value = subprocess.Popen(command, - shell=True, - stdout=subprocess.PIPE, - env=self.environ).communicate()[0] - self.environ[key] = value
- - -
[docs]class SalomeEnviron: - """\ - Class to manage the environment of SALOME. - """ - def __init__(self, - cfg, - environ, - forBuild=False, - for_package=None, - enable_simple_env_script = True): - """\ - Initialization. - - :param cfg Config: the global config - :param environ Environ: the Environ instance where - to store the environment variables - :param forBuild bool: If true, it is a launch environment, - else a build one - :param for_package str: If not None, produce a relative environment - designed for a package. - """ - self.environ = environ - self.cfg = cfg - self.forBuild = forBuild - self.for_package = for_package - self.enable_simple_env_script = enable_simple_env_script - self.silent = False - - def __repr__(self): - """easy almost exhaustive quick resume for debug print""" - res = { - "environ" : self.environ, - "forBuild" : self.forBuild, - "for_package" : self.for_package, - } - return "%s(\n%s\n)" % (self.__class__.__name__, PP.pformat(res)) - -
[docs] def append(self, key, value, sep=os.pathsep): - """\ - append value to key using sep - - :param key str: the environment variable to append - :param value str: the value to append to key - :param sep str: the separator string - """ - return self.environ.append(key, value, sep)
- -
[docs] def prepend(self, key, value, sep=os.pathsep): - """\ - prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - :param sep str: the separator string - """ - return self.environ.prepend(key, value, sep)
- -
[docs] def is_defined(self, key): - """\ - Check if the key exists in the environment - - :param key str: the environment variable to check - """ - return self.environ.is_defined(key)
- -
[docs] def get(self, key): - """\ - Get the value of the environment variable "key" - - :param key str: the environment variable - """ - return self.environ.get(key)
- -
[docs] def set(self, key, value): - """\ - Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - # check if value needs to be evaluated - if value is not None and value.startswith("`") and value.endswith("`"): - res = subprocess.Popen("echo %s" % value, - shell=True, - stdout=subprocess.PIPE).communicate() - value = res[0].strip() - - return self.environ.set(key, value)
- -
[docs] def dump(self, out): - """\ - Write the environment to out - - :param out file: the stream where to write the environment - """ - for k in self.environ.environ.keys(): - try: - value = self.get(k) - except: - value = "?" - out.write("%s=%s\n" % (k, value))
- -
[docs] def add_line(self, nb_line): - """\ - Add empty lines to the out stream (in case of file generation) - - :param nb_line int: the number of empty lines to add - """ - if 'add_line' in dir(self.environ): - self.environ.add_line(nb_line)
- -
[docs] def add_comment(self, comment): - """\ - Add a commentary to the out stream (in case of file generation) - - :param comment str: the commentary to add - """ - if 'add_comment' in dir(self.environ): - self.environ.add_comment(comment)
- -
[docs] def add_warning(self, warning): - """\ - Add a warning to the out stream (in case of file generation) - - :param warning str: the warning to add - """ - if 'add_warning' in dir(self.environ): - self.environ.add_warning(warning)
- -
[docs] def finish(self, required): - """\ - Add a final instruction in the out file (in case of file generation) - - :param required bool: Do nothing if required is False - """ - if 'finish' in dir(self.environ): - self.environ.add_line(1) - self.environ.add_comment("clean all the path") - self.environ.finish(required)
- -
[docs] def set_python_libdirs(self): - """Set some generic variables for python library paths""" - ver = self.get('PYTHON_VERSION') - self.set('PYTHON_LIBDIR0', os.path.join('lib', - 'python' + ver, - 'site-packages')) - self.set('PYTHON_LIBDIR1', os.path.join('lib64', - 'python' + ver, - 'site-packages')) - - self.python_lib0 = self.get('PYTHON_LIBDIR0') - self.python_lib1 = self.get('PYTHON_LIBDIR1')
- -
[docs] def get_names(self, lProducts): - """\ - Get the products name to add in SALOME_MODULES environment variable - It is the name of the product, except in the case where the is a - component name. And it has to be in SALOME_MODULES variable only - if the product has the property has_salome_hui = "yes" - - :param lProducts list: List of products to potentially add - """ - lProdHasGui = [p for p in lProducts if 'properties' in - src.product.get_product_config(self.cfg, p) and - 'has_salome_gui' in - src.product.get_product_config(self.cfg, p).properties and - src.product.get_product_config(self.cfg, - p).properties.has_salome_gui=='yes'] - lProdName = [] - for ProdName in lProdHasGui: - pi = src.product.get_product_config(self.cfg, ProdName) - if 'component_name' in pi: - lProdName.append(pi.component_name) - else: - lProdName.append(ProdName) - return lProdName
- -
[docs] def set_application_env(self, logger): - """\ - Sets the environment defined in the APPLICATION file. - - :param logger Logger: The logger instance to display messages - """ - - # add variable PRODUCT_ROOT_DIR as $workdir in APPLICATION.environ section if not present - try: - tmp = self.cfg.APPLICATION.environ.PRODUCT_ROOT_DIR - except: - self.cfg.APPLICATION.environ.PRODUCT_ROOT_DIR = src.pyconf.Reference(self.cfg, src.pyconf.DOLLAR, "workdir") - DBG.write("set_application_env add default Config.APPLICATION.environ.PRODUCT_ROOT_DIR", self.cfg.APPLICATION.environ) - - # Set the variables defined in the "environ" section - if 'environ' in self.cfg.APPLICATION: - # we write PRODUCT environment it in order to conform to - # parseConfigFile.py - self.add_comment("PRODUCT environment") - self.load_cfg_environment(self.cfg.APPLICATION.environ) - if self.forBuild and "build" in self.cfg.APPLICATION.environ: - self.load_cfg_environment(self.cfg.APPLICATION.environ.build) - if not self.forBuild and "launch" in self.cfg.APPLICATION.environ: - self.load_cfg_environment(self.cfg.APPLICATION.environ.launch) - self.add_line(1)
- - -
[docs] def set_salome_minimal_product_env(self, product_info, logger): - """\ - Sets the minimal environment for a SALOME product. - xxx_ROOT_DIR and xxx_SRC_DIR - - :param product_info Config: The product description - :param logger Logger: The logger instance to display messages - """ - # set root dir - DBG.write("set_salome_minimal_product_env", product_info) - root_dir = product_info.name + "_ROOT_DIR" - if not self.is_defined(root_dir): - if 'install_dir' in product_info and product_info.install_dir: - self.set(root_dir, product_info.install_dir) - elif not self.silent: - logger.write(" " + _("No install_dir for product %s\n") % - product_info.name, 5) - - source_in_package = src.get_property_in_product_cfg(product_info, - "sources_in_package") - if not self.for_package or source_in_package == "yes": - # set source dir, unless no source dir - if not src.product.product_is_fixed(product_info): - src_dir = product_info.name + "_SRC_DIR" - if not self.is_defined(src_dir): - if not self.for_package: - self.set(src_dir, product_info.source_dir) - else: - self.set(src_dir, os.path.join("out_dir_Path", - "SOURCES", - product_info.name))
- -
[docs] def set_salome_generic_product_env(self, pi): - """\ - Sets the generic environment for a SALOME product. - - :param pi Config: The product description - """ - # Construct XXX_ROOT_DIR - env_root_dir = self.get(pi.name + "_ROOT_DIR") - l_binpath_libpath = [] - - # create additional ROOT_DIR for CPP components - if 'component_name' in pi: - compo_name = pi.component_name - if compo_name + "CPP" == pi.name: - compo_root_dir = compo_name + "_ROOT_DIR" - envcompo_root_dir = os.path.join( - self.cfg.TOOLS.common.install_root, compo_name ) - self.set(compo_root_dir , envcompo_root_dir) - bin_path = os.path.join(envcompo_root_dir, 'bin', 'salome') - lib_path = os.path.join(envcompo_root_dir, 'lib', 'salome') - l_binpath_libpath.append( (bin_path, lib_path) ) - - if src.get_property_in_product_cfg(pi, "fhs"): - lib_path = os.path.join(env_root_dir, 'lib') - pylib1_path = os.path.join(env_root_dir, self.python_lib0) - pylib2_path = os.path.join(env_root_dir, self.python_lib1) - bin_path = os.path.join(env_root_dir, 'bin') - else: - lib_path = os.path.join(env_root_dir, 'lib', 'salome') - pylib1_path = os.path.join(env_root_dir, self.python_lib0, 'salome') - pylib2_path = os.path.join(env_root_dir, self.python_lib1, 'salome') - bin_path = os.path.join(env_root_dir, 'bin', 'salome') - - # Construct the paths to prepend to PATH and LD_LIBRARY_PATH and - # PYTHONPATH - l_binpath_libpath.append( (bin_path, lib_path) ) - - for bin_path, lib_path in l_binpath_libpath: - if not self.forBuild: - self.prepend('PATH', bin_path) - if src.architecture.is_windows(): - self.prepend('PATH', lib_path) - else : - self.prepend('LD_LIBRARY_PATH', lib_path) - - l = [ bin_path, lib_path, pylib1_path, pylib2_path ] - self.prepend('PYTHONPATH', l)
- -
[docs] def set_cpp_env(self, product_info): - """\ - Sets the generic environment for a SALOME cpp product. - - :param product_info Config: The product description - """ - # Construct XXX_ROOT_DIR - env_root_dir = self.get(product_info.name + "_ROOT_DIR") - l_binpath_libpath = [] - - # Construct the paths to prepend to PATH and LD_LIBRARY_PATH and - # PYTHONPATH - bin_path = os.path.join(env_root_dir, 'bin') - lib_path = os.path.join(env_root_dir, 'lib') - l_binpath_libpath.append( (bin_path, lib_path) ) - - for bin_path, lib_path in l_binpath_libpath: - if not self.forBuild: - self.prepend('PATH', bin_path) - if src.architecture.is_windows(): - self.prepend('PATH', lib_path) - else : - self.prepend('LD_LIBRARY_PATH', lib_path) - - l = [ bin_path, lib_path, - os.path.join(env_root_dir, self.python_lib0), - os.path.join(env_root_dir, self.python_lib1) - ] - self.prepend('PYTHONPATH', l)
- -
[docs] def load_cfg_environment(self, cfg_env): - """\ - Loads environment defined in cfg_env - - :param cfg_env Config: A config containing an environment - """ - # Loop on cfg_env values - for env_def in cfg_env: - val = cfg_env[env_def] - - # if it is env_script, do not do anything (reserved keyword) - if env_def == "env_script": - continue - - # if it is a dict, do not do anything - if isinstance(val, src.pyconf.Mapping): - continue - - # if it is a list, loop on its values - if isinstance(val, src.pyconf.Sequence): - # transform into list of strings - l_val = [] - for item in val: - l_val.append(item) - val = l_val - - # "_" means that the value must be prepended - if env_def.startswith("_"): - # separator exception for PV_PLUGIN_PATH - if env_def[1:] == 'PV_PLUGIN_PATH': - self.prepend(env_def[1:], val, ';') - else: - self.prepend(env_def[1:], val) - elif env_def.endswith("_"): - # separator exception for PV_PLUGIN_PATH - if env_def[:-1] == 'PV_PLUGIN_PATH': - self.append(env_def[:-1], val, ';') - else: - self.append(env_def[:-1], val) - else: - self.set(env_def, val)
- -
[docs] def set_a_product(self, product, logger): - """\ - Sets the environment of a product. - - :param product str: The product name - :param logger Logger: The logger instance to display messages - """ - - # Get the informations corresponding to the product - pi = src.product.get_product_config(self.cfg, product) - - # skip mesa products (if any) at run time, - # unless use_mesa property was activated - if not self.forBuild: - if not ("APPLICATION" in self.cfg and - "properties" in self.cfg.APPLICATION and - "use_mesa" in self.cfg.APPLICATION.properties and - self.cfg.APPLICATION.properties.use_mesa == "yes") : - if ("properties" in pi and - "is_mesa" in pi.properties and - pi.properties.is_mesa == "yes") : - logger.write(_("Skip mesa product %s\n") % pi.name, 4) - return - - - if self.for_package: - pi.install_dir = os.path.join("out_dir_Path", - self.for_package, - pi.name) - - if not self.silent: - logger.write(_("Setting environment for %s\n") % product, 4) - - self.add_line(1) - self.add_comment('setting environ for ' + product) - - # Do not define environment if the product is native - if src.product.product_is_native(pi): - if src.product.product_has_env_script(pi): - self.run_env_script(pi, native=True) - return - - # Set an additional environment for SALOME products - if src.product.product_is_salome(pi): - # set environment using definition of the product - self.set_salome_minimal_product_env(pi, logger) - self.set_salome_generic_product_env(pi) - - if src.product.product_is_cpp(pi): - # set a specific environment for cpp modules - self.set_salome_minimal_product_env(pi, logger) - self.set_cpp_env(pi) - - if src.product.product_is_generated(pi): - if "component_name" in pi: - # hack the source and install directories in order to point - # on the generated product source install directories - install_dir_save = pi.install_dir - source_dir_save = pi.source_dir - name_save = pi.name - pi.install_dir = os.path.join(self.cfg.APPLICATION.workdir, - "INSTALL", - pi.component_name) - if self.for_package: - pi.install_dir = os.path.join("out_dir_Path", - self.for_package, - pi.component_name) - pi.source_dir = os.path.join(self.cfg.APPLICATION.workdir, - "GENERATED", - pi.component_name) - pi.name = pi.component_name - self.set_salome_minimal_product_env(pi, logger) - self.set_salome_generic_product_env(pi) - - # Put original values - pi.install_dir = install_dir_save - pi.source_dir = source_dir_save - pi.name = name_save - - # Put the environment define in the configuration of the product - if "environ" in pi: - self.load_cfg_environment(pi.environ) - if self.forBuild and "build" in pi.environ: - self.load_cfg_environment(pi.environ.build) - if not self.forBuild and "launch" in pi.environ: - self.load_cfg_environment(pi.environ.launch) - # if product_info defines a env_scripts, load it - if 'env_script' in pi.environ: - self.run_env_script(pi, logger)
- - - - -
[docs] def run_env_script(self, product_info, logger=None, native=False): - """\ - Runs an environment script. - - :param product_info Config: The product description - :param logger Logger: The logger instance to display messages - :param native Boolean: if True load set_native_env instead of set_env - """ - env_script = product_info.environ.env_script - # Check that the script exists - if not os.path.exists(env_script): - raise src.SatException(_("Environment script not found: %s") % - env_script) - - if not self.silent and logger is not None: - logger.write(" ** load %s\n" % env_script, 4) - - # import the script and run the set_env function - try: - import imp - pyproduct = imp.load_source(product_info.name + "_env_script", - env_script) - if not native: - if self.forBuild and "set_env_build" in dir(pyproduct): - pyproduct.set_env_build(self, - product_info.install_dir, - product_info.version) - elif (not self.forBuild) and "set_env_launch" in dir(pyproduct): - pyproduct.set_env_launch(self, - product_info.install_dir, - product_info.version) - else: - # at least this one is mandatoryi, - # if set_env_build and set_env_build are not defined - pyproduct.set_env(self, - product_info.install_dir, - product_info.version) - else: - # not mandatory, if set_nativ_env not defined, we do nothing - if "set_nativ_env" in dir(pyproduct): - pyproduct.set_nativ_env(self) - except: - __, exceptionValue, exceptionTraceback = sys.exc_info() - print(exceptionValue) - import traceback - traceback.print_tb(exceptionTraceback) - traceback.print_exc()
- -
[docs] def run_simple_env_script(self, script_path, logger=None): - """\ - Runs an environment script. Same as run_env_script, but with a - script path as parameter. - - :param script_path str: a path to an environment script - :param logger Logger: The logger instance to display messages - """ - if not self.enable_simple_env_script: - return - # Check that the script exists - if not os.path.exists(script_path): - raise src.SatException(_("Environment script not found: %s") % - script_path) - - if not self.silent and logger is not None: - logger.write(" ** load %s\n" % script_path, 4) - - script_basename = os.path.basename(script_path) - if script_basename.endswith(".py"): - script_basename = script_basename[:-len(".py")] - - # import the script and run the set_env function - try: - import imp - pyproduct = imp.load_source(script_basename + "_env_script", - script_path) - pyproduct.load_env(self) - except: - __, exceptionValue, exceptionTraceback = sys.exc_info() - print(exceptionValue) - import traceback - traceback.print_tb(exceptionTraceback) - traceback.print_exc()
- -
[docs] def set_products(self, logger, src_root=None): - """\ - Sets the environment for all the products. - - :param logger Logger: The logger instance to display messages - :param src_root src: the application working directory - """ - self.add_line(1) - self.add_comment('setting environ for all products') - - # Make sure that the python lib dirs are set after python - if "Python" in self.cfg.APPLICATION.products: - self.set_a_product("Python", logger) - self.set_python_libdirs() - - # The loop on the products - for product in self.cfg.APPLICATION.products.keys(): - if product == "Python": - continue - self.set_a_product(product, logger) - self.finish(False)
- -
[docs] def set_full_environ(self, logger, env_info): - """\ - Sets the full environment for products - specified in env_info dictionary. - - :param logger Logger: The logger instance to display messages - :param env_info list: the list of products - """ - DBG.write("set_full_environ for", env_info) - # DBG.write("set_full_environ config", self.cfg.APPLICATION.environ, True) - # set product environ - self.set_application_env(logger) - - self.set_python_libdirs() - - # set products - for product in env_info: - self.set_a_product(product, logger)
- -
[docs]class FileEnvWriter: - """\ - Class to dump the environment to a file. - """ - def __init__(self, config, logger, out_dir, src_root, env_info=None): - """\ - Initialization. - - :param cfg Config: the global config - :param logger Logger: The logger instance to display messages - :param out_dir str: The directory path where t put the output files - :param src_root str: The application working directory - :param env_info str: The list of products to add in the files. - """ - self.config = config - self.logger = logger - self.out_dir = out_dir - self.src_root= src_root - self.silent = True - self.env_info = env_info - -
[docs] def write_env_file(self, filename, forBuild, shell, for_package = None): - """\ - Create an environment file. - - :param filename str: the file path - :param forBuild bool: if true, the build environment - :param shell str: the type of file wanted (.sh, .bat) - :return: The path to the generated file - :rtype: str - """ - if not self.silent: - self.logger.write(_("Create environment file %s\n") % - src.printcolors.printcLabel(filename), 3) - - # create then env object - env_file = open(os.path.join(self.out_dir, filename), "w") - tmp = src.fileEnviron.get_file_environ(env_file, - shell, - {}) - env = SalomeEnviron(self.config, tmp, forBuild, for_package=for_package) - env.silent = self.silent - - # Set the environment - if self.env_info is not None: - env.set_full_environ(self.logger, self.env_info) - else: - # set env from the APPLICATION - env.set_application_env(self.logger) - - # The list of products to launch - lProductsName = env.get_names(self.config.APPLICATION.products.keys()) - env.set( "SALOME_MODULES", ','.join(lProductsName)) - - # set the products - env.set_products(self.logger, - src_root=self.src_root) - - # add cleanup and close - env.finish(True) - env_file.close() - - return env_file.name
- -
[docs] def write_cfgForPy_file(self, - filename, - additional_env = {}, - for_package = None, - with_commercial = True): - """\ - Append to current opened aFile a cfgForPy - environment (SALOME python launcher). - - :param filename str: the file path - :param additional_env dict: a dictionary of additional variables - to add to the environment - :param for_package str: If not None, produce a relative environment - designed for a package. - """ - if not self.silent: - self.logger.write(_("Create configuration file %s\n") % - src.printcolors.printcLabel(filename.name), 3) - - # create then env object - tmp = src.fileEnviron.get_file_environ(filename, - "cfgForPy", - {}) - # environment for launch - env = SalomeEnviron(self.config, - tmp, - forBuild=False, - for_package=for_package, - enable_simple_env_script = with_commercial) - env.silent = self.silent - - if self.env_info is not None: - env.set_full_environ(self.logger, self.env_info) - else: - # set env from PRODUCT - env.set_application_env(self.logger) - - # The list of products to launch - lProductsName = env.get_names(self.config.APPLICATION.products.keys()) - env.set( "SALOME_MODULES", ','.join(lProductsName)) - - # set the products - env.set_products(self.logger, - src_root=self.src_root) - - # Add the additional environment if it is not empty - if len(additional_env) != 0: - for variable in additional_env: - env.set(variable, additional_env[variable]) - - # add cleanup and close - env.finish(True)
- -
[docs]class Shell: - """\ - Definition of a Shell. - """ - def __init__(self, name, extension): - """\ - Initialization. - - :param name str: the shell name - :param extension str: the shell extension - """ - self.name = name - self.extension = extension
- -
[docs]def load_environment(config, build, logger): - """\ - Loads the environment (used to run the tests, for example). - - :param config Config: the global config - :param build bool: build environement if True - :param logger Logger: The logger instance to display messages - """ - environ = SalomeEnviron(config, Environ(os.environ), build) - environ.set_application_env(logger) - environ.set_products(logger) - environ.finish(True)
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/fileEnviron.html b/doc/build/html/_modules/src/fileEnviron.html deleted file mode 100644 index ce8756a..0000000 --- a/doc/build/html/_modules/src/fileEnviron.html +++ /dev/null @@ -1,1076 +0,0 @@ - - - - - - - - src.fileEnviron — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.fileEnviron

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import os
-import pprint as PP
-import src.debug as DBG
-
-bat_header="""\
-@echo off
-
-rem The following variables are used only in case of a sat package
-set out_dir_Path=%~dp0
-set PRODUCT_OUT_DIR=%out_dir_Path%
-set prereq_install_Path=%out_dir_Path%\PREREQUISITES\INSTALL
-set prereq_build_Path=%out_dir_Path%\PREREQUISITES\BUILD
-"""
-
-
-bash_header="""\
-#!/bin/bash
-##########################################################################
-#
-#### cleandup ###
-# cleanup a path (first parameter) from duplicated entries;
-# second parameter is the separator
-cleandup() {
-out_var=`echo $1 | awk -v sep=$2 '{                      \\
-     na = split($1,a,sep);                               \\
-     k=0;                                                \\
-     for(i=0;i<=na;i++) {                                \\
-       found=0;                                          \\
-       for(j=0;j<k;j++) {                                \\
-         if(a[i]==aa[j])                                 \\
-         {                                               \\
-           found=1;                                      \\
-           break;                                        \\
-         };                                              \\
-       };                                                \\
-       if(found==0) {                                    \\
-         aa[k++]=a[i];                                   \\
-       };                                                \\
-     };                                                  \\
-     ORS=sep;                                            \\
-     for(i=0;i<k;i++) {                                  \\
-       print aa[i];                                      \\
-     }                                                   \\
-   }' | sed -e 's|\\(.*\\)$1|\\1|g' -e 's|^[:;]||' -e 's|[:;]$||'`
-echo $out_var
-}
-### clean ###
-clean ()
-{
-xenv=`printenv $1`
-out_var=`cleandup $xenv $2`
-export $1=$out_var
-}
-
-# The 3 following variables are used only in case of a sat package
-export out_dir_Path=$(cd $(dirname ${BASH_SOURCE[0]});pwd)
-export PRODUCT_OUT_DIR=${out_dir_Path}
-export PRODUCT_ROOT_DIR=${PRODUCT_OUT_DIR}
-
-###########################################################################
-"""
-
-cfg_header="""\
-[SALOME Configuration]
-"""
-
-Launcher_header="""\
-# a generated SALOME Configuration file using python syntax
-"""
-
-
[docs]def get_file_environ(output, shell, environ=None): - """Instantiate correct FileEnvironment sub-class. - - :param output file: the output file stream. - :param shell str: the type of shell syntax to use. - :param environ dict: a potential additional environment. - """ - if shell == "bash": - return BashFileEnviron(output, environ) - if shell == "bat": - return BatFileEnviron(output, environ) - if shell == "cfgForPy": - return LauncherFileEnviron(output, environ) - if shell == "cfg": - return ContextFileEnviron(output, environ) - raise Exception("FileEnviron: Unknown shell = %s" % shell)
- -
[docs]class FileEnviron(object): - """\ - Base class for shell environment - """ - def __init__(self, output, environ=None): - """\ - Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self._do_init(output, environ) - - def __repr__(self): - """\ - easy non exhaustive quick resume for debug print""" - res = { - "output" : self.output, - "environ" : self.environ, - } - return "%s(\n%s\n)" % (self.__class__.__name__, PP.pformat(res)) - - - def _do_init(self, output, environ=None): - """\ - Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self.output = output - self.toclean = [] - if environ is not None: - #if str(type(environ)) == "<type 'instance'>": - if id(environ) == id(os.environ): - DBG.tofix("set %s environ as python os.environ, are you sure it is safe ?" % self.__class__.__name__, True) - self.environ = environ - else: - DBG.tofix("set %s environ as COPY of python os.environ, are you sure it is safe ?" % self.__class__.__name__, True) - self.environ = dict(os.environ) #make a copy cvw 180320 - -
[docs] def add_line(self, number): - """\ - Add some empty lines in the shell file - - :param number int: the number of lines to add - """ - self.output.write("\n" * number)
- -
[docs] def add_comment(self, comment): - """\ - Add a comment in the shell file - - :param comment str: the comment to add - """ - self.output.write("# %s\n" % comment)
- -
[docs] def add_echo(self, text): - """\ - Add a "echo" in the shell file - - :param text str: the text to echo - """ - self.output.write('echo %s"\n' % text)
- -
[docs] def add_warning(self, warning): - """\ - Add a warning "echo" in the shell file - - :param warning str: the text to echo - """ - self.output.write('echo "WARNING %s"\n' % warning)
- -
[docs] def append_value(self, key, value, sep=os.pathsep): - """\ - append value to key using sep - - :param key str: the environment variable to append - :param value str: the value to append to key - :param sep str: the separator string - """ - self.set(key, self.get(key) + sep + value) - if (key, sep) not in self.toclean: - self.toclean.append((key, sep))
- -
[docs] def append(self, key, value, sep=os.pathsep): - """\ - Same as append_value but the value argument can be a list - - :param key str: the environment variable to append - :param value str or list: the value(s) to append to key - :param sep str: the separator string - """ - if isinstance(value, list): - self.append_value(key, sep.join(value), sep) - else: - self.append_value(key, value, sep)
- -
[docs] def prepend_value(self, key, value, sep=os.pathsep): - """\ - prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - :param sep str: the separator string - """ - self.set(key, value + sep + self.get(key)) - if (key, sep) not in self.toclean: - self.toclean.append((key, sep))
- -
[docs] def prepend(self, key, value, sep=os.pathsep): - """\ - Same as prepend_value but the value argument can be a list - - :param key str: the environment variable to prepend - :param value str or list: the value(s) to prepend to key - :param sep str: the separator string - """ - if isinstance(value, list): - self.prepend_value(key, sep.join(value), sep) - else: - self.prepend_value(key, value, sep)
- -
[docs] def is_defined(self, key): - """\ - Check if the key exists in the environment - - :param key str: the environment variable to check - """ - return (key in self.environ)
- -
[docs] def set(self, key, value): - """\ - Set the environment variable 'key' to value 'value' - - :param key str: the environment variable to set - :param value str: the value - """ - raise NotImplementedError("set is not implement for this shell!")
- -
[docs] def get(self, key): - """\ - Get the value of the environment variable "key" - - :param key str: the environment variable - """ - return '${%s}' % key
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key. - Has to be overwritten in the derived classes - This can be seen as a virtual method - - :param key str: the environment variable - :param command str: the command to execute - """ - raise NotImplementedError("command_value is not implement " - "for this shell!")
- -
[docs] def finish(self, required=True): - """Add a final instruction in the out file (in case of file generation) - - :param required bool: Do nothing if required is False - """ - for (key, sep) in self.toclean: - if sep != ' ': - self.output.write('clean %s "%s"\n' % (key, sep))
- -
[docs]class BashFileEnviron(FileEnviron): - """\ - Class for bash shell. - """ - def __init__(self, output, environ=None): - """Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self._do_init(output, environ) - self.output.write(bash_header) - -
[docs] def set(self, key, value): - """Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - self.output.write('export %s="%s"\n' % (key, value)) - self.environ[key] = value
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key. - Has to be overwritten in the derived classes - This can be seen as a virtual method - - :param key str: the environment variable - :param command str: the command to execute - """ - self.output.write('export %s=$(%s)\n' % (key, command))
- -
[docs] def finish(self, required=True): - """Add a final instruction in the out file (in case of file generation) - - :param required bool: Do nothing if required is False - """ - if not required: - return - FileEnviron.finish(self, required)
- -
[docs]class BatFileEnviron(FileEnviron): - """\ - for Windows batch shell. - """ - def __init__(self, output, environ=None): - """Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self._do_init(output, environ) - self.output.write(bat_header) - -
[docs] def add_comment(self, comment): - """Add a comment in the shell file - - :param comment str: the comment to add - """ - self.output.write("rem %s\n" % comment)
- -
[docs] def get(self, key): - """Get the value of the environment variable "key" - - :param key str: the environment variable - """ - return '%%%s%%' % key
- -
[docs] def set(self, key, value): - """Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - self.output.write('set %s=%s\n' % (key, value)) - self.environ[key] = value
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key. - Has to be overwritten in the derived classes - This can be seen as a virtual method - - :param key str: the environment variable - :param command str: the command to execute - """ - self.output.write('%s > tmp.txt\n' % (command)) - self.output.write('set /p %s =< tmp.txt\n' % (key))
- -
[docs] def finish(self, required=True): - """\ - Add a final instruction in the out file (in case of file generation) - In the particular windows case, do nothing - - :param required bool: Do nothing if required is False - """ - return
- -
[docs]class ContextFileEnviron(FileEnviron): - """Class for a salome context configuration file. - """ - def __init__(self, output, environ=None): - """Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self._do_init(output, environ) - self.output.write(cfg_header) - -
[docs] def set(self, key, value): - """Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - self.output.write('%s="%s"\n' % (key, value)) - self.environ[key] = value
- -
[docs] def get(self, key): - """Get the value of the environment variable "key" - - :param key str: the environment variable - """ - return '%({0})s'.format(key)
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key. - Has to be overwritten in the derived classes - This can be seen as a virtual method - - :param key str: the environment variable - :param command str: the command to execute - """ - raise NotImplementedError("command_value is not implement " - "for salome context files!")
- -
[docs] def add_echo(self, text): - """Add a comment - - :param text str: the comment to add - """ - self.add_comment(text)
- -
[docs] def add_warning(self, warning): - """Add a warning - - :param text str: the warning to add - """ - self.add_comment("WARNING %s" % warning)
- -
[docs] def prepend_value(self, key, value, sep=os.pathsep): - """prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - :param sep str: the separator string - """ - self.output.write('ADD_TO_%s: %s\n' % (key, value))
- -
[docs] def append_value(self, key, value, sep=os.pathsep): - """append value to key using sep - - :param key str: the environment variable to append - :param value str: the value to append to key - :param sep str: the separator string - """ - self.prepend_value(key, value)
- -
[docs] def finish(self, required=True): - """Add a final instruction in the out file (in case of file generation) - - :param required bool: Do nothing if required is False - """ - return
- -
[docs]def special_path_separator(name): - """\ - TCLLIBPATH, TKLIBPATH, PV_PLUGIN_PATH environments variables need - some exotic path separator. - This function gives the separator regarding the name of the variable - to append or prepend. - - :param name str: The name of the variable to find the separator - """ - special_blanks_keys=["TCLLIBPATH", "TKLIBPATH"] - special_semicolon_keys=["PV_PLUGIN_PATH"] - res=os.pathsep - if name in special_blanks_keys: res=" " - if name in special_semicolon_keys: res=";" - return res
- -
[docs]class LauncherFileEnviron: - """\ - Class to generate a launcher file script - (in python syntax) SalomeContext API - """ - def __init__(self, output, environ=None): - """Initialization - - :param output file: the output file stream. - :param environ dict: a potential additional environment. - """ - self.output = output - self.toclean = [] - if environ is not None: - self.environ = environ - else: - self.environ = os.environ - # Initialize some variables - if not "PATH" in self.environ.keys(): - self.environ["PATH"]="" - if not "LD_LIBRARY_PATH" in self.environ.keys(): - self.environ["LD_LIBRARY_PATH"]="" - if not "PYTHONPATH" in self.environ.keys(): - self.environ["PYTHONPATH"]="" - if not "TCLLIBPATH" in self.environ.keys(): - self.environ["TCLLIBPATH"]="" - if not "TKLIBPATH" in self.environ.keys(): - self.environ["TKLIBPATH"]="" - - # four whitespaces for first indentation in a python script - self.indent=" " - self.prefix="context." - self.setVarEnv="setVariable" - - self.begin=self.indent+self.prefix - self.output.write(Launcher_header) - self.specialKeys={"PATH": "Path", - "LD_LIBRARY_PATH": "LdLibraryPath", - "PYTHONPATH": "PythonPath"} - -
[docs] def change_to_launcher(self, value): - res=value - return res
- -
[docs] def add_line(self, number): - """Add some empty lines in the launcher file - - :param number int: the number of lines to add - """ - self.output.write("\n" * number)
- -
[docs] def add_echo(self, text): - """Add a comment - - :param text str: the comment to add - """ - self.output.write('# %s"\n' % text)
- -
[docs] def add_warning(self, warning): - """Add a warning - - :param text str: the warning to add - """ - self.output.write('# "WARNING %s"\n' % warning)
- -
[docs] def append_value(self, key, value, sep=":"): - """append value to key using sep - - :param key str: the environment variable to append - :param value str: the value to append to key - :param sep str: the separator string - """ - if self.is_defined(key) : - self.add(key, value) - else : - self.set(key, value)
- -
[docs] def append(self, key, value, sep=":"): - """Same as append_value but the value argument can be a list - - :param key str: the environment variable to append - :param value str or list: the value(s) to append to key - :param sep str: the separator string - """ - if isinstance(value, list): - self.append_value(key, sep.join(value), sep) - else: - self.append_value(key, value, sep)
- -
[docs] def prepend_value(self, key, value, sep=":"): - """prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - :param sep str: the separator string - """ - if self.is_defined(key) : - self.add(key, value) - else : - self.set(key, value)
- -
[docs] def prepend(self, key, value, sep=":"): - """Same as prepend_value but the value argument can be a list - - :param key str: the environment variable to prepend - :param value str or list: the value(s) to prepend to key - :param sep str: the separator string - """ - if isinstance(value, list): - self.prepend_value(key, sep.join(value), sep) - else: - self.prepend_value(key, value, sep)
- -
[docs] def is_defined(self, key): - """Check if the key exists in the environment - - :param key str: the environment variable to check - """ - return key in self.environ.keys()
- -
[docs] def get(self, key): - """Get the value of the environment variable "key" - - :param key str: the environment variable - """ - return '${%s}' % key
- -
[docs] def set(self, key, value): - """Set the environment variable "key" to value "value" - - :param key str: the environment variable to set - :param value str: the value - """ - self.output.write(self.begin+self.setVarEnv+ - '(r"%s", r"%s", overwrite=True)\n' % - (key, self.change_to_launcher(value))) - self.environ[key] = value
- -
[docs] def add(self, key, value): - """prepend value to key using sep - - :param key str: the environment variable to prepend - :param value str: the value to prepend to key - """ - if key in self.specialKeys.keys(): - self.output.write(self.begin+'addTo%s(r"%s")\n' % - (self.specialKeys[key], - self.change_to_launcher(value))) - self.environ[key]+=":"+value - return - sep=special_path_separator(key) - self.output.write(self.indent+ - '#temporary solution!!! have to be defined in API a ' - '?dangerous? addToSpecial(r"%s", r"%s")\n' % - (key, value)) - #pathsep not precised because do not know future os launch? - self.output.write(self.begin+'addToSpecial(r"%s", r"%s")\n' - % (key, self.change_to_launcher(value))) - self.environ[key]+=sep+value #here yes we know os for current execution
- -
[docs] def command_value(self, key, command): - """\ - Get the value given by the system command "command" - and put it in the environment variable key. - - :param key str: the environment variable - :param command str: the command to execute - """ - self.output.write(self.indent+'#`%s`\n' % command) - - import shlex, subprocess - args = shlex.split(command) - res=subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - out, __ = res.communicate() - self.output.write(self.begin+ - self.setVarEnv+ - '(r"%s", r"%s", overwrite=True)\n' % (key, out))
- -
[docs] def add_comment(self, comment): - # Special comment in case of the distène licence - if comment=="DISTENE license": - self.output.write(self.indent+ - "#"+ - self.prefix+ - self.setVarEnv+ - '(r"%s", r"%s", overwrite=True)\n' % - ('DISTENE_LICENSE_FILE', - self.change_to_launcher( - 'Use global envvar: DLIM8VAR'))) - self.output.write(self.indent+ - "#"+ - self.prefix+ - self.setVarEnv+ - '(r"%s", r"%s", overwrite=True)\n' % - ('DLIM8VAR', - self.change_to_launcher( - '<your licence>'))) - return - if "setting environ for" in comment: - self.output.write(self.indent+"#[%s]\n" % - comment.split("setting environ for ")[1]) - return - - self.output.write(self.indent+"# %s\n" % comment)
- -
[docs] def finish(self, required=True): - """\ - Add a final instruction in the out file (in case of file generation) - In the particular launcher case, do nothing - - :param required bool: Do nothing if required is False - """ - return
- -
[docs]class ScreenEnviron(FileEnviron): - def __init__(self, output, environ=None): - self._do_init(output, environ) - self.defined = {} - -
[docs] def add_line(self, number): - pass
- -
[docs] def add_comment(self, comment): - pass
- -
[docs] def add_echo(self, text): - pass
- -
[docs] def add_warning(self, warning): - pass
- -
[docs] def write(self, command, name, value, sign="="): - import src - self.output.write(" %s%s %s %s %s\n" % \ - (src.printcolors.printcLabel(command), - " " * (12 - len(command)), - src.printcolors.printcInfo(name), sign, value))
- -
[docs] def is_defined(self, name): - return self.defined.has_key(name)
- -
[docs] def get(self, name): - return "${%s}" % name
- -
[docs] def set(self, name, value): - self.write("set", name, value) - self.defined[name] = value
- -
[docs] def prepend(self, name, value, sep=":"): - if isinstance(value, list): - value = sep.join(value) - value = value + sep + self.get(name) - self.write("prepend", name, value)
- -
[docs] def append(self, name, value, sep=":"): - if isinstance(value, list): - value = sep.join(value) - value = self.get(name) + sep + value - self.write("append", name, value)
- -
[docs] def command_value(self, key, command): - pass
- -
[docs] def run_env_script(self, module, script): - self.write("load", script, "", sign="")
- -# The SALOME launcher template -withProfile = """\ -#! /usr/bin/env python - -################################################################ -# WARNING: this file is automatically generated by SalomeTools # -# WARNING: and so could be overwritten at any time. # -################################################################ - -import os -import sys -import subprocess - - -# Add the pwdPath to able to run the launcher after unpacking a package -# Used only in case of a salomeTools package -out_dir_Path=os.path.abspath(os.path.dirname(__file__)) - -# Preliminary work to initialize path to SALOME Python modules -def __initialize(): - - sys.path[:0] = [ 'BIN_KERNEL_INSTALL_DIR' ] - os.environ['ABSOLUTE_APPLI_PATH'] = 'KERNEL_INSTALL_DIR' - - # define folder to store omniorb config (initially in virtual application folder) - try: - from salomeContextUtils import setOmniOrbUserPath - setOmniOrbUserPath() - except Exception, e: - print e - sys.exit(1) -# End of preliminary work - -# salome doc only works for virtual applications. Therefore we overwrite it with this function -def _showDoc(modules): - for module in modules: - modulePath = os.getenv(module+"_ROOT_DIR") - if modulePath != None: - baseDir = os.path.join(modulePath, "share", "doc", "salome") - docfile = os.path.join(baseDir, "gui", module.upper(), "index.html") - if not os.path.isfile(docfile): - docfile = os.path.join(baseDir, "tui", module.upper(), "index.html") - if not os.path.isfile(docfile): - docfile = os.path.join(baseDir, "dev", module.upper(), "index.html") - if os.path.isfile(docfile): - out, err = subprocess.Popen(["xdg-open", docfile]).communicate() - else: - print "Online documentation is not accessible for module:", module - else: - print module+"_ROOT_DIR not found!" - -def main(args): - # Identify application path then locate configuration files - __initialize() - - if args == ['--help']: - from salomeContext import usage - usage() - sys.exit(0) - - #from salomeContextUtils import getConfigFileNames - #configFileNames, args, unexisting = getConfigFileNames( args, checkExistence=True ) - #if len(unexisting) > 0: - # print "ERROR: unexisting configuration file(s): " + ', '.join(unexisting) - # sys.exit(1) - - # Create a SalomeContext which parses configFileNames to initialize environment - try: - from salomeContext import SalomeContext, SalomeContextException - SalomeContext.addToSpecial=addToSpecial - context = SalomeContext(None) - - # Here set specific variables, if needed - # context.addToPath('mypath') - # context.addToLdLibraryPath('myldlibrarypath') - # context.addToPythonPath('mypythonpath') - # context.setVariable('myvarname', 'value') - - # Logger level error - context.getLogger().setLevel(40) - - context.setVariable(r"PRODUCT_ROOT_DIR", out_dir_Path, overwrite=True) - # here your local standalone environment - - if len(args) >1 and args[0]=='doc': - _showDoc(args[1:]) - return - - # Start SALOME, parsing command line arguments - out, err, status = context.runSalome(args) - sys.exit(status) - - except SalomeContextException, e: - import logging - logging.getLogger("salome").error(e) - sys.exit(1) -# -def addToSpecial(self, name, value, pathSep=None): - # add special dangerous cases: TCLLIBPATH PV_PLUGIN_PATH etc... - # http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm - # TCLLIBPATH: Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. - if value == '': - return - - specialBlanksKeys=["TCLLIBPATH", "TKLIBPATH"] - specialSemicolonKeys=["PV_PLUGIN_PATH"] - res=os.pathsep - if name in specialBlanksKeys: res=" " - if name in specialSemicolonKeys: res=";" - - if pathSep==None: - sep=res - else: - sep=pathSep - value = os.path.expandvars(value) # expand environment variables - self.getLogger().debug("Add to %s: %s", name, value) - env = os.getenv(name, None) - if env is None: - os.environ[name] = value - else: - os.environ[name] = value + sep + env #explicitely or not special path separator ?whitespace, semicolon? - -if __name__ == "__main__": - args = sys.argv[1:] - main(args) -# -""" - -withProfile3 = """\ -#! /usr/bin/env python3 - -################################################################ -# WARNING: this file is automatically generated by SalomeTools # -# WARNING: and so could be overwritten at any time. # -################################################################ - -import os -import sys -import subprocess - - -# Add the pwdPath to able to run the launcher after unpacking a package -# Used only in case of a salomeTools package -out_dir_Path=os.path.abspath(os.path.dirname(__file__)) - -# Preliminary work to initialize path to SALOME Python modules -def __initialize(): - - sys.path[:0] = [ 'BIN_KERNEL_INSTALL_DIR' ] - os.environ['ABSOLUTE_APPLI_PATH'] = 'KERNEL_INSTALL_DIR' - - # define folder to store omniorb config (initially in virtual application folder) - try: - from salomeContextUtils import setOmniOrbUserPath - setOmniOrbUserPath() - except Exception as e: - print(e) - sys.exit(1) -# End of preliminary work - -# salome doc only works for virtual applications. Therefore we overwrite it with this function -def _showDoc(modules): - for module in modules: - modulePath = os.getenv(module+"_ROOT_DIR") - if modulePath != None: - baseDir = os.path.join(modulePath, "share", "doc", "salome") - docfile = os.path.join(baseDir, "gui", module.upper(), "index.html") - if not os.path.isfile(docfile): - docfile = os.path.join(baseDir, "tui", module.upper(), "index.html") - if not os.path.isfile(docfile): - docfile = os.path.join(baseDir, "dev", module.upper(), "index.html") - if os.path.isfile(docfile): - out, err = subprocess.Popen(["xdg-open", docfile]).communicate() - else: - print("Online documentation is not accessible for module:", module) - else: - print(module+"_ROOT_DIR not found!") - -def main(args): - # Identify application path then locate configuration files - __initialize() - - if args == ['--help']: - from salomeContext import usage - usage() - sys.exit(0) - - #from salomeContextUtils import getConfigFileNames - #configFileNames, args, unexisting = getConfigFileNames( args, checkExistence=True ) - #if len(unexisting) > 0: - # print("ERROR: unexisting configuration file(s): " + ', '.join(unexisting)) - # sys.exit(1) - - # Create a SalomeContext which parses configFileNames to initialize environment - try: - from salomeContext import SalomeContext, SalomeContextException - SalomeContext.addToSpecial=addToSpecial - context = SalomeContext(None) - - # Here set specific variables, if needed - # context.addToPath('mypath') - # context.addToLdLibraryPath('myldlibrarypath') - # context.addToPythonPath('mypythonpath') - # context.setVariable('myvarname', 'value') - - # Logger level error - context.getLogger().setLevel(40) - - context.setVariable(r"PRODUCT_ROOT_DIR", out_dir_Path, overwrite=True) - # here your local standalone environment - - if len(args) >1 and args[0]=='doc': - _showDoc(args[1:]) - return - - # Start SALOME, parsing command line arguments - out, err, status = context.runSalome(args) - sys.exit(status) - - except SalomeContextException as e: - import logging - logging.getLogger("salome").error(e) - sys.exit(1) -# -def addToSpecial(self, name, value, pathSep=None): - # add special dangerous cases: TCLLIBPATH PV_PLUGIN_PATH etc... - # http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm - # TCLLIBPATH: Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. - if value == '': - return - - specialBlanksKeys=["TCLLIBPATH", "TKLIBPATH"] - specialSemicolonKeys=["PV_PLUGIN_PATH"] - res=os.pathsep - if name in specialBlanksKeys: res=" " - if name in specialSemicolonKeys: res=";" - - if pathSep==None: - sep=res - else: - sep=pathSep - value = os.path.expandvars(value) # expand environment variables - self.getLogger().debug("Add to %s: %s", name, value) - env = os.getenv(name, None) - if env is None: - os.environ[name] = value - else: - os.environ[name] = value + sep + env #explicitely or not special path separator ?whitespace, semicolon? - -if __name__ == "__main__": - args = sys.argv[1:] - main(args) -# -""" - -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/fork.html b/doc/build/html/_modules/src/fork.html deleted file mode 100644 index 52e7293..0000000 --- a/doc/build/html/_modules/src/fork.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - src.fork — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.fork

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import os
-import sys
-import time
-import pickle
-import subprocess
-
-
[docs]def show_progress(logger, top, delai, ss=""): - """shortcut function to display the progression - - :param logger Logger: The logging instance - :param top int: the number to display - :param delai int: the number max - :param ss str: the string to display - """ - logger.write("\r%s\r%s %s / %s " % ((" " * 30), ss, top, (delai - top)), 4, - False) - logger.flush()
- -
[docs]def write_back(logger, message, level): - """shortcut function to write at the begin of the line - - :param logger Logger: The logging instance - :param message str: the text to display - :param level int: the level of verbosity - """ - logger.write("\r%s\r%s" % ((" " * 40), message), level)
- -# Launch command -# -------------- -
[docs]def launch_command(cmd, logger, cwd, args=[], log=None): - if log: - log = file(log, "a") - logger.write("launch: %s\n" % cmd, 5, screenOnly=True) - for arg in args: - cmd += " " + arg - prs = subprocess.Popen(cmd, - shell=True, - stdout=log, - stderr=subprocess.STDOUT, - cwd=cwd, - executable='/bin/bash') - return prs
- -# Launch a batch -# -------------- -
[docs]def batch(cmd, logger, cwd, args=[], log=None, delai=20, sommeil=1): - proc = launch_command(cmd, logger, cwd, args, log) - top = 0 - sys.stdout.softspace = True - begin = time.time() - while proc.poll() is None: - if time.time() - begin >= 1: - show_progress(logger, top, delai, "batch:") - if top == delai: - logger.write("batch: time out KILL\n", 3) - import signal - os.kill(proc.pid, signal.SIGTERM) - break - else: - begin = time.time() - time.sleep(sommeil) - top += 1 - sys.stdout.flush() - else: - write_back(logger, "batch: exit (%s)\n" % str(proc.returncode), 5) - return (proc.returncode == 0), top
- -# Launch a salome process -# ----------------------- -
[docs]def batch_salome(cmd, logger, cwd, args, getTmpDir, - pendant="SALOME_Session_Server", fin="killSalome.py", - log=None, delai=20, sommeil=1, delaiapp=0): - - beginTime = time.time() - launch_command(cmd, logger, cwd, args, log) - - if delaiapp == 0: - delaiapp = delai - - # first launch salome (looking for .pidict file) - top = 0 - found = False - tmp_dir = getTmpDir() - while (not found and top < delaiapp): - if os.path.exists(tmp_dir): - listFile = os.listdir(tmp_dir) - else: - listFile = [] - - for file_name in listFile: - if file_name.endswith("pidict"): - # sometime we get a old file that will be removed by runSalome. - # So we test that we can read it. - currentTime = None - try: - statinfo = os.stat(os.path.join(tmp_dir, file_name)) - currentTime = statinfo.st_mtime - except: pass - - if currentTime and currentTime > beginTime: - try: - file_ = open(os.path.join(tmp_dir, file_name), "r") - process_ids = pickle.load(file_) - file_.close() - for process_id in process_ids: - for __, cmd in process_id.items(): - if cmd == [pendant]: - found = True - pidictFile = file_name - except: - file_.close() - - time.sleep(sommeil) - top += 1 - show_progress(logger, top, delaiapp, "launching salome or appli:") - - # continue or not - if found: - write_back(logger, "batch_salome: started\n", 5) - else: - logger.write("batch_salome: FAILED to launch salome or appli\n", 3) - return False, -1 - - # salome launched run the script - top = 0 - code = None - while code is None: - show_progress(logger, top, delai, "running salome or appli:") - - if not os.access(os.path.join(tmp_dir, pidictFile), os.F_OK): - write_back(logger, "batch_salome: exit\n", 5) - code = True - elif top >= delai: - # timeout kill the test - os.system(fin) - logger.write("batch_salome: time out KILL\n", 3) - code = False - else: - # still waiting - time.sleep(sommeil) - top = top + 1 - - return code, top
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/logger.html b/doc/build/html/_modules/src/logger.html deleted file mode 100644 index b0678fa..0000000 --- a/doc/build/html/_modules/src/logger.html +++ /dev/null @@ -1,586 +0,0 @@ - - - - - - - - src.logger — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.logger

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2012  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-"""\
-Implements the classes and method relative to the logging
-"""
-
-import sys
-import os
-import datetime
-import re
-import tempfile
-
-import src
-import printcolors
-import xmlManager
-
-import src.debug as DBG
-
-log_macro_command_file_expression = "^[0-9]{8}_+[0-9]{6}_+.*\.xml$"
-log_all_command_file_expression = "^.*[0-9]{8}_+[0-9]{6}_+.*\.xml$"
-
-
[docs]class Logger(object): - """\ - Class to handle log mechanism. - """ - def __init__(self, - config= None, - silent_sysstd=False, - all_in_terminal=False, - micro_command = False): - """Initialization - - :param config pyconf.Config: The global configuration. - :param silent_sysstd boolean: if True, do not write anything - in terminal. - """ - DBG.write("src.logger.Logger", id(self)) - self.config = config - self.default_level = 3 - self.silentSysStd = silent_sysstd - - # Construct xml log file location for sat prints. - prefix = "" - if micro_command: - prefix = "micro_" - hour_command_host = (config.VARS.datehour + "_" + - config.VARS.command + "_" + - config.VARS.hostname) - logFileName = prefix + hour_command_host + ".xml" - log_dir = src.get_log_path(config) - logFilePath = os.path.join(log_dir, logFileName) - # Construct txt file location in order to log - # the external commands calls (cmake, make, git clone, etc...) - txtFileName = prefix + hour_command_host + ".txt" - txtFilePath = os.path.join(log_dir, "OUT", txtFileName) - - src.ensure_path_exists(os.path.dirname(logFilePath)) - src.ensure_path_exists(os.path.dirname(txtFilePath)) - - # The path of the log files (one for sat traces, and the other for - # the system commands traces) - self.logFileName = logFileName - self.logFilePath = logFilePath - self.txtFileName = txtFileName - self.txtFilePath = txtFilePath - - # The list of all log files corresponding to the current command and - # the commands called by the current command - self.l_logFiles = [logFilePath, txtFilePath] - - # Initialize xml instance and put first fields - # like beginTime, user, command, etc... - self.xmlFile = xmlManager.XmlLogFile(logFilePath, "SATcommand", - attrib = {"application" : config.VARS.application}) - self.put_initial_xml_fields() - # Initialize the txt file for reading - try: - self.logTxtFile = open(str(self.txtFilePath), 'w') - except IOError: - #msg1 = _("WARNING! Trying to write to a file that" - # " is not accessible:") - #msg2 = _("The logs won't be written.") - #print("%s\n%s\n%s\n" % (src.printcolors.printcWarning(msg1), - # src.printcolors.printcLabel(str(self.txtFilePath)), - # src.printcolors.printcWarning(msg2) )) - self.logTxtFile = tempfile.TemporaryFile() - - # If the option all_in_terminal was called, all the system commands - # are redirected to the terminal - if all_in_terminal: - self.logTxtFile = sys.__stdout__ - -
[docs] def put_initial_xml_fields(self): - """\ - Called at class initialization: Put all fields - corresponding to the command context (user, time, ...) - """ - # command name - self.xmlFile.add_simple_node("Site", attrib={"command" : - self.config.VARS.command}) - # version of salomeTools - self.xmlFile.append_node_attrib("Site", attrib={"satversion" : - self.config.INTERNAL.sat_version}) - # machine name on which the command has been launched - self.xmlFile.append_node_attrib("Site", attrib={"hostname" : - self.config.VARS.hostname}) - # Distribution of the machine - self.xmlFile.append_node_attrib("Site", attrib={"OS" : - self.config.VARS.dist}) - # The user that have launched the command - self.xmlFile.append_node_attrib("Site", attrib={"user" : - self.config.VARS.user}) - # The time when command was launched - Y, m, dd, H, M, S = date_to_datetime(self.config.VARS.datehour) - date_hour = "%2s/%2s/%4s %2sh%2sm%2ss" % (dd, m, Y, H, M, S) - self.xmlFile.append_node_attrib("Site", attrib={"beginTime" : - date_hour}) - # The application if any - if "APPLICATION" in self.config: - self.xmlFile.append_node_attrib("Site", - attrib={"application" : self.config.VARS.application}) - # The initialization of the trace node - self.xmlFile.add_simple_node("Log",text="") - # The system commands logs - self.xmlFile.add_simple_node("OutLog", - text=os.path.join("OUT", self.txtFileName)) - # The initialization of the node where - # to put the links to the other sat commands that can be called by any - # command - self.xmlFile.add_simple_node("Links")
- - - -
[docs] def write(self, message, level=None, screenOnly=False): - """\ - function used in the commands - to print in the terminal and the log file. - - :param message str: The message to print. - :param level int: The output level corresponding - to the message 0 < level < 6. - :param screenOnly boolean: if True, do not write in log file. - """ - # avoid traces if unittest - if isCurrentLoggerUnittest(): - # print("doing unittest") - sendMessageToCurrentLogger(message, level) - return - - # do not write message starting with \r to log file - if not message.startswith("\r") and not screenOnly: - self.xmlFile.append_node_text("Log", - printcolors.cleancolor(message)) - - # get user or option output level - current_output_verbose_level = self.config.USER.output_verbose_level - if not ('isatty' in dir(sys.stdout) and sys.stdout.isatty()): - # clean the message color if the terminal is redirected by user - # ex: sat compile appli > log.txt - message = printcolors.cleancolor(message) - - # Print message regarding the output level value - if level: - if level <= current_output_verbose_level and not self.silentSysStd: - sys.stdout.write(message) - else: - if self.default_level <= current_output_verbose_level and not self.silentSysStd: - sys.stdout.write(message) - self.flush()
- -
[docs] def error(self, message): - """Print an error. - - :param message str: The message to print. - """ - # Print in the log file - self.xmlFile.append_node_text("traces", _('ERROR:') + message) - - # Print in the terminal and clean colors if the terminal - # is redirected by user - if not ('isatty' in dir(sys.stderr) and sys.stderr.isatty()): - sys.stderr.write(printcolors.printcError(_('ERROR:') + message)) - else: - sys.stderr.write(_('ERROR:') + message)
- -
[docs] def flush(self): - """Flush terminal""" - sys.stdout.flush() - self.logTxtFile.flush()
- -
[docs] def end_write(self, attribute): - """\ - Called just after command end: Put all fields - corresponding to the command end context (time). - Write the log xml file on the hard drive. - And display the command to launch to get the log - - :param attribute dict: the attribute to add to the node "Site". - """ - # Get current time (end of command) and format it - dt = datetime.datetime.now() - Y, m, dd, H, M, S = date_to_datetime(self.config.VARS.datehour) - t0 = datetime.datetime(int(Y), int(m), int(dd), int(H), int(M), int(S)) - tf = dt - delta = tf - t0 - total_time = timedelta_total_seconds(delta) - hours = int(total_time / 3600) - minutes = int((total_time - hours*3600) / 60) - seconds = total_time - hours*3600 - minutes*60 - # Add the fields corresponding to the end time - # and the total time of command - endtime = dt.strftime('%Y/%m/%d %Hh%Mm%Ss') - self.xmlFile.append_node_attrib("Site", attrib={"endTime" : endtime}) - self.xmlFile.append_node_attrib("Site", - attrib={"TotalTime" : "%ih%im%is" % (hours, minutes, seconds)}) - - # Add the attribute passed to the method - self.xmlFile.append_node_attrib("Site", attrib=attribute) - - # Call the method to write the xml file on the hard drive - self.xmlFile.write_tree(stylesheet = "command.xsl") - - # Dump the config in a pyconf file in the log directory - logDir = src.get_log_path(self.config) - dumpedPyconfFileName = (self.config.VARS.datehour - + "_" - + self.config.VARS.command - + ".pyconf") - dumpedPyconfFilePath = os.path.join(logDir, 'OUT', dumpedPyconfFileName) - try: - f = open(dumpedPyconfFilePath, 'w') - self.config.__save__(f) - f.close() - except IOError: - pass
- -
[docs]def date_to_datetime(date): - """\ - From a string date in format YYYYMMDD_HHMMSS - returns list year, mon, day, hour, minutes, seconds - - :param date str: The date in format YYYYMMDD_HHMMSS - :return: the same date and time in separate variables. - :rtype: (str,str,str,str,str,str) - """ - Y = date[:4] - m = date[4:6] - dd = date[6:8] - H = date[9:11] - M = date[11:13] - S = date[13:15] - return Y, m, dd, H, M, S
- -
[docs]def timedelta_total_seconds(timedelta): - """\ - Replace total_seconds from datetime module - in order to be compatible with old python versions - - :param timedelta datetime.timedelta: The delta between two dates - :return: The number of seconds corresponding to timedelta. - :rtype: float - """ - return ( - timedelta.microseconds + 0.0 + - (timedelta.seconds + timedelta.days * 24 * 3600) * 10 ** 6) / 10 ** 6
- -
[docs]def show_command_log(logFilePath, cmd, application, notShownCommands): - """\ - Used in updateHatXml. - Determine if the log xml file logFilePath - has to be shown or not in the hat log. - - :param logFilePath str: the path to the command xml log file - :param cmd str: the command of the log file - :param application str: the application passed as parameter - to the salomeTools command - :param notShownCommands list: the list of commands - that are not shown by default - - :return: True if cmd is not in notShownCommands and the application - in the log file corresponds to application - :rtype: boolean - """ - # When the command is not in notShownCommands, no need to go further : - # Do not show - if cmd in notShownCommands: - return False, None, None - - # Get the application of the log file - try: - logFileXml = src.xmlManager.ReadXmlFile(logFilePath) - except Exception as e: - msg = _("WARNING: the log file %s cannot be read:" % logFilePath) - sys.stdout.write(printcolors.printcWarning("%s\n%s\n" % (msg, e))) - return False, None, None - - if 'application' in logFileXml.xmlroot.keys(): - appliLog = logFileXml.xmlroot.get('application') - launched_cmd = logFileXml.xmlroot.find('Site').attrib['launchedCommand'] - # if it corresponds, then the log has to be shown - if appliLog == application: - return True, appliLog, launched_cmd - elif application != 'None': - return False, appliLog, launched_cmd - - return True, appliLog, launched_cmd - - if application == 'None': - return True, None, None - - return False, None, None
- -
[docs]def list_log_file(dirPath, expression): - """Find all files corresponding to expression in dirPath - - :param dirPath str: the directory where to search the files - :param expression str: the regular expression of files to find - :return: the list of files path and informations about it - :rtype: list - """ - lRes = [] - for fileName in os.listdir(dirPath): - # YYYYMMDD_HHMMSS_namecmd.xml - sExpr = expression - oExpr = re.compile(sExpr) - if oExpr.search(fileName): - file_name = fileName - if fileName.startswith("micro_"): - file_name = fileName[len("micro_"):] - # get date and hour and format it - date_hour_cmd_host = file_name.split('_') - date_not_formated = date_hour_cmd_host[0] - date = "%s/%s/%s" % (date_not_formated[6:8], - date_not_formated[4:6], - date_not_formated[0:4]) - hour_not_formated = date_hour_cmd_host[1] - hour = "%s:%s:%s" % (hour_not_formated[0:2], - hour_not_formated[2:4], - hour_not_formated[4:6]) - if len(date_hour_cmd_host) < 4: - cmd = date_hour_cmd_host[2][:-len('.xml')] - host = "" - else: - cmd = date_hour_cmd_host[2] - host = date_hour_cmd_host[3][:-len('.xml')] - lRes.append((os.path.join(dirPath, fileName), - date_not_formated, - date, - hour_not_formated, - hour, - cmd, - host)) - return lRes
- -
[docs]def update_hat_xml(logDir, application=None, notShownCommands = []): - """\ - Create the xml file in logDir that contain all the xml file - and have a name like YYYYMMDD_HHMMSS_namecmd.xml - - :param logDir str: the directory to parse - :param application str: the name of the application if there is any - """ - # Create an instance of XmlLogFile class to create hat.xml file - xmlHatFilePath = os.path.join(logDir, 'hat.xml') - xmlHat = src.xmlManager.XmlLogFile(xmlHatFilePath, - "LOGlist", {"application" : application}) - # parse the log directory to find all the command logs, - # then add it to the xml file - lLogFile = list_log_file(logDir, log_macro_command_file_expression) - for filePath, __, date, __, hour, cmd, __ in lLogFile: - showLog, cmdAppli, full_cmd = show_command_log(filePath, cmd, - application, notShownCommands) - #if cmd not in notShownCommands: - if showLog: - # add a node to the hat.xml file - xmlHat.add_simple_node("LogCommand", - text=os.path.basename(filePath), - attrib = {"date" : date, - "hour" : hour, - "cmd" : cmd, - "application" : cmdAppli, - "full_command" : full_cmd}) - - # Write the file on the hard drive - xmlHat.write_tree('hat.xsl')
- - -# TODO for future -# prepare skip to logging logger sat5.1 -# suppose only one logger in sat5.1 -_currentLogger = [] - -
[docs]def getCurrentLogger(): - """get current logging logger, set as DefaultLogger if not set yet""" - if len(_currentLogger) == 0: - import src.loggingSimple as LOGSI - logger = LOGSI.getDefaultLogger() - _currentLogger.append(logger) - logger.warning("set by default current logger as %s" % logger.name) - return _currentLogger[0]
- -
[docs]def getDefaultLogger(): - """get simple logging logger DefaultLogger, set it as current""" - import src.loggingSimple as LOGSI - logger = LOGSI.getDefaultLogger() - setCurrentLogger(logger) # set it as current - return logger
- -
[docs]def getUnittestLogger(): - """get simple logging logger UnittestLogger, set it as current""" - import src.loggingSimple as LOGSI - logger = LOGSI.getUnittestLogger() - setCurrentLogger(logger) # set it as current - return logger
- -
[docs]def setCurrentLogger(logger): - """temporary send all in stdout as simple logging logger""" - if len(_currentLogger) == 0: - _currentLogger.append(logger) - logger.warning("set current logger as %s" % logger.name) - else: - if _currentLogger[0].name != logger.name: - # logger.debug("quit current logger as default %s" % _currentLogger[0].name) - _currentLogger[0] = logger - logger.warning("change current logger as %s" % logger.name) - return _currentLogger[0]
- -
[docs]def isCurrentLoggerUnittest(): - logger = getCurrentLogger() - if "Unittest" in logger.name: - res = True - else: - res = False - DBG.write("isCurrentLoggerUnittest %s" % logger.name, res) - return res
- -
[docs]def sendMessageToCurrentLogger(message, level): - """ - assume relay from obsolescent - logger.write(msg, 1/2/3...) to future - logging.critical/warning/info...(msg) (as logging package tips) - """ - logger = getCurrentLogger() - if level is None: - lev = 2 - else: - lev = level - if lev <= 1: - logger.critical(message) - return - if lev == 2: - logger.warning(message) - return - if lev == 3: - logger.info(message) - return - if lev == 4: - logger.step(message) - return - if lev == 5: - logger.trace(message) - return - if lev >= 6: - logger.debug(message) - return - msg = "What is this level: '%s' for message:\n%s" % (level, message) - logger.warning(msg) - return
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/options.html b/doc/build/html/_modules/src/options.html deleted file mode 100644 index 3dd905b..0000000 --- a/doc/build/html/_modules/src/options.html +++ /dev/null @@ -1,384 +0,0 @@ - - - - - - - - src.options — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.options

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-"""
-The Options class that manages the access to all options passed as 
-parameters in salomeTools command lines
-"""
-
-import getopt
-import sys
-import pprint as PP
-
-from . import printcolors
-
-import src
-import src.debug as DBG # Easy print stderr (for DEBUG only)
-
-
[docs]class OptResult(object): - """ - An instance of this class will be the object manipulated - in code of all salomeTools commands - The aim of this class is to have an elegant syntax to manipulate the options. - - | Example: - | >> options, remainderArgs = command.parseArguments(args) - | >> print(options.output_verbose_level) - | >> 'INFO' - """ - def __init__(self): - """Initialization - """ - self.__dict__ = dict() - - def __getattr__(self, name): - """ - Overwrite of the __getattr__ function - to customize it for option usage - - :param name: (str) The attribute to get the value. - :return: (str int list boolean level) - the value corresponding to the attribute. - """ - if name in self.__dict__: - return self.__dict__[name] - else: - raise AttributeError("--" + name + _(u" is not a valid option")) - - def __setattr__(self, name, value): - """ - Overwrite of the __setattr__ function - to customize it for option usage - - :param name: (str) The attribute to set. - :param value: (str) The value corresponding to the attribute. - :return: None - """ - object.__setattr__(self, name, value) - - def __repr__(self): - aStr = PP.pformat(self.__dict__) - res = "%s(\n %s\n)" % (self.__class__.__name__, aStr[1:-1]) - return res
- -
[docs]class Options(object): - """ - Class to manage all salomeTools options - """ - def __init__(self): - """Initialization - """ - # The options field stocks all options of a command - # in a list that contains dicts - self.options = [] - # The list of available option type - self.availableOptions = "noboolean boolean string int float long list list2 level".split() - self.noArgOptions = "noboolean boolean".split() - self.default = None - self.results = {} - -
[docs] def add_option(self, shortName, longName, optionType, destName, helpString="", default=None): - """ - Add an option to a command. It gets all attributes - of an option and append it in the options field - - :param shortName: (str) - The short name of the option (as '-l' for level option). - :param longName: (str) - The long name of the option (as '--level' for level option). - :param optionType: (str) The type of the option (ex "int"). - :param destName: (str) The name that will be used in the code. - :param helpString: (str) - The text to display when user ask for help on a command. - :return: None - """ - tmp = [o['shortName'] for o in self.options if o['shortName'] != ''] - if shortName in tmp: - raise Exception("option '-%s' existing yet" % shortName) - tmp = [o['longName'] for o in self.options if o['longName'] != ''] - if longName in tmp: - raise Exception("option '--%s' existing yet" % longName) - - option = dict() - option['shortName'] = shortName - option['longName'] = longName - - if optionType not in self.availableOptions: - raise Exception("error optionType '%s' not available." % optionType) - - option['optionType'] = optionType - option['destName'] = destName - option['helpString'] = helpString - option['result'] = default - - self.options.append(option)
- -
[docs] def getDetailOption(self, option): - """ - for convenience - - :return: (tuple) 4-elements (shortName, longName, optionType, helpString) - """ - oos = option['shortName'] - ool = option['longName'] - oot = option['optionType'] - ooh = option['helpString'] - return (oos, ool, oot, ooh)
- -
[docs] def get_help(self): - """ - Returns all options stored in self.options - as help message colored string - - :return: (str) colored string - """ - msg = "" - # Do nothing if there are no options - - #there is -h option, always - #if len(self.options) == 0: - # return _("No available options.") - - # for all options, gets its values. - # "shortname" is an mandatory field of the options, could be '' - msg += printcolors.printcHeader(_("Available options are:")) - for option in self.options: - oos, ool, oot, ooh = self.getDetailOption(option) - if len(oos) > 0: - msg += "\n -%1s, --%s (%s)\n" % (oos, ool, oot) - else: - msg += "\n --%s (%s)\n" % (ool, oot) - - msg += "%s\n" % self.indent(ooh, 10) - return msg
- -
[docs] def indent(self, text, amount, car=" "): - """indent multi lines message""" - padding = amount * car - return ''.join(padding + line for line in text.splitlines(True))
- -
[docs] def parse_args(self, argList=None): - """ - Instantiates the class OptResult - that gives access to all options in the code - - :param argList: (list) the raw list of arguments that were passed - :return: (OptResult, list) as (optResult, args) - optResult is the option instance to manipulate in the code. - args is the full raw list of passed options - """ - # see https://pymotw.com/2/getopt/ - if argList is None: - argList = sys.argv[1:] - - DBG.write("parse_args", argList) - # DBG.write("options", self.options) - # format shortNameOption and longNameOption - # to make right arguments to getopt.getopt function - shortNameOption = "" - longNameOption = [] - for option in self.options: - shortNameOption = shortNameOption + option['shortName'] - if option['shortName'] != "" and option['optionType'] not in self.noArgOptions: - shortNameOption = shortNameOption + ":" - - if option['longName'] != "": - if option['optionType'] not in self.noArgOptions: - longNameOption.append(option['longName'] + "=") - else: - longNameOption.append(option['longName']) - - # call to getopt.getopt function to get the option - # passed in the command regarding the available options - try: - optlist, args = getopt.getopt(argList, shortNameOption, longNameOption) - except Exception as e: - msg = str(e) + " on '%s'\n\n" % " ".join(argList) + self.get_help() - raise Exception(msg) - - # instantiate and completing the optResult that will be returned - optResult = OptResult() - for option in self.options: - shortOption = "-" + option['shortName'] - longOption = "--" + option['longName'] - optionType = option['optionType'] - for opt in optlist: - if opt[0] in [shortOption, longOption]: - if optionType == "string": - option['result'] = opt[1] - elif optionType == "boolean": - option['result'] = True - elif optionType == "noboolean": - option['result'] = False - elif optionType == "int": - option['result'] = int(opt[1]) - elif optionType == "float": - option['result'] = float(opt[1]) - elif optionType == "long": - option['result'] = long(opt[1]) - elif optionType == "list": - if option['result'] is None: - option['result'] = list() - option['result'].append(opt[1]) - elif optionType == "level": #logger logging levels - option['result'] = self.filterLevel(opt[1]) - elif optionType == "list2": - if option['result'] is None: - option['result'] = list() - option['result'] = self.filterList2(opt[1]) - - optResult.__setattr__(option['destName'], option['result']) - # free the option in order to be able to make - # a new free call of options (API case) - option['result'] = None - - self.results = {"optlist": optlist, "optResult": optResult, "args": args, "argList": argList} - DBG.write("results", self.results) - return optResult, args
- -
[docs] def filterLevel(self, aLevel): - """filter level logging values""" - import src.loggingSimple as LOG - aLev = aLevel.upper() - knownLevels = LOG._knownLevels - maxLen = max([len(i) for i in knownLevels]) - for i in range(maxLen): - for lev in knownLevels: - if aLev == lev[:i]: - DBG.write("filterLevel", "%s -> %s" % (aLevel, lev)) - return lev - msg = "Unknown level '%s', accepted are:\n%s" % (aLev, ", ".join(knownLevels)) - raise Exception(msg)
- -
[docs] def filterList2(self, aStr): - """filter a list as 'KERNEL,YACS,etc.'""" - aList = aStr.strip().split(",") - # fix list leading ',' as ',KERNEL,...' - aList = [i for i in aList if i != ""] # split old list leadin "," as ",KERNEL,ETC..." - return aList
- - - def __repr__(self): - """ - repr for only self.options and self.results (if present) - """ - aDict = {'options': self.options, 'results': self.results} - aStr = PP.pformat(aDict) - res = "%s(\n %s\n)" % (self.__class__.__name__, aStr[1:-1]) - return res - - def __str__(self): - """ - str for only resume expected self.options - """ - #aDict = [(k["longName"], k["shortName", k["helpString"]) for k in self.options} - #aList = [(k, self.options[k]) for k in sorted(self.options.keys())] - aDict = {} - for o in self.options: - aDict[o["longName"]] = (o["shortName"], o["helpString"]) - aStr = PP.pformat(aDict) - res = "%s(\n %s)" % (self.__class__.__name__, aStr[1:-1]) - return res - -
[docs] def debug_write(self): - DBG.write("options and results", self, True)
- - -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/printcolors.html b/doc/build/html/_modules/src/printcolors.html deleted file mode 100644 index 7c8cd92..0000000 --- a/doc/build/html/_modules/src/printcolors.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - - src.printcolors — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.printcolors

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-'''In this file is stored the mechanism that manage color prints in the terminal
-'''
-
-# define constant to use in scripts
-COLOR_ERROR = 'ERROR'
-COLOR_WARNING = 'WARNING'
-COLOR_SUCCESS = 'SUCCESS'
-COLOR_LABEL = 'LABEL'
-COLOR_HEADER = 'HEADER'
-COLOR_INFO = 'INFO'
-COLOR_HIGLIGHT = 'HIGHLIGHT'
-
-# the color map to use to print the colors
-__colormap__ = {
-    COLOR_ERROR: '\033[1m\033[31m',
-    COLOR_SUCCESS: '\033[1m\033[32m',
-    COLOR_WARNING: '\033[33m',
-    COLOR_HEADER: '\033[34m',
-    COLOR_INFO: '\033[35m',
-    COLOR_LABEL: '\033[36m',
-    COLOR_HIGLIGHT: '\033[97m\033[43m'
-}
-
-# list of available codes
-__code_range__ = ([1, 4] + list(range(30, 38)) + list(range(40, 48))
-                + list(range(90, 98)) + list(range(100, 108)))
-
-
[docs]def printc(txt, code=''): - '''print a text with colors - - :param txt str: The text to be printed. - :param code str: The color to use. - :return: The colored text. - :rtype: str - ''' - # no code means 'auto mode' (works only for OK, KO, NO and ERR*) - if code == '': - striptxt = txt.strip().upper() - if striptxt == "OK": - code = COLOR_SUCCESS - elif striptxt in ["KO", "NO"] or striptxt.startswith("ERR"): - code = COLOR_ERROR - else: - return txt - - # no code => output the originial text - if code not in __colormap__.keys() or __colormap__[code] == '': - return txt - - return __colormap__[code] + txt + '\033[0m'
- -
[docs]def printcInfo(txt): - '''print a text info color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_INFO)
- -
[docs]def printcError(txt): - '''print a text error color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_ERROR)
- -
[docs]def printcWarning(txt): - '''print a text warning color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_WARNING)
- -
[docs]def printcHeader(txt): - '''print a text header color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_HEADER)
- -
[docs]def printcLabel(txt): - '''print a text label color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_LABEL)
- -
[docs]def printcSuccess(txt): - '''print a text success color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_SUCCESS)
- -
[docs]def printcHighlight(txt): - '''print a text highlight color - - :param txt str: The text to be printed. - :return: The colored text. - :rtype: str - ''' - return printc(txt, COLOR_HIGLIGHT)
- -
[docs]def cleancolor(message): - '''remove color from a colored text. - - :param message str: The text to be cleaned. - :return: The cleaned text. - :rtype: str - ''' - if message == None: - return message - - message = message.replace('\033[0m', '') - for i in __code_range__: - message = message.replace('\033[%dm' % i, '') - return message
- - - - - -# This method prints the color map - - - -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/product.html b/doc/build/html/_modules/src/product.html deleted file mode 100644 index 31f7810..0000000 --- a/doc/build/html/_modules/src/product.html +++ /dev/null @@ -1,910 +0,0 @@ - - - - - - - - src.product — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.product

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2012  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-"""\
-In this file are implemented the methods 
-relative to the product notion of salomeTools
-"""
-
-import os
-import re
-
-import src
-import src.debug as DBG
-
-AVAILABLE_VCS = ['git', 'svn', 'cvs']
-config_expression = "^config-\d+$"
-VERSION_DELIMITER = "_to_"
-
-
[docs]def get_product_config(config, product_name, with_install_dir=True): - """Get the specific configuration of a product from the global configuration - - :param config Config: The global configuration - :param product_name str: The name of the product - :param with_install_dir boolean: If false, do not provide an install - directory (at false only for internal use - of the function check_config_exists) - :return: the specific configuration of the product - :rtype: Config - """ - - # Get the version of the product from the application definition - version = config.APPLICATION.products[product_name] - # if no version, then take the default one defined in the application - if isinstance(version, bool): - version = config.APPLICATION.tag - - # Define debug and dev modes - # Get the tag if a dictionary is given in APPLICATION.products for the - # current product - debug = 'no' - dev = 'no' - verbose = 'no' - base = 'maybe' - section = None - if isinstance(version, src.pyconf.Mapping): - dic_version = version - # Get the version/tag - if not 'tag' in dic_version: - version = config.APPLICATION.tag - else: - version = dic_version.tag - - # Get the debug if any - if 'debug' in dic_version: - debug = dic_version.debug - - # Get the verbose if any - if 'verbose' in dic_version: - verbose = dic_version.verbose - - # Get the dev if any - if 'dev' in dic_version: - dev = dic_version.dev - - # Get the base if any - if 'base' in dic_version: - base = dic_version.base - - # Get the section if any - if 'section' in dic_version: - section = dic_version.section - - vv = version - # substitute some character with _ in order to get the correct definition - # in config.PRODUCTS. This is done because the pyconf tool does not handle - # the . and - characters - for c in ".-": vv = vv.replace(c, "_") - - prod_info = None - if product_name in config.PRODUCTS: - # Search for the product description in the configuration - prod_info = get_product_section(config, product_name, vv, section) - - # merge opt_depend in depend - if prod_info is not None and 'opt_depend' in prod_info: - for depend in prod_info.opt_depend: - if depend in config.APPLICATION.products: - prod_info.depend.append(depend,'') - - # In case of a product get with a vcs, - # put the tag (equal to the version) - if prod_info is not None and prod_info.get_source in AVAILABLE_VCS: - - if prod_info.get_source == 'git': - prod_info.git_info.tag = version - - if prod_info.get_source == 'svn': - prod_info.svn_info.tag = version - - if prod_info.get_source == 'cvs': - prod_info.cvs_info.tag = version - - # In case of a fixed product, - # define the install_dir (equal to the version) - if prod_info is not None and os.path.isdir(version): - prod_info.install_dir = version - prod_info.get_source = "fixed" - - # Check if the product is defined as native in the application - if prod_info is not None: - if version == "native": - prod_info.get_source = "native" - elif prod_info.get_source == "native": - msg = _("The product %(prod)s has version %(ver)s but is " - "declared as native in its definition" % - { 'prod': prod_info.name, 'ver': version}) - raise src.SatException(msg) - - # If there is no definition but the product is declared as native, - # construct a new definition containing only the get_source key - if prod_info is None and version == "native": - prod_info = src.pyconf.Config() - prod_info.name = product_name - prod_info.get_source = "native" - - # If there is no definition but the product is fixed, - # construct a new definition containing only the product name - if prod_info is None and os.path.isdir(version): - prod_info = src.pyconf.Config() - prod_info.name = product_name - prod_info.get_source = "fixed" - prod_info.addMapping("environ", src.pyconf.Mapping(prod_info), "") - - - # If prod_info is still None, it means that there is no product definition - # in the config. The user has to provide it. - if prod_info is None: - prod_pyconf_path = src.find_file_in_lpath(product_name + ".pyconf", - config.PATHS.PRODUCTPATH) - if not prod_pyconf_path: - msg = _("""\ -No definition found for the product %(1)s. -Please create a %(2)s.pyconf file somewhere in: -%(3)s""") % { - "1": product_name, - "2": product_name, - "3": config.PATHS.PRODUCTPATH } - else: - msg = _("""\ -No definition corresponding to the version %(1)s was found in the file: - %(2)s. -Please add a section in it.""") % {"1" : vv, "2" : prod_pyconf_path} - raise src.SatException(msg) - - # Set the debug, dev and version keys - prod_info.debug = debug - prod_info.verbose = verbose - prod_info.dev = dev - prod_info.version = version - - # Set the archive_info if the product is get in archive mode - if prod_info.get_source == "archive": - if not "archive_info" in prod_info: - prod_info.addMapping("archive_info", - src.pyconf.Mapping(prod_info), - "") - if "archive_name" not in prod_info.archive_info: - arch_name = product_name + "-" + version + ".tar.gz" - arch_path = src.find_file_in_lpath(arch_name, - config.PATHS.ARCHIVEPATH) - if not arch_path: - msg = _("Archive %(1)s for %(2)s not found in config.PATHS.ARCHIVEPATH") % \ - {"1" : arch_name, "2" : prod_info.name} - DBG.tofix(msg, config.PATHS.ARCHIVEPATH) - prod_info.archive_info.archive_name = arch_name #without path - # raise src.SatException(msg) #may be a warning, continue #8646 - else: - prod_info.archive_info.archive_name = arch_path - else: - if (os.path.basename(prod_info.archive_info.archive_name) == - prod_info.archive_info.archive_name): - arch_name = prod_info.archive_info.archive_name - arch_path = src.find_file_in_lpath( - arch_name, - config.PATHS.ARCHIVEPATH) - if not arch_path: - msg = _("Archive %(1)s for %(2)s not found in config.PATHS.ARCHIVEPATH") % \ - {"1" : arch_name, "2" : prod_info.name} - DBG.tofix(msg, config.PATHS.ARCHIVEPATH) #avoid 2 messages in compile - prod_info.archive_info.archive_name = arch_name #without path - # raise src.SatException(msg) #may be a warning, continue #8646 - else: - prod_info.archive_info.archive_name = arch_path - - - # If the product compiles with a script, check the script existence - # and if it is executable - if product_has_script(prod_info): - # Check the compil_script key existence - if "compil_script" not in prod_info: - msg = _("""\ -No compilation script found for the product %s. -Please provide a 'compil_script' key in its definition.""") % product_name - raise src.SatException(msg) - - # Get the path of the script - script = prod_info.compil_script - script_name = os.path.basename(script) - if script == script_name: - # Only a name is given. Search in the default directory - script_path = src.find_file_in_lpath(script_name, - config.PATHS.PRODUCTPATH, - "compil_scripts") - if not script_path: - raise src.SatException( - _("Compilation script not found: %s") % script_name) - prod_info.compil_script = script_path - if src.architecture.is_windows(): - prod_info.compil_script = prod_info.compil_script[:-len(".sh")] + ".bat" - - # Check that the script is executable - if not os.access(prod_info.compil_script, os.X_OK): - #raise src.SatException( - # _("Compilation script cannot be executed: %s") % - # prod_info.compil_script) - DBG.tofix("Compilation script cannot be executed:", prod_info.compil_script) - - # Get the full paths of all the patches - if product_has_patches(prod_info): - patches = [] - try: - for patch in prod_info.patches: - patch_path = patch - # If only a filename, then search for the patch in the PRODUCTPATH - if os.path.basename(patch_path) == patch_path: - # Search in the PRODUCTPATH/patches - patch_path = src.find_file_in_lpath(patch, - config.PATHS.PRODUCTPATH, - "patches") - if not patch_path: - msg = _("Patch %(patch_name)s for %(prod_name)s not found:" - "\n" % {"patch_name" : patch, - "prod_name" : prod_info.name}) - raise src.SatException(msg) - patches.append(patch_path) - except: - DBG.tofix("problem in prod_info.patches", prod_info) - prod_info.patches = patches - - # Get the full paths of the environment scripts - if product_has_env_script(prod_info): - env_script_path = prod_info.environ.env_script - # If only a filename, then search for the environment script - # in the PRODUCTPATH/env_scripts - if os.path.basename(env_script_path) == env_script_path: - # Search in the PRODUCTPATH/env_scripts - env_script_path = src.find_file_in_lpath( - prod_info.environ.env_script, - config.PATHS.PRODUCTPATH, - "env_scripts") - if not env_script_path: - msg = _("Environment script %(env_name)s for %(prod_name)s not " - "found.\n" % {"env_name" : env_script_path, - "prod_name" : prod_info.name}) - raise src.SatException(msg) - - prod_info.environ.env_script = env_script_path - - if with_install_dir: - # The variable with_install_dir is at false only for internal use - # of the function get_install_dir - - # Save the install_dir key if there is any - if "install_dir" in prod_info and not "install_dir_save" in prod_info: - prod_info.install_dir_save = prod_info.install_dir - - # if it is not the first time the install_dir is computed, it means - # that install_dir_save exists and it has to be taken into account. - if "install_dir_save" in prod_info: - prod_info.install_dir = prod_info.install_dir_save - - # Set the install_dir key - prod_info.install_dir = get_install_dir(config, base, version, prod_info) - - return prod_info
- -
[docs]def get_product_section(config, product_name, version, section=None): - """Get the product description from the configuration - - :param config Config: The global configuration - :param product_name str: The product name - :param version str: The version of the product - :param section str: The searched section (if not None, the section is - explicitly given - :return: The product description - :rtype: Config - """ - - # if section is not None, try to get the corresponding section - if section: - if section not in config.PRODUCTS[product_name]: - return None - # returns specific information for the given version - prod_info = config.PRODUCTS[product_name][section] - prod_info.section = section - prod_info.from_file = config.PRODUCTS[product_name].from_file - return prod_info - - # If it exists, get the information of the product_version - if "version_" + version in config.PRODUCTS[product_name]: - # returns specific information for the given version - prod_info = config.PRODUCTS[product_name]["version_" + version] - prod_info.section = "version_" + version - prod_info.from_file = config.PRODUCTS[product_name].from_file - return prod_info - - # Else, check if there is a description for multiple versions - l_section_name = config.PRODUCTS[product_name].keys() - l_section_ranges = [section_name for section_name in l_section_name - if VERSION_DELIMITER in section_name] - for section_range in l_section_ranges: - minimum, maximum = section_range.split(VERSION_DELIMITER) - if (src.only_numbers(version) >= src.only_numbers(minimum) - and src.only_numbers(version) <= src.only_numbers(maximum)): - # returns specific information for the versions - prod_info = config.PRODUCTS[product_name][section_range] - prod_info.section = section_range - prod_info.from_file = config.PRODUCTS[product_name].from_file - return prod_info - - # Else, get the standard informations - if "default" in config.PRODUCTS[product_name]: - # returns the generic information (given version not found) - prod_info = config.PRODUCTS[product_name].default - prod_info.section = "default" - prod_info.from_file = config.PRODUCTS[product_name].from_file - return prod_info - - # if noting was found, return None - return None
- -
[docs]def get_install_dir(config, base, version, prod_info): - """Compute the installation directory of a given product - - :param config Config: The global configuration - :param base str: This corresponds to the value given by user in its - application.pyconf for the specific product. If "yes", the - user wants the product to be in base. If "no", he wants the - product to be in the application workdir - :param version str: The version of the product - :param product_info Config: The configuration specific to - the product - - :return: The path of the product installation - :rtype: str - """ - install_dir = "" - in_base = False - if (("install_dir" in prod_info and prod_info.install_dir == "base") - or base == "yes"): - in_base = True - if (base == "no" or ("no_base" in config.APPLICATION - and config.APPLICATION.no_base == "yes")): - in_base = False - - if in_base: - install_dir = get_base_install_dir(config, prod_info, version) - else: - if "install_dir" not in prod_info or prod_info.install_dir == "base": - # Set it to the default value (in application directory) - install_dir = os.path.join(config.APPLICATION.workdir, - "INSTALL", - prod_info.name) - else: - install_dir = prod_info.install_dir - - return install_dir
- -
[docs]def get_base_install_dir(config, prod_info, version): - """Compute the installation directory of a product in base - - :param config Config: The global configuration - :param product_info Config: The configuration specific to - the product - :param version str: The version of the product - :return: The path of the product installation - :rtype: str - """ - base_path = src.get_base_path(config) - prod_dir = os.path.join(base_path, prod_info.name + "-" + version) - if not os.path.exists(prod_dir): - return os.path.join(prod_dir, "config-1") - - exists, install_dir = check_config_exists(config, prod_dir, prod_info) - if exists: - return install_dir - - # Find the first config-<i> directory that is available in the product - # directory - found = False - label = 1 - while not found: - install_dir = os.path.join(prod_dir, "config-%i" % label) - if os.path.exists(install_dir): - label+=1 - else: - found = True - - return install_dir
- -
[docs]def check_config_exists(config, prod_dir, prod_info): - """\ - Verify that the installation directory of a product in a base exists - Check all the config-<i> directory and verify the sat-config.pyconf file - that is in it - - :param config Config: The global configuration - :param prod_dir str: The product installation directory path - (without config-<i>) - :param product_info Config: The configuration specific to - the product - :return: True or false is the installation is found or not - and if it is found, the path of the found installation - :rtype: (boolean, str) - """ - # check if the directories or files of the directory corresponds to the - # directory installation of the product - l_dir_and_files = os.listdir(prod_dir) - for dir_or_file in l_dir_and_files: - oExpr = re.compile(config_expression) - if not(oExpr.search(dir_or_file)): - # not config-<i>, not interesting - continue - # check if there is the file sat-config.pyconf file in the installation - # directory - config_file = os.path.join(prod_dir, dir_or_file, src.CONFIG_FILENAME) - if not os.path.exists(config_file): - continue - - # If there is no dependency, it is the right path - if len(prod_info.depend)==0: - compile_cfg = src.pyconf.Config(config_file) - if len(compile_cfg) == 0: - return True, os.path.join(prod_dir, dir_or_file) - continue - - # check if there is the config described in the file corresponds the - # dependencies of the product - config_corresponds = True - compile_cfg = src.pyconf.Config(config_file) - for prod_dep in prod_info.depend: - # if the dependency is not in the config, - # the config does not correspond - if prod_dep not in compile_cfg: - config_corresponds = False - break - else: - prod_dep_info = get_product_config(config, prod_dep, False) - # If the version of the dependency does not correspond, - # the config does not correspond - if prod_dep_info.version != compile_cfg[prod_dep]: - config_corresponds = False - break - - for prod_name in compile_cfg: - if prod_name not in prod_info.depend: - config_corresponds = False - break - - if config_corresponds: - return True, os.path.join(prod_dir, dir_or_file) - - return False, None
- - - -
[docs]def get_products_infos(lproducts, config): - """Get the specific configuration of a list of products - - :param lproducts List: The list of product names - :param config Config: The global configuration - :return: the list of tuples - (product name, specific configuration of the product) - :rtype: [(str, Config)] - """ - products_infos = [] - # Loop on product names - for prod in lproducts: - # Get the specific configuration of the product - prod_info = get_product_config(config, prod) - if prod_info is not None: - products_infos.append((prod, prod_info)) - else: - msg = _("The %s product has no definition " - "in the configuration.") % prod - raise src.SatException(msg) - return products_infos
- -
[docs]def get_product_dependencies(config, product_info): - """\ - Get recursively the list of products that are - in the product_info dependencies - - :param config Config: The global configuration - :param product_info Config: The configuration specific to - the product - :return: the list of products in dependence - :rtype: list - """ - if "depend" not in product_info or product_info.depend == []: - return [] - res = [] - for prod in product_info.depend: - if prod == product_info.name: - continue - if prod not in res: - res.append(prod) - prod_info = get_product_config(config, prod) - dep_prod = get_product_dependencies(config, prod_info) - for prod_in_dep in dep_prod: - if prod_in_dep not in res: - res.append(prod_in_dep) - return res
- -
[docs]def check_installation(product_info): - """\ - Verify if a product is well installed. Checks install directory presence - and some additional files if it is defined in the config - - :param product_info Config: The configuration specific to - the product - :return: True if it is well installed - :rtype: boolean - """ - if not product_compiles(product_info): - return True - install_dir = product_info.install_dir - if not os.path.exists(install_dir): - return False - if ("present_files" in product_info and - "install" in product_info.present_files): - for file_relative_path in product_info.present_files.install: - file_path = os.path.join(install_dir, file_relative_path) - if not os.path.exists(file_path): - return False - return True
- -
[docs]def check_source(product_info): - """Verify if a sources of product is preset. Checks source directory presence - - :param product_info Config: The configuration specific to - the product - :return: True if it is well installed - :rtype: boolean - """ - DBG.write("check_source product_info", product_info) - source_dir = product_info.source_dir - if not os.path.exists(source_dir): - return False - if ("present_files" in product_info and - "source" in product_info.present_files): - for file_relative_path in product_info.present_files.source: - file_path = os.path.join(source_dir, file_relative_path) - if not os.path.exists(file_path): - return False - return True
- -
[docs]def product_is_salome(product_info): - """Know if a product is a SALOME module - - :param product_info Config: The configuration specific to - the product - :return: True if the product is a SALOME module, else False - :rtype: boolean - """ - return ("properties" in product_info and - "is_SALOME_module" in product_info.properties and - product_info.properties.is_SALOME_module == "yes")
- -
[docs]def product_is_fixed(product_info): - """Know if a product is fixed - - :param product_info Config: The configuration specific to - the product - :return: True if the product is fixed, else False - :rtype: boolean - """ - get_src = product_info.get_source - return get_src.lower() == 'fixed'
- -
[docs]def product_is_native(product_info): - """Know if a product is native - - :param product_info Config: The configuration specific to - the product - :return: True if the product is native, else False - :rtype: boolean - """ - get_src = product_info.get_source - return get_src.lower() == 'native'
- -
[docs]def product_is_dev(product_info): - """Know if a product is in dev mode - - :param product_info Config: The configuration specific to - the product - :return: True if the product is in dev mode, else False - :rtype: boolean - """ - dev = product_info.dev - res = (dev.lower() == 'yes') - DBG.write('product_is_dev %s' % product_info.name, res) - # if product_info.name == "XDATA": return True #test #10569 - return res
- -
[docs]def product_is_debug(product_info): - """Know if a product is in debug mode - - :param product_info Config: The configuration specific to - the product - :return: True if the product is in debug mode, else False - :rtype: boolean - """ - debug = product_info.debug - return debug.lower() == 'yes'
- -
[docs]def product_is_verbose(product_info): - """Know if a product is in verbose mode - - :param product_info Config: The configuration specific to - the product - :return: True if the product is in verbose mode, else False - :rtype: boolean - """ - verbose = product_info.verbose - return verbose.lower() == 'yes'
- -
[docs]def product_is_autotools(product_info): - """Know if a product is compiled using the autotools - - :param product_info Config: The configuration specific to - the product - :return: True if the product is autotools, else False - :rtype: boolean - """ - build_src = product_info.build_source - return build_src.lower() == 'autotools'
- -
[docs]def product_is_cmake(product_info): - """Know if a product is compiled using the cmake - - :param product_info Config: The configuration specific to - the product - :return: True if the product is cmake, else False - :rtype: boolean - """ - build_src = product_info.build_source - return build_src.lower() == 'cmake'
- -
[docs]def product_is_vcs(product_info): - """Know if a product is download using git, svn or cvs (not archive) - - :param product_info Config: The configuration specific to - the product - :return: True if the product is vcs, else False - :rtype: boolean - """ - return product_info.get_source in AVAILABLE_VCS
- -
[docs]def product_is_smesh_plugin(product_info): - """Know if a product is a SMESH plugin - - :param product_info Config: The configuration specific to - the product - :return: True if the product is a SMESH plugin, else False - :rtype: boolean - """ - return ("properties" in product_info and - "smesh_plugin" in product_info.properties and - product_info.properties.smesh_plugin == "yes")
- -
[docs]def product_is_cpp(product_info): - """Know if a product is cpp - - :param product_info Config: The configuration specific to - the product - :return: True if the product is a cpp, else False - :rtype: boolean - """ - return ("properties" in product_info and - "cpp" in product_info.properties and - product_info.properties.cpp == "yes")
- -
[docs]def product_compiles(product_info): - """\ - Know if a product compiles or not - (some products do not have a compilation procedure) - - :param product_info Config: The configuration specific to - the product - :return: True if the product compiles, else False - :rtype: boolean - """ - return not("properties" in product_info and - "compilation" in product_info.properties and - product_info.properties.compilation == "no")
- -
[docs]def product_has_script(product_info): - """Know if a product has a compilation script - - :param product_info Config: The configuration specific to - the product - :return: True if the product it has a compilation script, else False - :rtype: boolean - """ - if "build_source" not in product_info: - # Native case - return False - build_src = product_info.build_source - return build_src.lower() == 'script'
- -
[docs]def product_has_env_script(product_info): - """Know if a product has an environment script - - :param product_info Config: The configuration specific to - the product - :return: True if the product it has an environment script, else False - :rtype: boolean - """ - return "environ" in product_info and "env_script" in product_info.environ
- -
[docs]def product_has_patches(product_info): - """Know if a product has one or more patches - - :param product_info Config: The configuration specific to - the product - :return: True if the product has one or more patches - :rtype: boolean - """ - res = ( "patches" in product_info and len(product_info.patches) > 0 ) - DBG.write('product_has_patches %s' % product_info.name, res) - # if product_info.name == "XDATA": return True #test #10569 - return res
- - - -
[docs]def product_has_salome_gui(product_info): - """Know if a product has a SALOME gui - - :param product_info Config: The configuration specific to - the product - :return: True if the product has a SALOME gui, else False - :rtype: Boolean - """ - return ("properties" in product_info and - "has_salome_gui" in product_info.properties and - product_info.properties.has_salome_gui == "yes")
- -
[docs]def product_is_mpi(product_info): - """Know if a product has openmpi in its dependencies - - :param product_info Config: The configuration specific to - the product - :return: True if the product has openmpi inits dependencies - :rtype: boolean - """ - return "openmpi" in product_info.depend
- -
[docs]def product_is_generated(product_info): - """Know if a product is generated (YACSGEN) - - :param product_info Config: The configuration specific to - the product - :return: True if the product is generated - :rtype: boolean - """ - return ("properties" in product_info and - "generate" in product_info.properties and - product_info.properties.generate == "yes")
- -
[docs]def get_product_components(product_info): - """Get the component list to generate with the product - - :param product_info Config: The configuration specific to - the product - :return: The list of names of the components - :rtype: List - - """ - if not product_is_generated(product_info): - return [] - - compo_list = [] - if "component_name" in product_info: - compo_list = product_info.component_name - - if isinstance(compo_list, str): - compo_list = [ compo_list ] - - return compo_list
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/pyconf.html b/doc/build/html/_modules/src/pyconf.html deleted file mode 100644 index 5b2064e..0000000 --- a/doc/build/html/_modules/src/pyconf.html +++ /dev/null @@ -1,1824 +0,0 @@ - - - - - - - - src.pyconf — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.pyconf

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-
-# Copyright 2004-2007 by Vinay Sajip. All Rights Reserved.
-#
-# Permission to use, copy, modify, and distribute this software and its
-# documentation for any purpose and without fee is hereby granted,
-# provided that the above copyright notice appear in all copies and that
-# both that copyright notice and this permission notice appear in
-# supporting documentation, and that the name of Vinay Sajip
-# not be used in advertising or publicity pertaining to distribution
-# of the software without specific, written prior permission.
-# VINAY SAJIP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
-# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
-# VINAY SAJIP BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
-# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
-# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-# CEA adds : 
-# Possibility to overwrites value in a pyconf file
-# Python 3 porting
-
-
-"""
-This is a configuration module for Python.
-
-This module should work under Python versions >= 2.2, and cannot be used with
-earlier versions since it uses new-style classes.
-
-Development and testing has only been carried out (so far) on Python 2.3.4 and
-Python 2.4.2. See the test module (test_config.py) included in the
-U{distribution<http://www.red-dove.com/python_config.html|_blank>} (follow the
-download link).
-
-A simple example - with the example configuration file::
-
-    messages:
-    [
-      {
-        stream : `sys.stderr`
-        message: 'Welcome'
-        name: 'Harry'
-      }
-      {
-        stream : `sys.stdout`
-        message: 'Welkom'
-        name: 'Ruud'
-      }
-      {
-        stream : $messages[0].stream
-        message: 'Bienvenue'
-        name: Yves
-      }
-    ]
-
-a program to read the configuration would be::
-
-    from config import Config
-
-    f = file('simple.cfg')
-    cfg = Config(f)
-    for m in cfg.messages:
-        s = '%s, %s' % (m.message, m.name)
-        try:
-            print >> m.stream, s
-        except IOError, e:
-            print e
-
-which, when run, would yield the console output::
-
-    Welcome, Harry
-    Welkom, Ruud
-    Bienvenue, Yves
-
-See U{this tutorial<http://www.red-dove.com/python_config.html|_blank>} for more
-information.
-
-#modified for salomeTools
-@version: 0.3.7.1
-
-@author: Vinay Sajip
-
-@copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved.
-
-
-@var streamOpener: The default stream opener. This is a factory function which
-takes a string (e.g. filename) and returns a stream suitable for reading. If
-unable to open the stream, an IOError exception should be thrown.
-
-The default value of this variable is L{defaultStreamOpener}. For an example
-of how it's used, see test_config.py (search for streamOpener).
-"""
-
-__author__  = "Vinay Sajip <vinay_sajip@red-dove.com>"
-__status__  = "alpha"
-__version__ = "0.3.7.1" #modified for salomeTools
-__date__    = "05 October 2007"
-
-import codecs
-import os
-import sys
-
-WORD = 'a'
-NUMBER = '9'
-STRING = '"'
-EOF = ''
-LCURLY = '{'
-RCURLY = '}'
-LBRACK = '['
-LBRACK2 = 'a['
-RBRACK = ']'
-LPAREN = '('
-LPAREN2 = '(('
-RPAREN = ')'
-DOT = '.'
-COMMA = ','
-COLON = ':'
-AT = '@'
-PLUS = '+'
-MINUS = '-'
-STAR = '*'
-SLASH = '/'
-MOD = '%'
-BACKTICK = '`'
-DOLLAR = '$'
-TRUE = 'True'
-FALSE = 'False'
-NONE = 'None'
-
-WORDCHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_"
-
-if sys.platform == 'win32':
-    NEWLINE = '\r\n'
-elif os.name == 'mac':
-    NEWLINE = '\r'
-else:
-    NEWLINE = '\n'
-
-try:
-    has_utf32 = True
-except:
-    has_utf32 = False
-
-
[docs]class ConfigInputStream(object): - """ - An input stream which can read either ANSI files with default encoding - or Unicode files with BOMs. - - Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had - built-in support. - """ - def __init__(self, stream): - """ - Initialize an instance. - - @param stream: The underlying stream to be read. Should be seekable. - @type stream: A stream (file-like object). - """ - encoding = None - signature = stream.read(4) - used = -1 - if has_utf32: - if signature == codecs.BOM_UTF32_LE: - encoding = 'utf-32le' - elif signature == codecs.BOM_UTF32_BE: - encoding = 'utf-32be' - if encoding is None: - if signature[:3] == codecs.BOM_UTF8: - used = 3 - encoding = 'utf-8' - elif signature[:2] == codecs.BOM_UTF16_LE: - used = 2 - encoding = 'utf-16le' - elif signature[:2] == codecs.BOM_UTF16_BE: - used = 2 - encoding = 'utf-16be' - else: - used = 0 - if used >= 0: - stream.seek(used) - if encoding: - reader = codecs.getreader(encoding) - stream = reader(stream) - self.stream = stream - self.encoding = encoding - -
[docs] def read(self, size): - if (size == 0) or (self.encoding is None): - rv = self.stream.read(size) - else: - rv = u'' - while size > 0: - rv += self.stream.read(1) - size -= 1 - return rv
- -
[docs] def close(self): - self.stream.close()
- -
[docs] def readline(self): - if self.encoding is None: - line = '' - else: - line = u'' - while True: - c = self.stream.read(1) - if isinstance(c, bytes): - c = c.decode() - if c: - line += c - if c == '\n': - break - return line
- -
[docs]class ConfigOutputStream(object): - """ - An output stream which can write either ANSI files with default encoding - or Unicode files with BOMs. - - Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had - built-in support. - """ - - def __init__(self, stream, encoding=None): - """ - Initialize an instance. - - @param stream: The underlying stream to be written. - @type stream: A stream (file-like object). - @param encoding: The desired encoding. - @type encoding: str - """ - if encoding is not None: - encoding = str(encoding).lower() - self.encoding = encoding - if encoding == "utf-8": - stream.write(codecs.BOM_UTF8) - elif encoding == "utf-16be": - stream.write(codecs.BOM_UTF16_BE) - elif encoding == "utf-16le": - stream.write(codecs.BOM_UTF16_LE) - elif encoding == "utf-32be": - stream.write(codecs.BOM_UTF32_BE) - elif encoding == "utf-32le": - stream.write(codecs.BOM_UTF32_LE) - - if encoding is not None: - writer = codecs.getwriter(encoding) - stream = writer(stream) - self.stream = stream - -
[docs] def write(self, data): - self.stream.write(data)
- -
[docs] def flush(self): - self.stream.flush()
- -
[docs] def close(self): - self.stream.close()
- -
[docs]def defaultStreamOpener(name): - """\ - This function returns a read-only stream, given its name. The name passed - in should correspond to an existing stream, otherwise an exception will be - raised. - - This is the default value of L{streamOpener}; assign your own callable to - streamOpener to return streams based on names. For example, you could use - urllib2.urlopen(). - - @param name: The name of a stream, most commonly a file name. - @type name: str - @return: A stream with the specified name. - @rtype: A read-only stream (file-like object) - """ - return ConfigInputStream(open(name, 'rb'))
- -streamOpener = None - -__resolveOverwrite__ = True - -
[docs]class ConfigError(Exception): - """ - This is the base class of exceptions raised by this module. - """ - pass
- -
[docs]class ConfigFormatError(ConfigError): - """ - This is the base class of exceptions raised due to syntax errors in - configurations. - """ - pass
- -
[docs]class ConfigResolutionError(ConfigError): - """ - This is the base class of exceptions raised due to semantic errors in - configurations. - """ - pass
- -
[docs]def isWord(s): - """ - See if a passed-in value is an identifier. If the value passed in is not a - string, False is returned. An identifier consists of alphanumerics or - underscore characters. - - Examples:: - - isWord('a word') ->False - isWord('award') -> True - isWord(9) -> False - isWord('a_b_c_') ->True - - @note: isWord('9abc') will return True - not exactly correct, but adequate - for the way it's used here. - - @param s: The name to be tested - @type s: any - @return: True if a word, else False - @rtype: bool - """ - if type(s) != type(''): - return False - s = s.replace('_', '') - return s.isalnum()
- -
[docs]def makePath(prefix, suffix): - """\ - Make a path from a prefix and suffix. - - Examples: - makePath('', 'suffix') -> 'suffix' - makePath('prefix', 'suffix') -> 'prefix.suffix' - makePath('prefix', '[1]') -> 'prefix[1]' - - @param prefix: The prefix to use. If it evaluates as false, the suffix is returned. - @type prefix: str - @param suffix: The suffix to use. It is either an identifier or an index in brackets. - @type suffix: str - @return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index. - @rtype: str - """ - if not prefix: - rv = suffix - elif suffix[0] == '[': - rv = prefix + suffix - else: - rv = prefix + '.' + suffix - return rv
- - -
[docs]class Container(object): - """ - This internal class is the base class for mappings and sequences. - - @ivar path: A string which describes how to get - to this instance from the root of the hierarchy. - - Example:: - - a.list.of[1].or['more'].elements - """ - def __init__(self, parent): - """ - Initialize an instance. - - @param parent: The parent of this instance in the hierarchy. - @type parent: A L{Container} instance. - """ - object.__setattr__(self, 'parent', parent) - -
[docs] def setPath(self, path): - """ - Set the path for this instance. - @param path: The path - a string which describes how to get - to this instance from the root of the hierarchy. - @type path: str - """ - object.__setattr__(self, 'path', path)
- -
[docs] def evaluate(self, item): - """ - Evaluate items which are instances of L{Reference} or L{Expression}. - - L{Reference} instances are evaluated using L{Reference.resolve}, - and L{Expression} instances are evaluated using - L{Expression.evaluate}. - - @param item: The item to be evaluated. - @type item: any - @return: If the item is an instance of L{Reference} or L{Expression}, - the evaluated value is returned, otherwise the item is returned - unchanged. - """ - if isinstance(item, Reference): - item = item.resolve(self) - elif isinstance(item, Expression): - item = item.evaluate(self) - return item
- -
[docs] def writeToStream(self, stream, indent, container): - """ - Write this instance to a stream at the specified indentation level. - - Should be redefined in subclasses. - - @param stream: The stream to write to - @type stream: A writable stream (file-like object) - @param indent: The indentation level - @type indent: int - @param container: The container of this instance - @type container: L{Container} - @raise NotImplementedError: If a subclass does not override this - """ - raise NotImplementedError
- -
[docs] def writeValue(self, value, stream, indent): - if isinstance(self, Mapping): - indstr = ' ' - else: - indstr = indent * ' ' - if isinstance(value, Reference) or isinstance(value, Expression): - stream.write('%s%r%s' % (indstr, value, NEWLINE)) - else: - if isinstance(value, str): # and not isWord(value): - value = repr(value) - stream.write('%s%s%s' % (indstr, value, NEWLINE))
- -
[docs]class Mapping(Container): - """ - This internal class implements key-value mappings in configurations. - """ - - def __init__(self, parent=None): - """ - Initialize an instance. - - @param parent: The parent of this instance in the hierarchy. - @type parent: A L{Container} instance. - """ - Container.__init__(self, parent) - object.__setattr__(self, 'path', '') - object.__setattr__(self, 'data', {}) - object.__setattr__(self, 'order', []) # to preserve ordering - object.__setattr__(self, 'comments', {}) - - def __delitem__(self, key): - """ - Remove an item - """ - data = object.__getattribute__(self, 'data') - if key not in data: - raise AttributeError(key) - order = object.__getattribute__(self, 'order') - comments = object.__getattribute__(self, 'comments') - del data[key] - order.remove(key) - del comments[key] - - def __getitem__(self, key): - data = object.__getattribute__(self, 'data') - if key not in data: - raise AttributeError(key) - rv = data[key] - return self.evaluate(rv) - - __getattr__ = __getitem__ - - ''' - def __getattribute__(self, name): - if name == "__dict__": - return {} - if name in ["__methods__", "__members__"]: - return [] - #if name == "__class__": - # return '' - data = object.__getattribute__(self, "data") - useData = data.has_key(name) - if useData: - rv = getattr(data, name) - else: - rv = object.__getattribute__(self, name) - if rv is None: - raise AttributeError(name) - return rv - ''' - -
[docs] def iteritems(self): - for key in self.keys(): - yield(key, self[key]) - raise StopIteration
- - def __contains__(self, item): - order = object.__getattribute__(self, 'order') - return item in order - -
[docs] def addMapping(self, key, value, comment, setting=False): - """ - Add a key-value mapping with a comment. - - @param key: The key for the mapping. - @type key: str - @param value: The value for the mapping. - @type value: any - @param comment: The comment for the key (can be None). - @type comment: str - @param setting: If True, ignore clashes. This is set - to true when called from L{__setattr__}. - @raise ConfigFormatError: If an existing key is seen - again and setting is False. - """ - data = object.__getattribute__(self, 'data') - order = object.__getattribute__(self, 'order') - comments = object.__getattribute__(self, 'comments') - - data[key] = value - if key not in order: - order.append(key) - elif not setting: - raise ConfigFormatError("repeated key: %s" % key) - comments[key] = comment
- - def __setattr__(self, name, value): - self.addMapping(name, value, None, True) - - __setitem__ = __setattr__ - -
[docs] def keys(self): - """ - Return the keys in a similar way to a dictionary. - """ - return object.__getattribute__(self, 'order')
- -
[docs] def get(self, key, default=None): - """ - Allows a dictionary-style get operation. - """ - if key in self: - return self[key] - return default
- - def __str__(self): - return str(object.__getattribute__(self, 'data')) - - def __repr__(self): - return repr(object.__getattribute__(self, 'data')) - - def __len__(self): - return len(object.__getattribute__(self, 'order')) - - def __iter__(self): - return self.iterkeys() - -
[docs] def iterkeys(self): - order = object.__getattribute__(self, 'order') - return order.__iter__()
- -
[docs] def writeToStream(self, stream, indent, container): - """ - Write this instance to a stream at the specified indentation level. - - Should be redefined in subclasses. - - @param stream: The stream to write to - @type stream: A writable stream (file-like object) - @param indent: The indentation level - @type indent: int - @param container: The container of this instance - @type container: L{Container} - """ - indstr = indent * ' ' - if len(self) == 0: - stream.write(' { }%s' % NEWLINE) - else: - if isinstance(container, Mapping): - stream.write(NEWLINE) - stream.write('%s{%s' % (indstr, NEWLINE)) - self.__save__(stream, indent + 1) - stream.write('%s}%s' % (indstr, NEWLINE))
- - def __save__(self, stream, indent=0): - """ - Save this configuration to the specified stream. - @param stream: A stream to which the configuration is written. - @type stream: A write-only stream (file-like object). - @param indent: The indentation level for the output. - @type indent: int - """ - indstr = indent * ' ' - order = object.__getattribute__(self, 'order') - data = object.__getattribute__(self, 'data') - maxlen = 0 # max(map(lambda x: len(x), order)) - for key in order: - comment = self.comments[key] - if isWord(key): - skey = key - else: - skey = repr(key) - if comment: - stream.write('%s#%s' % (indstr, comment)) - if skey.startswith("u'"): - skey = skey[1:] - stream.write('%s%-*s :' % (indstr, maxlen, skey)) - value = data[key] - if isinstance(value, Container): - value.writeToStream(stream, indent, self) - else: - self.writeValue(value, stream, indent)
- -
[docs]class Config(Mapping): - """ - This class represents a configuration, and is the only one which clients - need to interface to, under normal circumstances. - """ - -
[docs] class Namespace(object): - """ - This internal class is used for implementing default namespaces. - - An instance acts as a namespace. - """ - def __init__(self): - self.sys = sys - self.os = os
- - def __init__(self, streamOrFile=None, parent=None, PWD = None): - """ - Initializes an instance. - - @param streamOrFile: If specified, causes this instance to be loaded - from the stream (by calling L{load}). If a string is provided, it is - passed to L{streamOpener} to open a stream. Otherwise, the passed - value is assumed to be a stream and used as is. - @type streamOrFile: A readable stream (file-like object) or a name. - @param parent: If specified, this becomes the parent of this instance - in the configuration hierarchy. - @type parent: a L{Container} instance. - """ - try: # Python 3 compatibility - if isinstance(streamOrFile, unicode): - streamOrFile = streamOrFile.encode() - except NameError: - pass - Mapping.__init__(self, parent) - object.__setattr__(self, 'reader', ConfigReader(self)) - object.__setattr__(self, 'namespaces', [Config.Namespace()]) - if streamOrFile is not None: - if isinstance(streamOrFile, str) or isinstance(streamOrFile, bytes): - global streamOpener - if streamOpener is None: - streamOpener = defaultStreamOpener - streamOrFile = streamOpener(streamOrFile) - load = object.__getattribute__(self, "load") - load(streamOrFile) - # Specific add for salomeTools : PWD - if PWD: - key, pwd = PWD - if key == "": - self.PWD = pwd - else: - self[key].PWD = pwd - -
[docs] def load(self, stream): - """ - Load the configuration from the specified stream. Multiple streams can - be used to populate the same instance, as long as there are no - clashing keys. The stream is closed. - @param stream: A stream from which the configuration is read. - @type stream: A read-only stream (file-like object). - @raise ConfigError: if keys in the loaded configuration clash with - existing keys. - @raise ConfigFormatError: if there is a syntax error in the stream. - """ - reader = object.__getattribute__(self, 'reader') - reader.load(stream) - stream.close()
- -
[docs] def addNamespace(self, ns, name=None): - """ - Add a namespace to this configuration which can be used to evaluate - (resolve) dotted-identifier expressions. - @param ns: The namespace to be added. - @type ns: A module or other namespace suitable for passing as an - argument to vars(). - @param name: A name for the namespace, which, if specified, provides - an additional level of indirection. - @type name: str - """ - namespaces = object.__getattribute__(self, 'namespaces') - if name is None: - namespaces.append(ns) - else: - setattr(namespaces[0], name, ns)
- -
[docs] def removeNamespace(self, ns, name=None): - """ - Remove a namespace added with L{addNamespace}. - @param ns: The namespace to be removed. - @param name: The name which was specified when L{addNamespace} was - called. - @type name: str - """ - namespaces = object.__getattribute__(self, 'namespaces') - if name is None: - namespaces.remove(ns) - else: - delattr(namespaces[0], name)
- - def __save__(self, stream, indent=0, no_close=False): - """ - Save this configuration to the specified stream. The stream is - closed if this is the top-level configuration in the hierarchy. - L{Mapping.__save__} is called to do all the work. - @param stream: A stream to which the configuration is written. - @type stream: A write-only stream (file-like object). - @param indent: The indentation level for the output. - @type indent: int - """ - Mapping.__save__(self, stream, indent) - if indent == 0 and not no_close: - stream.close() - -
[docs] def getByPath(self, path): - """ - Obtain a value in the configuration via its path. - @param path: The path of the required value - @type path: str - @return the value at the specified path. - @rtype: any - @raise ConfigError: If the path is invalid - """ - s = 'self.' + path - try: - return eval(s) - except Exception as e: - raise ConfigError(str(e))
- -
[docs]class Sequence(Container): - """ - This internal class implements a value which is a sequence of other values. - """ -
[docs] class SeqIter(object): - """ - This internal class implements an iterator for a L{Sequence} instance. - """ - def __init__(self, seq): - self.seq = seq - self.limit = len(object.__getattribute__(seq, 'data')) - self.index = 0 - - def __iter__(self): - return self - -
[docs] def next(self): - if self.index >= self.limit: - raise StopIteration - rv = self.seq[self.index] - self.index += 1 - return rv
- - # This method is for python3 compatibility - def __next__(self): - if self.index >= self.limit: - raise StopIteration - rv = self.seq[self.index] - self.index += 1 - return rv
- - def __init__(self, parent=None): - """ - Initialize an instance. - - @param parent: The parent of this instance in the hierarchy. - @type parent: A L{Container} instance. - """ - Container.__init__(self, parent) - object.__setattr__(self, 'data', []) - object.__setattr__(self, 'comments', []) - -
[docs] def append(self, item, comment): - """ - Add an item to the sequence. - - @param item: The item to add. - @type item: any - @param comment: A comment for the item. - @type comment: str - """ - data = object.__getattribute__(self, 'data') - comments = object.__getattribute__(self, 'comments') - data.append(item) - comments.append(comment)
- - def __getitem__(self, index): - data = object.__getattribute__(self, 'data') - try: - rv = data[index] - except (IndexError, KeyError, TypeError): - raise ConfigResolutionError('%r is not a valid index for %r' % (index, object.__getattribute__(self, 'path'))) - if not isinstance(rv, list): - rv = self.evaluate(rv) - else: - # deal with a slice - result = [] - for a in rv: - result.append(self.evaluate(a)) - rv = result - return rv - - def __iter__(self): - return Sequence.SeqIter(self) - - def __repr__(self): - return repr(object.__getattribute__(self, 'data')) - - def __str__(self): - return str(self[:]) # using the slice evaluates the contents - - def __len__(self): - return len(object.__getattribute__(self, 'data')) - -
[docs] def writeToStream(self, stream, indent, container): - """ - Write this instance to a stream at the specified indentation level. - - Should be redefined in subclasses. - - @param stream: The stream to write to - @type stream: A writable stream (file-like object) - @param indent: The indentation level - @type indent: int - @param container: The container of this instance - @type container: L{Container} - """ - indstr = indent * ' ' - if len(self) == 0: - stream.write(' [ ]%s' % NEWLINE) - else: - if isinstance(container, Mapping): - stream.write(NEWLINE) - stream.write('%s[%s' % (indstr, NEWLINE)) - self.__save__(stream, indent + 1) - stream.write('%s]%s' % (indstr, NEWLINE))
- - def __save__(self, stream, indent): - """ - Save this instance to the specified stream. - @param stream: A stream to which the configuration is written. - @type stream: A write-only stream (file-like object). - @param indent: The indentation level for the output, > 0 - @type indent: int - """ - if indent == 0: - raise ConfigError("sequence cannot be saved as a top-level item") - data = object.__getattribute__(self, 'data') - comments = object.__getattribute__(self, 'comments') - indstr = indent * ' ' - for i in range(0, len(data)): - value = data[i] - comment = comments[i] - if comment: - stream.write('%s#%s' % (indstr, comment)) - if isinstance(value, Container): - value.writeToStream(stream, indent, self) - else: - self.writeValue(value, stream, indent)
- -
[docs]class Reference(object): - """ - This internal class implements a value which is a reference to another value. - """ - def __init__(self, config, type, ident): - """ - Initialize an instance. - - @param config: The configuration which contains this reference. - @type config: A L{Config} instance. - @param type: The type of reference. - @type type: BACKTICK or DOLLAR - @param ident: The identifier which starts the reference. - @type ident: str - """ - self.config = config - self.type = type - self.elements = [ident] - -
[docs] def addElement(self, type, ident): - """ - Add an element to the reference. - - @param type: The type of reference. - @type type: BACKTICK or DOLLAR - @param ident: The identifier which continues the reference. - @type ident: str - """ - self.elements.append((type, ident))
- -
[docs] def findConfig(self, container): - """ - Find the closest enclosing configuration to the specified container. - - @param container: The container to start from. - @type container: L{Container} - @return: The closest enclosing configuration, or None. - @rtype: L{Config} - """ - while (container is not None) and not isinstance(container, Config): - container = object.__getattribute__(container, 'parent') - return container
- -
[docs] def resolve(self, container): - """ - Resolve this instance in the context of a container. - - @param container: The container to resolve from. - @type container: L{Container} - @return: The resolved value. - @rtype: any - @raise ConfigResolutionError: If resolution fails. - """ - rv = None - path = object.__getattribute__(container, 'path') - current = container - while current is not None: - if self.type == BACKTICK: - namespaces = object.__getattribute__(current, 'namespaces') - found = False - for ns in namespaces: - try: - rv = eval(str(self)[1:-1], vars(ns)) - found = True - break - except: - pass - if found: - break - else: - key = self.elements[0] - try: - rv = current[key] - for item in self.elements[1:]: - key = item[1] - rv = rv[key] - break - except: - rv = None - pass - current = object.__getattribute__(current, 'parent') - if current is None: - raise ConfigResolutionError("unable to evaluate %r in the configuration %s" % (self, path)) - return rv
- - def __str__(self): - s = self.elements[0] - for tt, tv in self.elements[1:]: - if tt == DOT: - s += '.%s' % tv - else: - s += '[%r]' % tv - if self.type == BACKTICK: - return BACKTICK + s + BACKTICK - else: - return DOLLAR + s - - def __repr__(self): - return self.__str__()
- -
[docs]class Expression(object): - """ - This internal class implements a value which is obtained by evaluating an expression. - """ - def __init__(self, op, lhs, rhs): - """ - Initialize an instance. - - @param op: the operation expressed in the expression. - @type op: PLUS, MINUS, STAR, SLASH, MOD - @param lhs: the left-hand-side operand of the expression. - @type lhs: any Expression or primary value. - @param rhs: the right-hand-side operand of the expression. - @type rhs: any Expression or primary value. - """ - self.op = op - self.lhs = lhs - self.rhs = rhs - - def __str__(self): - return '%r %s %r' % (self.lhs, self.op, self.rhs) - - def __repr__(self): - return self.__str__() - -
[docs] def evaluate(self, container): - """ - Evaluate this instance in the context of a container. - - @param container: The container to evaluate in from. - @type container: L{Container} - @return: The evaluated value. - @rtype: any - @raise ConfigResolutionError: If evaluation fails. - @raise ZeroDivideError: If division by zero occurs. - @raise TypeError: If the operation is invalid, e.g. - subtracting one string from another. - """ - lhs = self.lhs - if isinstance(lhs, Reference): - lhs = lhs.resolve(container) - elif isinstance(lhs, Expression): - lhs = lhs.evaluate(container) - rhs = self.rhs - if isinstance(rhs, Reference): - rhs = rhs.resolve(container) - elif isinstance(rhs, Expression): - rhs = rhs.evaluate(container) - op = self.op - if op == PLUS: - rv = lhs + rhs - elif op == MINUS: - rv = lhs - rhs - elif op == STAR: - rv = lhs * rhs - elif op == SLASH: - rv = lhs / rhs - else: - rv = lhs % rhs - return rv
- -
[docs]class ConfigReader(object): - """ - This internal class implements a parser for configurations. - """ - - def __init__(self, config): - self.filename = None - self.config = config - self.lineno = 0 - self.colno = 0 - self.lastc = None - self.last_token = None - self.commentchars = '#' - self.whitespace = ' \t\r\n' - self.quotes = '\'"' - self.punct = ':-+*/%,.{}[]()@`$' - self.digits = '0123456789' - self.wordchars = '%s' % WORDCHARS # make a copy - self.identchars = self.wordchars + self.digits - self.pbchars = [] - self.pbtokens = [] - self.comment = None - -
[docs] def location(self): - """ - Return the current location (filename, line, column) in the stream - as a string. - - Used when printing error messages, - - @return: A string representing a location in the stream being read. - @rtype: str - """ - return "%s(%d,%d)" % (self.filename, self.lineno, self.colno)
- -
[docs] def getChar(self): - """ - Get the next char from the stream. Update line and column numbers - appropriately. - - @return: The next character from the stream. - @rtype: str - """ - if self.pbchars: - c = self.pbchars.pop() - if isinstance(c,bytes): - c = c.decode() - else: - c = self.stream.read(1) - if isinstance(c,bytes): - c = c.decode() - self.colno += 1 - if c == '\n': - self.lineno += 1 - self.colno = 1 - return c
- - def __repr__(self): - return "<ConfigReader at 0x%08x>" % id(self) - - __str__ = __repr__ - -
[docs] def getToken(self): - """ - Get a token from the stream. String values are returned in a form - where you need to eval() the returned value to get the actual - string. The return value is (token_type, token_value). - - Multiline string tokenizing is thanks to David Janes (BlogMatrix) - - @return: The next token. - @rtype: A token tuple. - """ - if self.pbtokens: - return self.pbtokens.pop() - stream = self.stream - self.comment = None - token = '' - tt = EOF - while True: - c = self.getChar() - if not c: - break - elif c == '#': - if self.comment : - self.comment += '#' + stream.readline() - else : - self.comment = stream.readline() - self.lineno += 1 - continue - if c in self.quotes: - token = c - quote = c - tt = STRING - escaped = False - multiline = False - c1 = self.getChar() - if c1 == quote: - c2 = self.getChar() - if c2 == quote: - multiline = True - token += quote - token += quote - else: - self.pbchars.append(c2) - self.pbchars.append(c1) - else: - self.pbchars.append(c1) - while True: - c = self.getChar() - if not c: - break - token += c - if (c == quote) and not escaped: - if not multiline or (len(token) >= 6 and token.endswith(token[:3]) and token[-4] != '\\'): - break - if c == '\\': - escaped = not escaped - else: - escaped = False - if not c: - raise ConfigFormatError('%s: Unterminated quoted string: %r, %r' % (self.location(), token, c)) - break - if c in self.whitespace: - self.lastc = c - continue - elif c in self.punct: - token = c - tt = c - if (self.lastc == ']') or (self.lastc in self.identchars): - if c == '[': - tt = LBRACK2 - elif c == '(': - tt = LPAREN2 - break - elif c in self.digits: - token = c - tt = NUMBER - while True: - c = self.getChar() - if not c: - break - if c in self.digits: - token += c - elif (c == '.') and token.find('.') < 0: - token += c - else: - if c and (c not in self.whitespace): - self.pbchars.append(c) - break - break - elif c in self.wordchars: - token = c - tt = WORD - c = self.getChar() - while c and (c in self.identchars): - token += c - c = self.getChar() - if c: # and c not in self.whitespace: - self.pbchars.append(c) - if token == "True": - tt = TRUE - elif token == "False": - tt = FALSE - elif token == "None": - tt = NONE - break - else: - raise ConfigFormatError('%s: Unexpected character: %r' % (self.location(), c)) - if token: - self.lastc = token[-1] - else: - self.lastc = None - self.last_token = tt - - # Python 2.x specific unicode conversion - if sys.version_info[0] == 2 and tt == WORD and isinstance(token, unicode): - token = token.encode('ascii') - return (tt, token)
- -
[docs] def load(self, stream, parent=None, suffix=None): - """ - Load the configuration from the specified stream. - - @param stream: A stream from which to load the configuration. - @type stream: A stream (file-like object). - @param parent: The parent of the configuration (to which this reader - belongs) in the hierarchy. Specified when the configuration is - included in another one. - @type parent: A L{Container} instance. - @param suffix: The suffix of this configuration in the parent - configuration. Should be specified whenever the parent is not None. - @raise ConfigError: If parent is specified but suffix is not. - @raise ConfigFormatError: If there are syntax errors in the stream. - """ - if parent is not None: - if suffix is None: - raise ConfigError("internal error: load called with parent but no suffix") - self.config.setPath(makePath(object.__getattribute__(parent, 'path'), suffix)) - self.setStream(stream) - self.token = self.getToken() - self.parseMappingBody(self.config) - if self.token[0] != EOF: - raise ConfigFormatError('%s: expecting EOF, found %r' % (self.location(), self.token[1]))
- -
[docs] def setStream(self, stream): - """ - Set the stream to the specified value, and prepare to read from it. - - @param stream: A stream from which to load the configuration. - @type stream: A stream (file-like object). - """ - self.stream = stream - if hasattr(stream, 'name'): - filename = stream.name - else: - filename = '?' - self.filename = filename - self.lineno = 1 - self.colno = 1
- -
[docs] def match(self, t): - """ - Ensure that the current token type matches the specified value, and - advance to the next token. - - @param t: The token type to match. - @type t: A valid token type. - @return: The token which was last read from the stream before this - function is called. - @rtype: a token tuple - see L{getToken}. - @raise ConfigFormatError: If the token does not match what's expected. - """ - if self.token[0] != t: - raise ConfigFormatError("%s: expecting %s, found %r" % (self.location(), t, self.token[1])) - rv = self.token - self.token = self.getToken() - return rv
- -
[docs] def parseMappingBody(self, parent): - """ - Parse the internals of a mapping, and add entries to the provided - L{Mapping}. - - @param parent: The mapping to add entries to. - @type parent: A L{Mapping} instance. - """ - while self.token[0] in [WORD, STRING]: - self.parseKeyValuePair(parent)
- -
[docs] def parseKeyValuePair(self, parent): - """ - Parse a key-value pair, and add it to the provided L{Mapping}. - - @param parent: The mapping to add entries to. - @type parent: A L{Mapping} instance. - @raise ConfigFormatError: if a syntax error is found. - """ - comment = self.comment - tt, tv = self.token - if tt == WORD: - key = tv - suffix = tv - elif tt == STRING: - key = eval(tv) - suffix = '[%s]' % tv - else: - msg = "%s: expecting word or string, found %r" - raise ConfigFormatError(msg % (self.location(), tv)) - self.token = self.getToken() - # for now, we allow key on its own as a short form of key : True - if self.token[0] == COLON: - self.token = self.getToken() - value = self.parseValue(parent, suffix) - else: - value = True - try: - parent.addMapping(key, value, comment) - except Exception as e: - raise ConfigFormatError("%s: %s, %r" % (self.location(), e, - self.token[1])) - tt = self.token[0] - if tt not in [EOF, WORD, STRING, RCURLY, COMMA]: - msg = "%s: expecting one of EOF, WORD, STRING, \ -RCURLY, COMMA, found %r" - raise ConfigFormatError(msg % (self.location(), self.token[1])) - if tt == COMMA: - self.token = self.getToken()
- -
[docs] def parseValue(self, parent, suffix): - """ - Parse a value. - - @param parent: The container to which the value will be added. - @type parent: A L{Container} instance. - @param suffix: The suffix for the value. - @type suffix: str - @return: The value - @rtype: any - @raise ConfigFormatError: if a syntax error is found. - """ - tt = self.token[0] - if tt in [STRING, WORD, NUMBER, LPAREN, DOLLAR, - TRUE, FALSE, NONE, BACKTICK, MINUS]: - rv = self.parseScalar() - elif tt == LBRACK: - rv = self.parseSequence(parent, suffix) - elif tt in [LCURLY, AT]: - rv = self.parseMapping(parent, suffix) - else: - raise ConfigFormatError("%s: unexpected input: %r" % - (self.location(), self.token[1])) - return rv
- -
[docs] def parseSequence(self, parent, suffix): - """ - Parse a sequence. - - @param parent: The container to which the sequence will be added. - @type parent: A L{Container} instance. - @param suffix: The suffix for the value. - @type suffix: str - @return: a L{Sequence} instance representing the sequence. - @rtype: L{Sequence} - @raise ConfigFormatError: if a syntax error is found. - """ - rv = Sequence(parent) - rv.setPath(makePath(object.__getattribute__(parent, 'path'), suffix)) - self.match(LBRACK) - comment = self.comment - tt = self.token[0] - while tt in [STRING, WORD, NUMBER, LCURLY, LBRACK, LPAREN, DOLLAR, - TRUE, FALSE, NONE, BACKTICK]: - suffix = '[%d]' % len(rv) - value = self.parseValue(parent, suffix) - rv.append(value, comment) - tt = self.token[0] - comment = self.comment - if tt == COMMA: - self.match(COMMA) - tt = self.token[0] - comment = self.comment - continue - self.match(RBRACK) - return rv
- -
[docs] def parseMapping(self, parent, suffix): - """ - Parse a mapping. - - @param parent: The container to which the mapping will be added. - @type parent: A L{Container} instance. - @param suffix: The suffix for the value. - @type suffix: str - @return: a L{Mapping} instance representing the mapping. - @rtype: L{Mapping} - @raise ConfigFormatError: if a syntax error is found. - """ - if self.token[0] == LCURLY: - self.match(LCURLY) - rv = Mapping(parent) - rv.setPath( - makePath(object.__getattribute__(parent, 'path'), suffix)) - self.parseMappingBody(rv) - self.match(RCURLY) - else: - self.match(AT) - _, fn = self.match(STRING) - rv = Config(eval(fn), parent) - return rv
- -
[docs] def parseScalar(self): - """ - Parse a scalar - a terminal value such as a string or number, or - an L{Expression} or L{Reference}. - - @return: the parsed scalar - @rtype: any scalar - @raise ConfigFormatError: if a syntax error is found. - """ - lhs = self.parseTerm() - tt = self.token[0] - while tt in [PLUS, MINUS]: - self.match(tt) - rhs = self.parseTerm() - lhs = Expression(tt, lhs, rhs) - tt = self.token[0] - return lhs
- -
[docs] def parseTerm(self): - """ - Parse a term in an additive expression (a + b, a - b) - - @return: the parsed term - @rtype: any scalar - @raise ConfigFormatError: if a syntax error is found. - """ - lhs = self.parseFactor() - tt = self.token[0] - while tt in [STAR, SLASH, MOD]: - self.match(tt) - rhs = self.parseFactor() - lhs = Expression(tt, lhs, rhs) - tt = self.token[0] - return lhs
- -
[docs] def parseFactor(self): - """ - Parse a factor in an multiplicative expression (a * b, a / b, a % b) - - @return: the parsed factor - @rtype: any scalar - @raise ConfigFormatError: if a syntax error is found. - """ - tt = self.token[0] - if tt in [NUMBER, WORD, STRING, TRUE, FALSE, NONE]: - rv = self.token[1] - if tt != WORD: - rv = eval(rv) - self.match(tt) - elif tt == LPAREN: - self.match(LPAREN) - rv = self.parseScalar() - self.match(RPAREN) - elif tt == DOLLAR: - self.match(DOLLAR) - rv = self.parseReference(DOLLAR) - elif tt == BACKTICK: - self.match(BACKTICK) - rv = self.parseReference(BACKTICK) - self.match(BACKTICK) - elif tt == MINUS: - self.match(MINUS) - rv = -self.parseScalar() - else: - raise ConfigFormatError("%s: unexpected input: %r" % - (self.location(), self.token[1])) - return rv
- -
[docs] def parseReference(self, type): - """ - Parse a reference. - - @return: the parsed reference - @rtype: L{Reference} - @raise ConfigFormatError: if a syntax error is found. - """ - word = self.match(WORD) - rv = Reference(self.config, type, word[1]) - while self.token[0] in [DOT, LBRACK2]: - self.parseSuffix(rv) - return rv
- -
[docs] def parseSuffix(self, ref): - """ - Parse a reference suffix. - - @param ref: The reference of which this suffix is a part. - @type ref: L{Reference}. - @raise ConfigFormatError: if a syntax error is found. - """ - tt = self.token[0] - if tt == DOT: - self.match(DOT) - word = self.match(WORD) - ref.addElement(DOT, word[1]) - else: - self.match(LBRACK2) - tt, tv = self.token - if tt not in [NUMBER, STRING]: - raise ConfigFormatError("%s: expected number or string, found %r" % (self.location(), tv)) - self.token = self.getToken() - tv = eval(tv) - self.match(RBRACK) - ref.addElement(LBRACK, tv)
- -
[docs]def defaultMergeResolve(map1, map2, key): - """\ - A default resolver for merge conflicts. - Returns a string indicating what action to take to resolve the conflict. - - @param map1: The map being merged into. - @type map1: L{Mapping}. - @param map2: The map being used as the merge operand. - @type map2: L{Mapping}. - @param key: The key in map2 (which also exists in map1). - @type key: str - - @return: One of "merge", "append", "mismatch" or "overwrite" - indicating what action should be taken. This should - be appropriate to the objects being merged - e.g. - there is no point returning "merge" if the two objects - are instances of L{Sequence}. - - @rtype: str - """ - obj1 = map1[key] - obj2 = map2[key] - if isinstance(obj1, Mapping) and isinstance(obj2, Mapping): - rv = "merge" - elif isinstance(obj1, Sequence) and isinstance(obj2, Sequence): - rv = "append" - else: - rv = "mismatch" - return rv
- -
[docs]def overwriteMergeResolve(map1, map2, key): - """ - An overwriting resolver for merge conflicts. Calls L{defaultMergeResolve}, - but where a "mismatch" is detected, returns "overwrite" instead. - - @param map1: The map being merged into. - @type map1: L{Mapping}. - @param map2: The map being used as the merge operand. - @type map2: L{Mapping}. - @param key: The key in map2 (which also exists in map1). - @type key: str - """ - rv = defaultMergeResolve(map1, map2, key) - if rv == "mismatch": - rv = "overwrite" - return rv
- -
[docs]def deepCopyMapping(inMapping): - res = Mapping() - for element in inMapping: - res[element] = inMapping[element] - return res
- -
[docs]class ConfigMerger(object): - """ - This class is used for merging two configurations. If a key exists in the - merge operand but not the merge target, then the entry is copied from the - merge operand to the merge target. If a key exists in both configurations, - then a resolver (a callable) is called to decide how to handle the - conflict. - """ - - def __init__(self, resolver=defaultMergeResolve): - """ - Initialise an instance. - - @param resolver: - @type resolver: A callable which takes the argument list - (map1, map2, key) where map1 is the mapping being merged into, - map2 is the merge operand and key is the clashing key. The callable - should return a string indicating how the conflict should be resolved. - For possible return values, see L{defaultMergeResolve}. The default - value preserves the old behaviour - """ - self.resolver = resolver - -
[docs] def merge(self, merged, mergee): - """ - Merge two configurations. The second configuration is unchanged, - and the first is changed to reflect the results of the merge. - - @param merged: The configuration to merge into. - @type merged: L{Config}. - @param mergee: The configuration to merge. - @type mergee: L{Config}. - """ - self.mergeMapping(merged, mergee)
- -
[docs] def overwriteKeys(self, map1, seq2): - """ - Renint variables. The second mapping is unchanged, - and the first is changed depending the keys of the second mapping. - @param map1: The mapping to reinit keys into. - @type map1: L{Mapping}. - @param map2: The mapping container reinit information. - @type map2: L{Mapping}. - """ - - overwrite_list = object.__getattribute__(seq2, 'data') - for overwrite_instruction in overwrite_list: - object.__setattr__(overwrite_instruction, 'parent', map1) - if "__condition__" in overwrite_instruction.keys(): - overwrite_condition = overwrite_instruction["__condition__"] - if eval(overwrite_condition, globals(), map1): - for key in overwrite_instruction.keys(): - if key == "__condition__": - continue - try: - exec( 'map1.' + key + " = " + repr(overwrite_instruction[key])) - except: - exec('map1.' + key + " = " + str(overwrite_instruction[key])) - else: - for key in overwrite_instruction.keys(): - try: - exec('map1.' + key + " = " + repr(overwrite_instruction[key])) - except: - exec('map1.' + key + " = " + str(overwrite_instruction[key]))
- -
[docs] def mergeMapping(self, map1, map2): - """ - Merge two mappings recursively. The second mapping is unchanged, - and the first is changed to reflect the results of the merge. - - @param map1: The mapping to merge into. - @type map1: L{Mapping}. - @param map2: The mapping to merge. - @type map2: L{Mapping}. - """ - keys = map1.keys() - global __resolveOverwrite__ - for key in map2.keys(): - if __resolveOverwrite__ and key == "__overwrite__": - self.overwriteKeys(map1,map2[key]) - - elif key not in keys: - map1[key] = map2[key] - if isinstance(map1[key], Container) : - object.__setattr__(map1[key], 'parent', map1) - else: - obj1 = map1[key] - obj2 = map2[key] - decision = self.resolver(map1, map2, key) - if decision == "merge": - self.mergeMapping(obj1, obj2) - elif decision == "append": - self.mergeSequence(obj1, obj2) - elif decision == "overwrite": - map1[key] = obj2 - if isinstance(map1[key], Container): - object.__setattr__(map1[key], 'parent', map1) - elif decision == "mismatch": - self.handleMismatch(obj1, obj2) - else: - msg = "unable to merge: don't know how to implement %r" - raise ValueError(msg % decision)
- -
[docs] def mergeSequence(self, seq1, seq2): - """ - Merge two sequences. The second sequence is unchanged, - and the first is changed to have the elements of the second - appended to it. - - @param seq1: The sequence to merge into. - @type seq1: L{Sequence}. - @param seq2: The sequence to merge. - @type seq2: L{Sequence}. - """ - data1 = object.__getattribute__(seq1, 'data') - data2 = object.__getattribute__(seq2, 'data') - for obj in data2: - data1.append(obj) - comment1 = object.__getattribute__(seq1, 'comments') - comment2 = object.__getattribute__(seq2, 'comments') - for obj in comment2: - comment1.append(obj)
- -
[docs] def handleMismatch(self, obj1, obj2): - """ - Handle a mismatch between two objects. - - @param obj1: The object to merge into. - @type obj1: any - @param obj2: The object to merge. - @type obj2: any - """ - raise ConfigError("unable to merge %r with %r" % (obj1, obj2))
- -
[docs]class ConfigList(list): - """ - This class implements an ordered list of configurations and allows you - to try getting the configuration from each entry in turn, returning - the first successfully obtained value. - """ - -
[docs] def getByPath(self, path): - """ - Obtain a value from the first configuration in the list which defines - it. - - @param path: The path of the value to retrieve. - @type path: str - @return: The value from the earliest configuration in the list which - defines it. - @rtype: any - @raise ConfigError: If no configuration in the list has an entry with - the specified path. - """ - found = False - rv = None - for entry in self: - try: - rv = entry.getByPath(path) - found = True - break - except ConfigError: - pass - if not found: - raise ConfigError("unable to resolve %r" % path) - return rv
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/system.html b/doc/build/html/_modules/src/system.html deleted file mode 100644 index 01efe76..0000000 --- a/doc/build/html/_modules/src/system.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - src.system — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.system

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-'''
-In this file : all functions that do a system call, 
-like open a browser or an editor, or call a git command
-'''
-
-import subprocess
-import os
-import tarfile
-
-from . import printcolors
-
-
[docs]def show_in_editor(editor, filePath, logger): - '''open filePath using editor. - - :param editor str: The editor to use. - :param filePath str: The path to the file to open. - ''' - # default editor is vi - if editor is None or len(editor) == 0: - editor = 'vi' - - if '%s' not in editor: - editor += ' %s' - - try: - # launch cmd using subprocess.Popen - cmd = editor % filePath - logger.write('Launched command:\n' + cmd + '\n', 5) - p = subprocess.Popen(cmd, shell=True) - p.communicate() - except: - logger.write(printcolors.printcError(_("Unable to edit file %s\n") - % filePath), 1)
- - -
[docs]def git_extract(from_what, tag, where, logger, environment=None): - '''Extracts sources from a git repository. - - :param from_what str: The remote git repository. - :param tag str: The tag. - :param where str: The path where to extract. - :param logger Logger: The logger instance to use. - :param environment src.environment.Environ: The environment to source when - extracting. - :return: True if the extraction is successful - :rtype: boolean - ''' - if not where.exists(): - where.make() - if tag == "master" or tag == "HEAD": - command = "git clone %(remote)s %(where)s" % \ - { 'remote': from_what, 'tag': tag, 'where': str(where) } - else: - # NOTICE: this command only works with recent version of git - # because --work-tree does not work with an absolute path - where_git = os.path.join( str(where), ".git" ) - command = "rmdir %(where)s && git clone %(remote)s %(where)s && " + \ - "git --git-dir=%(where_git)s --work-tree=%(where)s checkout %(tag)s" - command = command % {'remote': from_what, - 'tag': tag, - 'where': str(where), - 'where_git': where_git } - - logger.write(command + "\n", 5) - - logger.logTxtFile.write("\n" + command + "\n") - logger.logTxtFile.flush() - res = subprocess.call(command, - cwd=str(where.dir()), - env=environment.environ.environ, - shell=True, - stdout=logger.logTxtFile, - stderr=subprocess.STDOUT) - return (res == 0)
- -
[docs]def archive_extract(from_what, where, logger): - '''Extracts sources from an archive. - - :param from_what str: The path to the archive. - :param where str: The path where to extract. - :param logger Logger: The logger instance to use. - :return: True if the extraction is successful - :rtype: boolean - ''' - try: - archive = tarfile.open(from_what) - for i in archive.getmembers(): - archive.extract(i, path=str(where)) - return True, os.path.commonprefix(archive.getnames()) - except Exception as exc: - logger.write("archive_extract: %s\n" % exc) - return False, None
- -
[docs]def cvs_extract(protocol, user, server, base, tag, product, where, - logger, checkout=False, environment=None): - '''Extracts sources from a cvs repository. - - :param protocol str: The cvs protocol. - :param user str: The user to be used. - :param server str: The remote cvs server. - :param base str: . - :param tag str: The tag. - :param product str: The product. - :param where str: The path where to extract. - :param logger Logger: The logger instance to use. - :param checkout boolean: If true use checkout cvs. - :param environment src.environment.Environ: The environment to source when - extracting. - :return: True if the extraction is successful - :rtype: boolean - ''' - - opttag = '' - if tag is not None and len(tag) > 0: - opttag = '-r ' + tag - - cmd = 'export' - if checkout: - cmd = 'checkout' - elif len(opttag) == 0: - opttag = '-DNOW' - - if len(protocol) > 0: - root = "%s@%s:%s" % (user, server, base) - command = "cvs -d :%(protocol)s:%(root)s %(command)s -d %(where)s %(tag)s %(product)s" % \ - { 'protocol': protocol, 'root': root, 'where': str(where.base()), - 'tag': opttag, 'product': product, 'command': cmd } - else: - command = "cvs -d %(root)s %(command)s -d %(where)s %(tag)s %(base)s/%(product)s" % \ - { 'root': server, 'base': base, 'where': str(where.base()), - 'tag': opttag, 'product': product, 'command': cmd } - - logger.write(command + "\n", 5) - - if not where.dir().exists(): - where.dir().make() - - logger.logTxtFile.write("\n" + command + "\n") - logger.logTxtFile.flush() - res = subprocess.call(command, - cwd=str(where.dir()), - env=environment.environ.environ, - shell=True, - stdout=logger.logTxtFile, - stderr=subprocess.STDOUT) - return (res == 0)
- -
[docs]def svn_extract(user, - from_what, - tag, - where, - logger, - checkout=False, - environment=None): - '''Extracts sources from a svn repository. - - :param user str: The user to be used. - :param from_what str: The remote git repository. - :param tag str: The tag. - :param where str: The path where to extract. - :param logger Logger: The logger instance to use. - :param checkout boolean: If true use checkout svn. - :param environment src.environment.Environ: The environment to source when - extracting. - :return: True if the extraction is successful - :rtype: boolean - ''' - if not where.exists(): - where.make() - - if checkout: - command = "svn checkout --username %(user)s %(remote)s %(where)s" % \ - { 'remote': from_what, 'user' : user, 'where': str(where) } - else: - command = "" - if os.path.exists(str(where)): - command = "/bin/rm -rf %(where)s && " % \ - { 'remote': from_what, 'where': str(where) } - - if tag == "master": - command += "svn export --username %(user)s %(remote)s %(where)s" % \ - { 'remote': from_what, 'user' : user, 'where': str(where) } - else: - command += "svn export -r %(tag)s --username %(user)s %(remote)s %(where)s" % \ - { 'tag' : tag, 'remote': from_what, 'user' : user, 'where': str(where) } - - logger.logTxtFile.write(command + "\n") - - logger.write(command + "\n", 5) - logger.logTxtFile.write("\n" + command + "\n") - logger.logTxtFile.flush() - res = subprocess.call(command, - cwd=str(where.dir()), - env=environment.environ.environ, - shell=True, - stdout=logger.logTxtFile, - stderr=subprocess.STDOUT) - return (res == 0)
-
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/template.html b/doc/build/html/_modules/src/template.html deleted file mode 100644 index f91707a..0000000 --- a/doc/build/html/_modules/src/template.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - src.template — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.template

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import string
-
-
[docs]class MyTemplate(string.Template): - delimiter = '¤'
- -
[docs]def substitute(template_file, subst_dic): - template = open(template_file, 'r') - template = MyTemplate(template.read()) - - return template.safe_substitute(subst_dic)
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/test_module.html b/doc/build/html/_modules/src/test_module.html deleted file mode 100644 index 3bb277e..0000000 --- a/doc/build/html/_modules/src/test_module.html +++ /dev/null @@ -1,984 +0,0 @@ - - - - - - - - src.test_module — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.test_module

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-# Python 2/3 compatibility for execfile function
-try:
-    execfile
-except:
-    def execfile(somefile, global_vars, local_vars):
-        with open(somefile) as f:
-            code = compile(f.read(), somefile, 'exec')
-            exec(code, global_vars, local_vars)
-
-
-import os
-import sys
-import datetime
-import shutil
-import string
-import imp
-import subprocess
-
-from . import fork
-import src
-
-# directories not considered as test grids
-C_IGNORE_GRIDS = ['.git', '.svn', 'RESSOURCES']
-
-DEFAULT_TIMEOUT = 150
-
-# Get directory to be used for the temporary files.
-#
-
[docs]def getTmpDirDEFAULT(): - if src.architecture.is_windows(): - directory = os.getenv("TEMP") - else: - # for Linux: use /tmp/logs/{user} folder - directory = os.path.join( '/tmp', 'logs', os.getenv("USER", "unknown")) - return directory
- -
[docs]class Test: - def __init__(self, - config, - logger, - tmp_working_dir, - testbase="", - grids=None, - sessions=None, - launcher="", - show_desktop=True): - self.grids = grids - self.config = config - self.logger = logger - self.tmp_working_dir = tmp_working_dir - self.sessions = sessions - self.launcher = launcher - self.show_desktop = show_desktop - - res = self.prepare_testbase(testbase) - self.test_base_found = True - if res == 1: - # Fail - self.test_base_found = False - - self.settings = {} - self.known_errors = None - - # create section for results - self.config.TESTS = src.pyconf.Sequence(self.config) - - self.nb_run = 0 - self.nb_succeed = 0 - self.nb_timeout = 0 - self.nb_not_run = 0 - self.nb_acknoledge = 0 - - def _copy_dir(self, source, target): - if self.config.VARS.python >= "2.6": - shutil.copytree(source, target, - symlinks=True, - ignore=shutil.ignore_patterns('.git*','.svn*')) - else: - shutil.copytree(source, target, - symlinks=True) - -
[docs] def prepare_testbase_from_dir(self, testbase_name, testbase_dir): - self.logger.write(_("get test base from dir: %s\n") % \ - src.printcolors.printcLabel(testbase_dir), 3) - if not os.access(testbase_dir, os.X_OK): - raise src.SatException(_("testbase %(name)s (%(dir)s) does not " - "exist ...\n") % { 'name': testbase_name, - 'dir': testbase_dir }) - - self._copy_dir(testbase_dir, - os.path.join(self.tmp_working_dir, 'BASES', testbase_name))
- -
[docs] def prepare_testbase_from_git(self, - testbase_name, - testbase_base, - testbase_tag): - self.logger.write( - _("get test base '%(testbase)s' with '%(tag)s' tag from git\n") % { - "testbase" : src.printcolors.printcLabel(testbase_name), - "tag" : src.printcolors.printcLabel(testbase_tag)}, - 3) - try: - def set_signal(): # pragma: no cover - """see http://bugs.python.org/issue1652""" - import signal - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - - cmd = "git clone --depth 1 %(base)s %(dir)s" - cmd += " && cd %(dir)s" - if testbase_tag=='master': - cmd += " && git fetch origin %(branch)s" - else: - cmd += " && git fetch origin %(branch)s:%(branch)s" - cmd += " && git checkout %(branch)s" - cmd = cmd % { 'branch': testbase_tag, - 'base': testbase_base, - 'dir': testbase_name } - - self.logger.write("> %s\n" % cmd, 5) - if src.architecture.is_windows(): - # preexec_fn not supported on windows platform - res = subprocess.call(cmd, - cwd=os.path.join(self.tmp_working_dir, 'BASES'), - shell=True, - stdout=self.logger.logTxtFile, - stderr=subprocess.PIPE) - else: - res = subprocess.call(cmd, - cwd=os.path.join(self.tmp_working_dir, 'BASES'), - shell=True, - preexec_fn=set_signal, - stdout=self.logger.logTxtFile, - stderr=subprocess.PIPE) - if res != 0: - raise src.SatException(_("Error: unable to get test base " - "'%(name)s' from git '%(repo)s'.") % \ - { 'name': testbase_name, - 'repo': testbase_base }) - - except OSError: - self.logger.error(_("git is not installed. exiting...\n")) - sys.exit(0)
- -
[docs] def prepare_testbase_from_svn(self, user, testbase_name, testbase_base): - self.logger.write(_("get test base '%s' from svn\n") % \ - src.printcolors.printcLabel(testbase_name), 3) - try: - def set_signal(): # pragma: no cover - """see http://bugs.python.org/issue1652""" - import signal - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - - cmd = "svn checkout --username %(user)s %(base)s %(dir)s" - cmd = cmd % { 'user': user, - 'base': testbase_base, - 'dir': testbase_name } - - # Get the application environment - self.logger.write(_("Set the application environment\n"), 5) - env_appli = src.environment.SalomeEnviron(self.config, - src.environment.Environ(dict(os.environ))) - env_appli.set_application_env(self.logger) - - self.logger.write("> %s\n" % cmd, 5) - if src.architecture.is_windows(): - # preexec_fn not supported on windows platform - res = subprocess.call(cmd, - cwd=os.path.join(self.tmp_working_dir, 'BASES'), - shell=True, - stdout=self.logger.logTxtFile, - stderr=subprocess.PIPE) - else: - res = subprocess.call(cmd, - cwd=os.path.join(self.tmp_working_dir, 'BASES'), - shell=True, - preexec_fn=set_signal, - stdout=self.logger.logTxtFile, - stderr=subprocess.PIPE, - env=env_appli.environ.environ,) - - if res != 0: - raise src.SatException(_("Error: unable to get test base '%(nam" - "e)s' from svn '%(repo)s'.") % \ - { 'name': testbase_name, - 'repo': testbase_base }) - - except OSError: - self.logger.error(_("svn is not installed. exiting...\n")) - sys.exit(0)
- - ## - # Configure tests base. -
[docs] def prepare_testbase(self, test_base_name): - src.printcolors.print_value(self.logger, - _("Test base"), - test_base_name, - 3) - self.logger.write("\n", 3, False) - - # search for the test base - test_base_info = None - for project_name in self.config.PROJECTS.projects: - project_info = self.config.PROJECTS.projects[project_name] - if "test_bases" not in project_info: - continue - for t_b_info in project_info.test_bases: - if t_b_info.name == test_base_name: - test_base_info = t_b_info - - if not test_base_info: - if os.path.exists(test_base_name): - self.prepare_testbase_from_dir("DIR", test_base_name) - self.currentTestBase = "DIR" - return 0 - - if not test_base_info: - message = (_("########## ERROR: test base '%s' not found\n") % - test_base_name) - self.logger.write("%s\n" % src.printcolors.printcError(message)) - return 1 - - if test_base_info.get_sources == "dir": - self.prepare_testbase_from_dir(test_base_name, - test_base_info.info.dir) - elif test_base_info.get_sources == "git": - self.prepare_testbase_from_git(test_base_name, - test_base_info.info.base, - self.config.APPLICATION.test_base.tag) - elif test_base_info.get_sources == "svn": - svn_user = src.get_cfg_param(test_base_info.info, - "svn_user", - self.config.USER.svn_user) - self.prepare_testbase_from_svn(svn_user, - test_base_name, - test_base_info.info.base) - else: - raise src.SatException(_("unknown source type '%(type)s' for test b" - "ase '%(base)s' ...\n") % { - 'type': test_base_info.get_sources, - 'base': test_base_name }) - - self.currentTestBase = test_base_name
- - ## - # Searches if the script is declared in known errors pyconf. - # Update the status if needed. -
[docs] def search_known_errors(self, status, test_grid, test_session, test): - test_path = os.path.join(test_grid, test_session, test) - if not src.config_has_application(self.config): - return status, [] - - if self.known_errors is None: - return status, [] - - platform = self.config.VARS.arch - application = self.config.VARS.application - error = self.known_errors.get_error(test_path, application, platform) - if error is None: - return status, [] - - if status == src.OK_STATUS: - if not error.fixed: - # the error is fixed - self.known_errors.fix_error(error) - #import testerror - #testerror.write_test_failures( - # self.config.TOOLS.testerror.file_path, - # self.known_errors.errors) - return status, [ error.date, - error.expected, - error.comment, - error.fixed ] - - if error.fixed: - self.known_errors.unfix_error(error) - #import testerror - #testerror.write_test_failures(self.config.TOOLS.testerror.file_path, - # self.known_errors.errors) - - delta = self.known_errors.get_expecting_days(error) - kfres = [ error.date, error.expected, error.comment, error.fixed ] - if delta < 0: - return src.KO_STATUS, kfres - return src.KNOWNFAILURE_STATUS, kfres
- - ## - # Read the *.result.py files. -
[docs] def read_results(self, listTest, has_timed_out): - results = {} - for test in listTest: - resfile = os.path.join(self.currentDir, - self.currentgrid, - self.currentsession, - test[:-3] + ".result.py") - - # check if <test>.result.py file exists - if not os.path.exists(resfile): - results[test] = ["?", -1, "", []] - else: - gdic, ldic = {}, {} - execfile(resfile, gdic, ldic) - - status = src.TIMEOUT_STATUS - if not has_timed_out: - status = src.KO_STATUS - - if ldic.has_key('status'): - status = ldic['status'] - - expected = [] - if status == src.KO_STATUS or status == src.OK_STATUS: - status, expected = self.search_known_errors(status, - self.currentgrid, - self.currentsession, - test) - - callback = "" - if ldic.has_key('callback'): - callback = ldic['callback'] - elif status == src.KO_STATUS: - callback = "CRASH" - - exec_time = -1 - if ldic.has_key('time'): - try: - exec_time = float(ldic['time']) - except: - pass - - results[test] = [status, exec_time, callback, expected] - - # check if <test>.py file exists - testfile = os.path.join(self.currentDir, - self.currentgrid, - self.currentsession, - test) - - if not os.path.exists(testfile): - results[test].append('') - else: - text = open(testfile, "r").read() - results[test].append(text) - - # check if <test>.out.py file exists - outfile = os.path.join(self.currentDir, - self.currentgrid, - self.currentsession, - test[:-3] + ".out.py") - - if not os.path.exists(outfile): - results[test].append('') - else: - text = open(outfile, "r").read() - results[test].append(text) - - return results
- - ## - # Generates the script to be run by Salome. - # This python script includes init and close statements and a loop - # calling all the scripts of a single directory. -
[docs] def generate_script(self, listTest, script_path, ignoreList): - # open template file - template_file = open(os.path.join(self.config.VARS.srcDir, - "test", - "scriptTemplate.py"), 'r') - template = string.Template(template_file.read()) - - # create substitution dictionary - d = dict() - d['resourcesWay'] = os.path.join(self.currentDir, 'RESSOURCES') - d['tmpDir'] = os.path.join(self.tmp_working_dir, 'WORK') - d['toolsWay'] = os.path.join(self.config.VARS.srcDir, "test") - d['sessionDir'] = os.path.join(self.currentDir, - self.currentgrid, - self.currentsession) - d['resultFile'] = os.path.join(self.tmp_working_dir, - 'WORK', - 'exec_result') - d['listTest'] = listTest - d['sessionName'] = self.currentsession - d['ignore'] = ignoreList - - # create script with template - script = open(script_path, 'w') - script.write(template.safe_substitute(d)) - script.close()
- - # Find the getTmpDir function that gives access to *pidict file directory. - # (the *pidict file exists when SALOME is launched) -
[docs] def get_tmp_dir(self): - # Rare case where there is no KERNEL in grid list - # (for example MED_STANDALONE) - if ('APPLICATION' in self.config - and 'KERNEL' not in self.config.APPLICATION.products - and 'KERNEL_ROOT_DIR' not in os.environ): - return getTmpDirDEFAULT - - # Case where "sat test" is launched in an existing SALOME environment - if 'KERNEL_ROOT_DIR' in os.environ: - root_dir = os.environ['KERNEL_ROOT_DIR'] - - if ('APPLICATION' in self.config - and 'KERNEL' in self.config.APPLICATION.products): - root_dir = src.product.get_product_config(self.config, - "KERNEL").install_dir - - # Case where there the appli option is called (with path to launcher) - if len(self.launcher) > 0: - # There are two cases : The old application (runAppli) - # and the new one - launcherName = os.path.basename(self.launcher) - launcherDir = os.path.dirname(self.launcher) - if launcherName == 'runAppli': - # Old application - cmd = ("for i in " + launcherDir + "/env.d/*.sh; do source ${i};" - " done ; echo $KERNEL_ROOT_DIR") - else: - # New application - cmd = ("echo -e 'import os\nprint os.environ[\"KERNEL_" + - "ROOT_DIR\"]' > tmpscript.py; %s shell" + - " tmpscript.py") % self.launcher - - # OP 14/11/2017 Ajout de traces pour essayer de decouvrir le pb - # de remontee de log des tests - #root_dir = subprocess.Popen(cmd, - # stdout=subprocess.PIPE, - # shell=True, - # executable='/bin/bash').communicate()[0].split()[-1] - subproc_res = subprocess.Popen(cmd, - stdout=subprocess.PIPE, - shell=True, - executable='/bin/bash').communicate() - #print "TRACES OP - test_module.py/Test.get_tmp_dir() subproc_res = " - for resLine in subproc_res: - print "- '#%s#'" %resLine - - root_dir = subproc_res[0].split()[-1] - - # OP 14/11/2017 Ajout de traces pour essayer de decouvrir le pb - # de remontee de log des tests - #print "TRACES OP - test_module.py/Test.get_tmp_dir() root_dir = '#%s#'" %root_dir - - # import grid salome_utils from KERNEL that gives - # the right getTmpDir function - (file_, pathname, description) = imp.find_module("salome_utils", - [os.path.join(root_dir, - 'bin', - 'salome')]) - try: - grid = imp.load_module("salome_utils", - file_, - pathname, - description) - return grid.getLogDir - except: - grid = imp.load_module("salome_utils", - file_, - pathname, - description) - return grid.getTmpDir - finally: - if file_: - file_.close()
- - -
[docs] def get_test_timeout(self, test_name, default_value): - if ("timeout" in self.settings and - test_name in self.settings["timeout"]): - return self.settings["timeout"][test_name] - - return default_value
- -
[docs] def generate_launching_commands(self): - # Case where "sat test" is launched in an existing SALOME environment - if 'KERNEL_ROOT_DIR' in os.environ: - binSalome = "runSalome" - binPython = "python" - killSalome = "killSalome.py" - - # Rare case where there is no KERNEL in grid list - # (for example MED_STANDALONE) - if ('APPLICATION' in self.config and - 'KERNEL' not in self.config.APPLICATION.products): - binSalome = "runSalome" - binPython = "python" - killSalome = "killSalome.py" - src.environment.load_environment(self.config, False, self.logger) - return binSalome, binPython, killSalome - - # Case where there the appli option is called (with path to launcher) - if len(self.launcher) > 0: - # There are two cases : The old application (runAppli) - # and the new one - launcherName = os.path.basename(self.launcher) - launcherDir = os.path.dirname(self.launcher) - if launcherName == 'runAppli': - # Old application - binSalome = self.launcher - binPython = ("for i in " + - launcherDir + - "/env.d/*.sh; do source ${i}; done ; python") - killSalome = ("for i in " + - launcherDir + - "/env.d/*.sh; do source ${i}; done ; killSalome.py'") - return binSalome, binPython, killSalome - else: - # New application - binSalome = self.launcher - binPython = self.launcher + ' shell' - killSalome = self.launcher + ' killall' - return binSalome, binPython, killSalome - - # SALOME version detection and APPLI repository detection - VersionSalome = src.get_salome_version(self.config) - appdir = 'APPLI' - if "APPLI" in self.config and "application_name" in self.config.APPLI: - appdir = self.config.APPLI.application_name - - # Case where SALOME has NOT the launcher that uses the SalomeContext API - if VersionSalome < 730: - binSalome = os.path.join(self.config.APPLICATION.workdir, - appdir, - "runAppli") - binPython = "python" - killSalome = "killSalome.py" - src.environment.load_environment(self.config, False, self.logger) - return binSalome, binPython, killSalome - - # Case where SALOME has the launcher that uses the SalomeContext API - else: - launcher_name = src.get_launcher_name(self.config) - binSalome = os.path.join(self.config.APPLICATION.workdir, - launcher_name) - - binPython = binSalome + ' shell' - killSalome = binSalome + ' killall' - return binSalome, binPython, killSalome - - return binSalome, binPython, killSalome
- - - ## - # Runs tests of a session (using a single instance of Salome). -
[docs] def run_tests(self, listTest, ignoreList): - out_path = os.path.join(self.currentDir, - self.currentgrid, - self.currentsession) - sessionname = "%s/%s" % (self.currentgrid, self.currentsession) - time_out = self.get_test_timeout(sessionname, - DEFAULT_TIMEOUT) - - time_out_salome = DEFAULT_TIMEOUT - - # generate wrapper script - script_path = os.path.join(out_path, 'wrapperScript.py') - self.generate_script(listTest, script_path, ignoreList) - - tmpDir = self.get_tmp_dir() - - binSalome, binPython, killSalome = self.generate_launching_commands() - if self.settings.has_key("run_with_grids") \ - and self.settings["run_with_grids"].has_key(sessionname): - binSalome = (binSalome + - " -m %s" % self.settings["run_with_grids"][sessionname]) - - logWay = os.path.join(self.tmp_working_dir, "WORK", "log_cxx") - - status = False - elapsed = -1 - if self.currentsession.startswith("NOGUI_"): - # runSalome -t (bash) - status, elapsed = fork.batch(binSalome, self.logger, - os.path.join(self.tmp_working_dir, - "WORK"), - [ "-t", - "--shutdown-server=1", - script_path ], - delai=time_out, - log=logWay) - - elif self.currentsession.startswith("PY_"): - # python script.py - status, elapsed = fork.batch(binPython, self.logger, - os.path.join(self.tmp_working_dir, - "WORK"), - [script_path], - delai=time_out, log=logWay) - - else: - opt = "-z 0" - if self.show_desktop: opt = "--show-desktop=0" - status, elapsed = fork.batch_salome(binSalome, - self.logger, - os.path.join( - self.tmp_working_dir, - "WORK"), - [ opt, - "--shutdown-server=1", - script_path ], - getTmpDir=tmpDir, - fin=killSalome, - delai=time_out, - log=logWay, - delaiapp=time_out_salome) - - self.logger.write("status = %s, elapsed = %s\n" % (status, elapsed), - 5) - - # create the test result to add in the config object - test_info = src.pyconf.Mapping(self.config) - test_info.testbase = self.currentTestBase - test_info.grid = self.currentgrid - test_info.session = self.currentsession - test_info.script = src.pyconf.Sequence(self.config) - - script_results = self.read_results(listTest, elapsed == time_out) - for sr in sorted(script_results.keys()): - self.nb_run += 1 - - # create script result - script_info = src.pyconf.Mapping(self.config) - script_info.name = sr - script_info.res = script_results[sr][0] - script_info.time = script_results[sr][1] - if script_info.res == src.TIMEOUT_STATUS: - script_info.time = time_out - if script_info.time < 1e-3: script_info.time = 0 - - callback = script_results[sr][2] - if script_info.res != src.OK_STATUS and len(callback) > 0: - script_info.callback = callback - - kfres = script_results[sr][3] - if len(kfres) > 0: - script_info.known_error = src.pyconf.Mapping(self.config) - script_info.known_error.date = kfres[0] - script_info.known_error.expected = kfres[1] - script_info.known_error.comment = kfres[2] - script_info.known_error.fixed = kfres[3] - - script_info.content = script_results[sr][4] - script_info.out = script_results[sr][5] - - # add it to the list of results - test_info.script.append(script_info, '') - - # display the results - if script_info.time > 0: - exectime = "(%7.3f s)" % script_info.time - else: - exectime = "" - - sp = "." * (35 - len(script_info.name)) - self.logger.write(self.write_test_margin(3), 3) - self.logger.write("script %s %s %s %s\n" % ( - src.printcolors.printcLabel(script_info.name), - sp, - src.printcolors.printc(script_info.res), - exectime), 3, False) - if script_info and len(callback) > 0: - self.logger.write("Exception in %s\n%s\n" % \ - (script_info.name, - src.printcolors.printcWarning(callback)), 2, False) - - if script_info.res == src.OK_STATUS: - self.nb_succeed += 1 - elif script_info.res == src.KNOWNFAILURE_STATUS: - self.nb_acknoledge += 1 - elif script_info.res == src.TIMEOUT_STATUS: - self.nb_timeout += 1 - elif script_info.res == src.NA_STATUS: - self.nb_run -= 1 - elif script_info.res == "?": - self.nb_not_run += 1 - - self.config.TESTS.append(test_info, '')
- - ## - # Runs all tests of a session. -
[docs] def run_session_tests(self): - - self.logger.write(self.write_test_margin(2), 3) - self.logger.write("Session = %s\n" % src.printcolors.printcLabel( - self.currentsession), 3, False) - - # prepare list of tests to run - tests = os.listdir(os.path.join(self.currentDir, - self.currentgrid, - self.currentsession)) - tests = filter(lambda l: l.endswith(".py"), tests) - tests = sorted(tests, key=str.lower) - - # build list of known failures - cat = "%s/%s/" % (self.currentgrid, self.currentsession) - ignoreDict = {} - for k in self.ignore_tests.keys(): - if k.startswith(cat): - ignoreDict[k[len(cat):]] = self.ignore_tests[k] - - self.run_tests(tests, ignoreDict)
- - ## - # Runs all tests of a grid. -
[docs] def run_grid_tests(self): - self.logger.write(self.write_test_margin(1), 3) - self.logger.write("grid = %s\n" % src.printcolors.printcLabel( - self.currentgrid), 3, False) - - grid_path = os.path.join(self.currentDir, self.currentgrid) - - sessions = [] - if self.sessions is not None: - sessions = self.sessions # user choice - else: - # use all scripts in grid - sessions = filter(lambda l: l not in C_IGNORE_GRIDS, - os.listdir(grid_path)) - sessions = filter(lambda l: os.path.isdir(os.path.join(grid_path, - l)), sessions) - - sessions = sorted(sessions, key=str.lower) - for session_ in sessions: - if not os.path.exists(os.path.join(grid_path, session_)): - self.logger.write(self.write_test_margin(2), 3) - self.logger.write(src.printcolors.printcWarning("Session %s not" - " found" % session_) + "\n", 3, False) - else: - self.currentsession = session_ - self.run_session_tests()
- - ## - # Runs test testbase. -
[docs] def run_testbase_tests(self): - res_dir = os.path.join(self.currentDir, "RESSOURCES") - os.environ['PYTHONPATH'] = (res_dir + - os.pathsep + - os.environ['PYTHONPATH']) - os.environ['TT_BASE_RESSOURCES'] = res_dir - src.printcolors.print_value(self.logger, - "TT_BASE_RESSOURCES", - res_dir, - 4) - self.logger.write("\n", 4, False) - - self.logger.write(self.write_test_margin(0), 3) - testbase_label = "Test base = %s\n" % src.printcolors.printcLabel( - self.currentTestBase) - self.logger.write(testbase_label, 3, False) - self.logger.write("-" * len(src.printcolors.cleancolor(testbase_label)), - 3) - self.logger.write("\n", 3, False) - - # load settings - settings_file = os.path.join(res_dir, "test_settings.py") - if os.path.exists(settings_file): - gdic, ldic = {}, {} - execfile(settings_file, gdic, ldic) - self.logger.write(_("Load test settings\n"), 3) - self.settings = ldic['settings_dic'] - self.ignore_tests = ldic['known_failures_list'] - if isinstance(self.ignore_tests, list): - self.ignore_tests = {} - self.logger.write(src.printcolors.printcWarning("known_failur" - "es_list must be a dictionary (not a list)") + "\n", 1, False) - else: - self.ignore_tests = {} - self.settings.clear() - - # read known failures pyconf - if "testerror" in self.config.LOCAL: - #import testerror - #self.known_errors = testerror.read_test_failures( - # self.config.TOOLS.testerror.file_path, - # do_error=False) - pass - else: - self.known_errors = None - - if self.grids is not None: - grids = self.grids # given by user - else: - # select all the grids (i.e. directories) in the directory - grids = filter(lambda l: l not in C_IGNORE_GRIDS, - os.listdir(self.currentDir)) - grids = filter(lambda l: os.path.isdir( - os.path.join(self.currentDir, l)), - grids) - - grids = sorted(grids, key=str.lower) - for grid in grids: - if not os.path.exists(os.path.join(self.currentDir, grid)): - self.logger.write(self.write_test_margin(1), 3) - self.logger.write(src.printcolors.printcWarning( - "grid %s does not exist\n" % grid), 3, False) - else: - self.currentgrid = grid - self.run_grid_tests()
- -
[docs] def run_script(self, script_name): - if ('APPLICATION' in self.config and - script_name in self.config.APPLICATION): - script = self.config.APPLICATION[script_name] - if len(script) == 0: - return - - self.logger.write("\n", 2, False) - if not os.path.exists(script): - self.logger.write(src.printcolors.printcWarning("WARNING: scrip" - "t not found: %s" % script) + "\n", 2) - else: - self.logger.write(src.printcolors.printcHeader("----------- sta" - "rt %s" % script_name) + "\n", 2) - self.logger.write("Run script: %s\n" % script, 2) - subprocess.Popen(script, shell=True).wait() - self.logger.write(src.printcolors.printcHeader("----------- end" - " %s" % script_name) + "\n", 2)
- -
[docs] def run_all_tests(self): - initTime = datetime.datetime.now() - - self.run_script('test_setup') - self.logger.write("\n", 2, False) - - self.logger.write(src.printcolors.printcHeader( - _("=== STARTING TESTS")) + "\n", 2) - self.logger.write("\n", 2, False) - self.currentDir = os.path.join(self.tmp_working_dir, - 'BASES', - self.currentTestBase) - self.run_testbase_tests() - - # calculate total execution time - totalTime = datetime.datetime.now() - initTime - totalTime -= datetime.timedelta(microseconds=totalTime.microseconds) - self.logger.write("\n", 2, False) - self.logger.write(src.printcolors.printcHeader(_("=== END TESTS")), 2) - self.logger.write(" %s\n" % src.printcolors.printcInfo(str(totalTime)), - 2, - False) - - # - # Start the tests - # - self.run_script('test_cleanup') - self.logger.write("\n", 2, False) - - # evaluate results - res_count = "%d / %d" % (self.nb_succeed, - self.nb_run - self.nb_acknoledge) - - res_out = _("Tests Results: %(succeed)d / %(total)d\n") % \ - { 'succeed': self.nb_succeed, 'total': self.nb_run } - if self.nb_succeed == self.nb_run: - res_out = src.printcolors.printcSuccess(res_out) - else: - res_out = src.printcolors.printcError(res_out) - self.logger.write(res_out, 1) - - if self.nb_timeout > 0: - self.logger.write(_("%d tests TIMEOUT\n") % self.nb_timeout, 1) - res_count += " TO: %d" % self.nb_timeout - if self.nb_not_run > 0: - self.logger.write(_("%d tests not executed\n") % self.nb_not_run, 1) - res_count += " NR: %d" % self.nb_not_run - - status = src.OK_STATUS - if self.nb_run - self.nb_succeed - self.nb_acknoledge > 0: - status = src.KO_STATUS - elif self.nb_acknoledge: - status = src.KNOWNFAILURE_STATUS - - self.logger.write(_("Status: %s\n" % status), 3) - - return self.nb_run - self.nb_succeed - self.nb_acknoledge
- - ## - # Write margin to show test results. -
[docs] def write_test_margin(self, tab): - if tab == 0: - return "" - return "| " * (tab - 1) + "+ "
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_modules/src/xmlManager.html b/doc/build/html/_modules/src/xmlManager.html deleted file mode 100644 index 68b5591..0000000 --- a/doc/build/html/_modules/src/xmlManager.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - - - src.xmlManager — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for src.xmlManager

-#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-#  Copyright (C) 2010-2013  CEA/DEN
-#
-#  This library is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU Lesser General Public
-#  License as published by the Free Software Foundation; either
-#  version 2.1 of the License.
-#
-#  This library is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#  Lesser General Public License for more details.
-#
-#  You should have received a copy of the GNU Lesser General Public
-#  License along with this library; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-
-import os
-try: # For python2
-    import sys
-    reload(sys)  
-    sys.setdefaultencoding('utf8')
-except:
-    pass
-
-import src
-from . import ElementTree as etree
-
-
[docs]class XmlLogFile(object): - '''Class to manage writing in salomeTools xml log file - ''' - def __init__(self, filePath, rootname, attrib = {}): - '''Initialization - - :param filePath str: The path to the file where to write the log file - :param rootname str: The name of the root node of the xml file - :param attrib dict: the dictionary that contains the attributes - and value of the root node - ''' - # Initialize the filePath and ensure that the directory - # that contain the file exists (make it if necessary) - self.logFile = filePath - src.ensure_path_exists(os.path.dirname(filePath)) - # Initialize the field that contain the xml in memory - self.xmlroot = etree.Element(rootname, attrib = attrib) - -
[docs] def write_tree(self, stylesheet=None, file_path = None): - '''Write the xml tree in the log file path. Add the stylesheet if asked. - - :param stylesheet str: The stylesheet to apply to the xml file - ''' - log_file_path = self.logFile - if file_path: - log_file_path = file_path - try: - f = open(log_file_path, 'w') - f.write("<?xml version='1.0' encoding='utf-8'?>\n") - if stylesheet: - f.write("<?xml-stylesheet type='text/xsl' href='%s'?>\n" % - stylesheet) - f.write(etree.tostring(self.xmlroot, encoding='utf-8')) - f.close() - except IOError: - pass
- -
[docs] def add_simple_node(self, node_name, text=None, attrib={}): - '''Add a node with some attibutes and text to the root node. - - :param node_name str: the name of the node to add - :param text str: the text of the node - :param attrib dict: the dictionary containing the - attribute of the new node - ''' - n = etree.Element(node_name, attrib=attrib) - n.text = text - self.xmlroot.append(n) - return n
- -
[docs] def append_node_text(self, node_name, text): - '''Append a new text to the node that has node_name as name - - :param node_name str: The name of the node on which append text - :param text str: The text to append - ''' - # find the corresponding node - for field in self.xmlroot: - if field.tag == node_name: - # append the text - field.text += text
- -
[docs] def append_node_attrib(self, node_name, attrib): - '''Append a new attributes to the node that has node_name as name - - :param node_name str: The name of the node on which append text - :param attrib dixt: The attrib to append - ''' - self.xmlroot.find(node_name).attrib.update(attrib)
- -
[docs]class ReadXmlFile(object): - '''Class to manage reading of an xml log file - ''' - def __init__(self, filePath): - '''Initialization - - :param filePath str: The xml file to be read - ''' - self.filePath = filePath - etree_inst = etree.parse(filePath) - self.xmlroot = etree_inst.parse(filePath) - -
[docs] def getRootAttrib(self): - '''Get the attibutes of the self.xmlroot - - :return: The attributes of the root node - :rtype: dict - ''' - return self.xmlroot.attrib
- -
[docs] def get_attrib(self, node_name): - '''Get the attibutes of the node node_name in self.xmlroot - - :param node_name str: the name of the node - :return: the attibutes of the node node_name in self.xmlroot - :rtype: dict - ''' - attrib = self.xmlroot.find(node_name).attrib - # To be python 3 compatible, convert bytes to str if there are any - fixedAttrib = {} - for k in attrib.keys(): - if isinstance(k, bytes): - key = k.decode() - else: - key = k - if isinstance(attrib[k], bytes): - value = attrib[k].decode() - else: - value = attrib[k] - fixedAttrib[key] = value - return fixedAttrib
- -
[docs] def get_node_text(self, node): - '''Get the text of the first node that has name - that corresponds to the parameter node - - :param node str: the name of the node from which get the text - :return: the text of the first node that has name - that corresponds to the parameter node - :rtype: str - ''' - return self.xmlroot.find(node).text
- -
[docs]def add_simple_node(root_node, node_name, text=None, attrib={}): - '''Add a node with some attibutes and text to the root node. - - :param root_node etree.Element: the Etree element where to add the new node - :param node_name str: the name of the node to add - :param text str: the text of the node - :param attrib dict: the dictionary containing the - attribute of the new node - ''' - n = etree.Element(node_name, attrib=attrib) - n.text = text - root_node.append(n) - return n
- -
[docs]def append_node_attrib(root_node, attrib): - '''Append a new attributes to the node that has node_name as name - - :param root_node etree.Element: the Etree element - where to append the new attibutes - :param attrib dixt: The attrib to append - ''' - root_node.attrib.update(attrib)
- -
[docs]def find_node_by_attrib(xmlroot, name_node, key, value): - '''Find the nfirst ode from xmlroot that has name name_node and that has in - its attributes {key : value}. Return the node - - :param xmlroot etree.Element: the Etree element where to search - :param name_node str: the name of node to search - :param key str: the key to search - :param value str: the value to search - :return: the found node - :rtype: xmlroot etree.Element - ''' - l_nodes = xmlroot.findall(name_node) - for node in l_nodes: - if key not in node.attrib.keys(): - continue - if node.attrib[key] == value: - return node - return None
- - -
[docs]def write_report(filename, xmlroot, stylesheet): - """Writes a report file from a XML tree. - - :param filename str: The path to the file to create - :param xmlroot etree.Element: the Etree element to write to the file - :param stylesheet str: The stylesheet to add to the begin of the file - """ - if not os.path.exists(os.path.dirname(filename)): - os.makedirs(os.path.dirname(filename)) - - f = open(filename, "w") - f.write("<?xml version='1.0' encoding='utf-8'?>\n") - if len(stylesheet) > 0: - f.write("<?xml-stylesheet type='text/xsl' href='%s'?>\n" % stylesheet) - f.write(etree.tostring(xmlroot, encoding='utf-8')) - f.close()
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/_sources/commands/apidoc/modules.rst.txt b/doc/build/html/_sources/commands/apidoc/modules.rst.txt deleted file mode 100644 index e9ff8ac..0000000 --- a/doc/build/html/_sources/commands/apidoc/modules.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -src -=== - -.. toctree:: - :maxdepth: 4 - - src diff --git a/doc/build/html/_sources/commands/apidoc/src.colorama.rst.txt b/doc/build/html/_sources/commands/apidoc/src.colorama.rst.txt deleted file mode 100644 index 65cd0c2..0000000 --- a/doc/build/html/_sources/commands/apidoc/src.colorama.rst.txt +++ /dev/null @@ -1,54 +0,0 @@ -src.colorama package -==================== - -Submodules ----------- - -src.colorama.ansi module ------------------------- - -.. automodule:: src.colorama.ansi - :members: - :undoc-members: - :show-inheritance: - -src.colorama.ansitowin32 module -------------------------------- - -.. automodule:: src.colorama.ansitowin32 - :members: - :undoc-members: - :show-inheritance: - -src.colorama.initialise module ------------------------------- - -.. automodule:: src.colorama.initialise - :members: - :undoc-members: - :show-inheritance: - -src.colorama.win32 module -------------------------- - -.. automodule:: src.colorama.win32 - :members: - :undoc-members: - :show-inheritance: - -src.colorama.winterm module ---------------------------- - -.. automodule:: src.colorama.winterm - :members: - :undoc-members: - :show-inheritance: - - -Module contents ---------------- - -.. automodule:: src.colorama - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/build/html/_sources/commands/apidoc/src.rst.txt b/doc/build/html/_sources/commands/apidoc/src.rst.txt deleted file mode 100644 index 39bedae..0000000 --- a/doc/build/html/_sources/commands/apidoc/src.rst.txt +++ /dev/null @@ -1,149 +0,0 @@ -src package -=========== - -Subpackages ------------ - -.. toctree:: - - src.colorama - -Submodules ----------- - -src.ElementTree module ----------------------- - -.. automodule:: src.ElementTree - :members: - :undoc-members: - :show-inheritance: - -src.architecture module ------------------------ - -.. automodule:: src.architecture - :members: - :undoc-members: - :show-inheritance: - -src.compilation module ----------------------- - -.. automodule:: src.compilation - :members: - :undoc-members: - :show-inheritance: - -src.debug module ----------------- - -.. automodule:: src.debug - :members: - :undoc-members: - :show-inheritance: - -src.environment module ----------------------- - -.. automodule:: src.environment - :members: - :undoc-members: - :show-inheritance: - -src.fileEnviron module ----------------------- - -.. automodule:: src.fileEnviron - :members: - :undoc-members: - :show-inheritance: - -src.fork module ---------------- - -.. automodule:: src.fork - :members: - :undoc-members: - :show-inheritance: - -src.logger module ------------------ - -.. automodule:: src.logger - :members: - :undoc-members: - :show-inheritance: - -src.options module ------------------- - -.. automodule:: src.options - :members: - :undoc-members: - :show-inheritance: - -src.printcolors module ----------------------- - -.. automodule:: src.printcolors - :members: - :undoc-members: - :show-inheritance: - -src.product module ------------------- - -.. automodule:: src.product - :members: - :undoc-members: - :show-inheritance: - -src.pyconf module ------------------ - -.. automodule:: src.pyconf - :members: - :undoc-members: - :show-inheritance: - -src.system module ------------------ - -.. automodule:: src.system - :members: - :undoc-members: - :show-inheritance: - -src.template module -------------------- - -.. automodule:: src.template - :members: - :undoc-members: - :show-inheritance: - -src.test\_module module ------------------------ - -.. automodule:: src.test_module - :members: - :undoc-members: - :show-inheritance: - -src.xmlManager module ---------------------- - -.. automodule:: src.xmlManager - :members: - :undoc-members: - :show-inheritance: - - -Module contents ---------------- - -.. automodule:: src - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/build/html/_sources/commands/application.rst.txt b/doc/build/html/_sources/commands/application.rst.txt deleted file mode 100644 index 2052da0..0000000 --- a/doc/build/html/_sources/commands/application.rst.txt +++ /dev/null @@ -1,55 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command application -********************* - -Description -=========== -The **application** command creates a virtual SALOME_ application. -Virtual SALOME applications are used to start SALOME when distribution is needed. - -Usage -===== -* Create an application: :: - - sat application - - Create the virtual application directory in the salomeTool application directory ``$APPLICATION.workdir``. - -* Give a name to the application: :: - - sat application --name - - *Remark*: this option overrides the name given in the virtual_app section of the configuration file ``$APPLICATION.virtual_app.name``. - -* Change the directory where the application is created: :: - - sat application --target - -* Set a specific SALOME_ resources catalog (it will be used for the distribution of components on distant machines): :: - - sat application --catalog - - Note that the catalog specified will be copied to the application directory. - -* Generate the catalog for a list of machines: :: - - sat application --gencat machine1,machine2,machine3 - - This will create a catalog by querying each machine through ssh protocol (memory, number of processor) with ssh. - -* Generate a mesa application (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis): :: - - sat launcher --use_mesa - -Some useful configuration pathes -================================= - -The virtual application can be configured with the virtual_app section of the configutation file. - -* **APPLICATION.virtual_app** - - * **name** : name of the launcher (to replace the default runAppli). - * **application_name** : (optional) the name of the virtual application directory, if missing the default value is ``$name + _appli``. - diff --git a/doc/build/html/_sources/commands/clean.rst.txt b/doc/build/html/_sources/commands/clean.rst.txt deleted file mode 100644 index e5d2f38..0000000 --- a/doc/build/html/_sources/commands/clean.rst.txt +++ /dev/null @@ -1,61 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command clean -**************** - -Description -============ - -The **clean** command removes products in the *source, build, or install* directories of an application. Theses directories are usually named ``SOURCES, BUILD, INSTALL``. - -Use the options to define what directories you want to suppress and to set the list of products - - -Usage -======= - -* Clean all previously created *build* and *install* directories (example application as *SALOME_xx*): - - .. code-block:: bash - - # take care, is long time to restore, sometimes - sat clean SALOME-xx --build --install - -* Clean previously created *build* and *install* directories, only for products with property *is_salome_module*: - - .. code-block:: bash - - sat clean SALOME-xxx --build --install \ - --properties is_salome_module:yes - - -Availables options -====================== - - * **--products** : Products to clean. - - * **--properties** : - - | Filter the products by their properties. - | Syntax: *--properties :* - - * **--sources** : Clean the product source directories. - - * **--build** : Clean the product build directories. - - * **--install** : Clean the product install directories. - - * **--all** : Clean the product source, build and install directories. - - * **--sources_without_dev** : - - | Do not clean the products in development mode, - | (they could have VCS_ commits pending). - - - -Some useful configuration pathes -================================= - -No specific configuration. diff --git a/doc/build/html/_sources/commands/compile.rst.txt b/doc/build/html/_sources/commands/compile.rst.txt deleted file mode 100644 index 915705e..0000000 --- a/doc/build/html/_sources/commands/compile.rst.txt +++ /dev/null @@ -1,75 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command compile -**************** - -Description -=========== -The **compile** command allows compiling the products of a SALOME_ application. - - -Usage -===== -* Compile a complete application: :: - - sat compile - -* Compile only some products: :: - - sat compile --products , ... - -* Use *sat -t* to duplicate the logs in the terminal (by default the log are stored and displayed with *sat log* command): :: - - sat -t compile --products - -* Compile a module and its dependencies: :: - - sat compile --products med --with_fathers - -* Compile a module and the modules depending on it (for example plugins): :: - - sat compile --products med --with_children - -* Clean the build and install directories before starting compilation: :: - - sat compile --products GEOM --clean_all - - .. note:: | a warning will be shown if option *--products* is missing - | (as it will clean everything) - -* Clean only the install directories before starting compilation: :: - - sat compile --clean_install - -* Add options for make: :: - - sat compile --products --make_flags - -* Use the *--check* option to execute the unit tests after compilation: :: - - sat compile --check - -* Remove the build directory after successful compilation (some build directory like qt are big): :: - - sat compile --products qt --clean_build_after - -* Stop the compilation as soon as the compilation of a module fails: :: - - sat compile --stop_first_fail - -* Do not compile, just show if products are installed or not, and where is the installation: :: - - sat compile --show - - -Some useful configuration pathes -================================= - -The way to compile a product is defined in the *pyconf file configuration*. -The main options are: - - * **build_source** : the method used to build the product (cmake/autotools/script) - * **compil_script** : the compilation script if build_source is equal to "script" - * **cmake_options** : additional options for cmake. - * **nb_proc** : number of jobs to use with make for this product. diff --git a/doc/build/html/_sources/commands/config.rst.txt b/doc/build/html/_sources/commands/config.rst.txt deleted file mode 100644 index ffcfdf9..0000000 --- a/doc/build/html/_sources/commands/config.rst.txt +++ /dev/null @@ -1,89 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command config -****************** - -Description -=========== -The **config** command manages sat configuration. -It allows display, manipulation and operation on configuration files - -Usage -===== -* Edit the user personal configuration file ``$HOME/.salomeTools/SAT.pyconf``. It is used to store the user personal choices, like the favorite editor, browser, pdf viewer: :: - - sat config --edit - -* List the available applications (they come from the sat projects defined in ``data/local.pyconf``: :: - - sat config --list - -* Edit the configuration of an application: :: - - sat config --edit - -* Copy an application configuration file into the user personal directory: :: - - sat config --copy [new_name] - -* | Print the value of a configuration parameter. - | Use the automatic completion to get recursively the parameter names. - | Use *--no_label* option to get *only* the value, *without* label (useful in automatic scripts). - | Examples (with *SALOME-xx* as *SALOME-8.4.0* ): - - .. code-block:: bash - - # sat config --value - sat config --value . # all the configuration - sat config --value LOCAL - sat config --value LOCAL.workdir - - # sat config --value - sat config SALOME-xx --value APPLICATION.workdir - sat config SALOME-xx --no_label --value APPLICATION.workdir - -* | Print in one-line-by-value mode the value of a configuration parameter, - | with its source *expression*, if any. - | This is a debug mode, useful for developers. - | Prints the parameter path, the source expression if any, and the final value: - - :: - - sat config SALOME-xx -g USER - - .. note:: And so, *not only for fun*, to get **all expressions** of configuration - - .. code-block:: bash - - sat config SALOME-xx -g . | grep -e "-->" - - -* Print the patches that are applied: :: - - sat config SALOME-xx --show_patchs - -* Get information on a product configuration: - -.. code-block:: bash - - # sat config --info - sat config SALOME-xx --info KERNEL - sat config SALOME-xx --info qt - -Some useful configuration pathes -================================= - -Exploring a current configuration. - -* **PATHS**: To get list of directories where to find files. - -* **USER**: To get user preferences (editor, pdf viewer, web browser, default working dir). - -sat commands: :: - - sat config SALOME-xx -v PATHS - sat config SALOME-xx -v USERS - - - diff --git a/doc/build/html/_sources/commands/doc.rst.txt b/doc/build/html/_sources/commands/doc.rst.txt deleted file mode 100644 index f985c32..0000000 --- a/doc/build/html/_sources/commands/doc.rst.txt +++ /dev/null @@ -1,39 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command doc -**************** - -Description -=========== -The **doc** command displays sat documentation. - -Usage -===== -* Show (in a web browser) the sat documentation in format xml/html: :: - - sat doc --xml - -* Show (in evince, for example) the (same) sat documentation in format pdf: :: - - sat doc --pdf - -* Edit and modify in your preference user editor the sources files (rst) of sat documentation: :: - - sat doc --edit - -* get information how to compile locally sat documentation (from the sources files): :: - - sat doc --compile - - - -Some useful configuration pathes -================================= - -* **USER** - - * **browser** : The browser used to show the html files (*firefox* for example). - * **pdf_viewer** : The viewer used to show the pdf files (*evince* for example). - * **editor** : The editor used to edit ascii text files (*pluma or gedit* for example). - diff --git a/doc/build/html/_sources/commands/environ.rst.txt b/doc/build/html/_sources/commands/environ.rst.txt deleted file mode 100644 index d487e4c..0000000 --- a/doc/build/html/_sources/commands/environ.rst.txt +++ /dev/null @@ -1,139 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command environ -**************** - -Description -=========== -The **environ** command generates the environment files used -to run and compile your application (as SALOME_ is an example). - -.. note :: - these files are **not** required, - salomeTool set the environment himself, when compiling. - And so does the salome launcher. - - These files are useful when someone wants to check the environment. - They could be used in debug mode to set the environment for *gdb*. - -The configuration part at the end of this page explains how -to specify the environment used by sat (at build or run time), -and saved in some files by *sat environ* command. - -Usage -===== -* Create the shell environment files of the application: :: - - sat environ - -* Create the environment files of the application for a given shell. - Options are bash, bat (for windows) and cfg (the configuration format used by SALOME_): :: - - sat environ --shell [bash|cfg|all] - -* Use a different prefix for the files (default is 'env'): - - .. code-block:: bash - - # This will create file _launch.sh, _build.sh - sat environ --prefix - -* Use a different target directory for the files: - - .. code-block:: bash - - # This will create file env_launch.sh, env_build.sh - # in the directory corresponding to - sat environ --target - -* Generate the environment files only with the given products: - - .. code-block:: bash - - # This will create the environment files only for the given products - # and their prerequisites. - # It is useful when you want to visualise which environment uses - # sat to compile a given product. - sat environ --product ,, ... - - -Configuration -============= - -The specification of the environment can be done through several mechanisms. - -1. For salome products (the products with the property ``is_SALOME_module`` as ``yes``) the environment is set automatically by sat, in respect with SALOME_ requirements. - -2. For other products, the environment is set with the use of the environ section within the pyconf file of the product. The user has two possibilities, either set directly the environment within the section, or specify a python script which wil be used to set the environment programmatically. - -Within the section, the user can define environment variables. He can also modify PATH variables, by appending or prepending directories. -In the following example, we prepend */lib* to ``LD_LIBRARY_PATH`` (note the *left first* underscore), append */lib* to ``PYTHONPATH`` (note the *right last* underscore), and set ``LAPACK_ROOT_DIR`` to **: - -.. code-block:: bash - - environ : - { - _LD_LIBRARY_PATH : $install_dir + $VARS.sep + "lib" - PYTHONPATH_ : $install_dir + $VARS.sep + "lib" - LAPACK_ROOT_DIR : $install_dir - } - -It is possible to distinguish the build environment from the launch environment: use a subsection called *build* or *launch*. In the example below, ``LD_LIBRARY_PATH`` and ``PYTHONPATH`` are only modified at run time, not at compile time: - -.. code-block:: bash - - environ : - { - build : - { - LAPACK_ROOT_DIR : $install_dir - } - launch : - { - LAPACK_ROOT_DIR : $install_dir - _LD_LIBRARY_PATH : $install_dir + $VARS.sep + "lib" - PYTHONPATH_ : $install_dir + $VARS.sep + "lib" - } - } - -3. The last possibility is to set the environment with a python script. The script should be provided in the *products/env_scripts* directory of the sat project, and its name is specified in the environment section with the key ``environ.env_script``: - -.. code-block:: python - - environ : - { - env_script : 'lapack.py' - } - -Please note that the two modes are complementary and are both taken into account. -Most of the time, the first mode is sufficient. - -The second mode can be used when the environment has to be set programmatically. -The developer implements a handle (as a python method) -which is called by sat to set the environment. -Here is an example: - -.. code-block:: python - - - #!/usr/bin/env python - #-*- coding:utf-8 -*- - - import os.path - import platform - - def set_env(env, prereq_dir, version): - env.set("TRUST_ROOT_DIR",prereq_dir) - env.prepend('PATH', os.path.join(prereq_dir, 'bin')) - env.prepend('PATH', os.path.join(prereq_dir, 'include')) - env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) - return - -SalomeTools defines four handles: - -* **set_env(env, prereq_dir, version)** : used at build and run time. -* **set_env_launch(env, prereq_dir, version)** : used only at run time (if defined!) -* **set_env_build(env, prereq_dir, version)** : used only at build time (if defined!) -* **set_native_env(env)** : used only for native products, at build and run time. - diff --git a/doc/build/html/_sources/commands/generate.rst.txt b/doc/build/html/_sources/commands/generate.rst.txt deleted file mode 100644 index f753261..0000000 --- a/doc/build/html/_sources/commands/generate.rst.txt +++ /dev/null @@ -1,39 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command generate -**************** - -Description -=========== -The **generate** command generates and compile SALOME modules from cpp modules using YACSGEN. - -.. note:: This command uses YACSGEN to generate the module. It needs to be specified with *--yacsgen* option, or defined in the product or by the environment variable ``$YACSGEN_ROOT_DIR``. - - -Remarks -======= -* This command will only apply on the CPP modules of the application, those who have both properties: :: - - cpp : "yes" - generate : "yes" - -* The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation) - - -Usage -===== -* Generate all the modules of a product: :: - - sat generate - -* Generate only specific modules: :: - - sat generate --products - - Remark: modules which don't have the *generate* property are ignored. - -* Use a specific version of YACSGEN: :: - - sat generate --yacsgen - diff --git a/doc/build/html/_sources/commands/launcher.rst.txt b/doc/build/html/_sources/commands/launcher.rst.txt deleted file mode 100644 index 864a31a..0000000 --- a/doc/build/html/_sources/commands/launcher.rst.txt +++ /dev/null @@ -1,52 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command launcher -****************** - -Description -=========== -The **launcher** command creates a SALOME launcher, a python script file to start SALOME_. - - -Usage -===== -* Create a launcher: :: - - sat launcher - - Generate a launcher in the application directory, i.e ``$APPLICATION.workdir``. - -* Create a launcher with a given name (default name is ``APPLICATION.profile.launcher_name``) :: - - sat launcher --name ZeLauncher - - The launcher will be called *ZeLauncher*. - -* Set a specific resources catalog: :: - - sat launcher --catalog - - Note that the catalog specified will be copied to the profile directory. - -* Generate the catalog for a list of machines: :: - - sat launcher --gencat - - This will create a catalog by querying each machine (memory, number of processor) with ssh. - -* Generate a mesa launcher (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis): :: - - sat launcher --use_mesa - - -Configuration -============= - -Some useful configuration pathes: - -* **APPLICATION.profile** - - * **product** : the name of the profile product (the product in charge of holding the application stuff, like logos, splashscreen) - * **launcher_name** : the name of the launcher. - diff --git a/doc/build/html/_sources/commands/log.rst.txt b/doc/build/html/_sources/commands/log.rst.txt deleted file mode 100644 index 9908f4b..0000000 --- a/doc/build/html/_sources/commands/log.rst.txt +++ /dev/null @@ -1,46 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command log -**************** - -Description -=========== -The **log** command displays sat log in a web browser or in a terminal. - -Usage -===== -* Show (in a web browser) the log of the commands corresponding to an application: :: - - sat log - -* Show the log for commands that do not use any application: :: - - sat log - -* The --terminal (or -t) display the log directly in the terminal, through a CLI_ interactive menu: :: - - sat log --terminal - -* The --last option displays only the last command: :: - - sat log --last - -* To access the last compilation log in terminal mode, use --last_terminal option: :: - - sat log --last_terminal - -* The --clean (int) option erases the n older log files and print the number of remaining log files: :: - - sat log --clean 50 - - - -Some useful configuration pathes -================================= - -* **USER** - - * **browser** : The browser used to show the log (by default *firefox*). - * **log_dir** : The directory used to store the log files. - diff --git a/doc/build/html/_sources/commands/package.rst.txt b/doc/build/html/_sources/commands/package.rst.txt deleted file mode 100644 index 6d6648a..0000000 --- a/doc/build/html/_sources/commands/package.rst.txt +++ /dev/null @@ -1,81 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command package -**************** - -Description -============ -The **package** command creates a SALOME_ archive (usually a compressed Tar_ file .tgz). -This tar file is used later to intall SALOME on other remote computer. - -Depending on the selected options, the archive includes sources and binaries -of SALOME products and prerequisites. - -Usually utility *salomeTools* is included in the archive. - -.. note:: - By default the package includes the sources of prerequisites and products. - To select a subset use the *--without_property* or *--with_vcs* options. - - -Usage -===== -* Create a package for a product (example as *SALOME_xx*): :: - - sat package SALOME_xx - - This command will create an archive named ``SALOME_xx.tgz`` - in the working directory (``USER.workDir``). - If the archive already exists, do nothing. - - -* Create a package with a specific name: :: - - sat package SALOME_xx --name YourSpecificName - -.. note:: - By default, the archive is created in the working directory of the user (``USER.workDir``). - - If the option *--name* is used with a path (relative or absolute) it will be used. - - If the option *--name* is not used and binaries (prerequisites and products) - are included in the package, the OS_ architecture - will be appended to the name (example: ``SALOME_xx-CO7.tgz``). - - Examples: :: - - # Creates SALOME_xx.tgz in $USER.workDir - sat package SALOME_xx - - # Creates SALOME_xx_.tgz in $USER.workDir - sat package SALOME_xx --binaries - - # Creates MySpecificName.tgz in $USER.workDir - sat package SALOME_xx --name MySpecificName - - -* Force the creation of the archive (if it already exists): :: - - sat package SALOME_xx --force - - -* Include the binaries in the archive (products and prerequisites): :: - - sat package SALOME_xx --binaries - - This command will create an archive named ``SALOME_xx _.tgz`` - where is the OS_ architecture of the machine. - - -* Do not delete Version Control System (VCS_) informations from the configurations files of the embedded salomeTools: :: - - sat package SALOME_xx --with_vcs - - The version control systems known by this option are CVS_, SVN_ and Git_. - - -Some useful configuration pathes -================================= - -No specific configuration. diff --git a/doc/build/html/_sources/commands/prepare.rst.txt b/doc/build/html/_sources/commands/prepare.rst.txt deleted file mode 100644 index a28fdae..0000000 --- a/doc/build/html/_sources/commands/prepare.rst.txt +++ /dev/null @@ -1,100 +0,0 @@ - -.. include:: ../../rst_prolog.rst - -Command prepare -**************** - -Description -=========== -The **prepare** command brings the sources of an application in the *sources -application directory*, in order to compile them with the compile command. - -The sources can be prepared from VCS software (*cvs, svn, git*), an archive or a directory. - -.. warning:: When sat prepares a product, it first removes the - existing directory, except if the development mode is activated. - When you are working on a product, you need to declare in - the application configuration this product in **dev** mode. - -Remarks -======= - -VCS bases (git, svn, cvs) -------------------------- - -The *prepare* command does not manage authentication on the cvs server. -For example, to prepare modules from a cvs server, you first need to login once. - -To avoid typing a password for each product, -you may use a ssh key with passphrase, or store your password -(in .cvspass or .gitconfig files). -If you have security concerns, it is also possible to use -a bash agent and type your password only once. - - - -Dev mode --------- - -By default *prepare* uses *export* mode: it creates an image -of the sources, corresponding to the tag or branch specified, -without any link to the VCS base. -To perform a *checkout* (svn, cvs) or a *git clone* (git), -you need to declare the product in dev mode in your application configuration: -edit the application configuration file (pyconf) and modify the product declaration: - -.. code-block:: bash - - sat config -e - # and edit the product section: - # : {tag : "my_tag", dev : "yes", debug : "yes"} - -The first time you will execute the *sat prepare* command, -your module will be downloaded in *checkout* mode -(inside the SOURCES directory of the application. -Then, you can develop in this repository, and finally push -them in the base when they are ready. -If you type during the development process by mistake -a *sat prepare* command, the sources in dev mode will -not be altered/removed (Unless you use -f option) - - -Usage -===== -* Prepare the sources of a complete application in SOURCES directory (all products): :: - - sat prepare - -* Prepare only some modules: :: - - sat prepare --products , ... - -* Use --force to force to prepare the products in development mode - (this will remove the sources and do a new clone/checkout): :: - - sat prepare --force - -* Use --force_patch to force to apply patch to the products - in development mode (otherwise they are not applied): :: - - sat prepare --force_patch - - -Some useful configuration pathes -================================= - -Command *sat prepare* uses the *pyconf file configuration* of each product to know how to get the sources. - -.. note:: to verify configuration of a product, and get name of this *pyconf files configuration* - - .. code-block :: bash - - sat config --info - - -* **get_method**: the method to use to prepare the module, possible values are cvs, git, archive, dir. -* **git_info** : (used if get_method = git) information to prepare sources from git. -* **svn_info** : (used if get_method = svn) information to prepare sources from cvs. -* **cvs_info** : (used if get_method = cvs) information to prepare sources from cvs. -* **archive_info** : (used if get_method = archive) the path to the archive. -* **dir_info** : (used if get_method = dir) the directory with the sources. diff --git a/doc/build/html/_sources/configuration.rst.txt b/doc/build/html/_sources/configuration.rst.txt deleted file mode 100644 index 7f415a3..0000000 --- a/doc/build/html/_sources/configuration.rst.txt +++ /dev/null @@ -1,88 +0,0 @@ -************* -Configuration -************* - -*salomeTools* uses files to store its configuration parameters. - -There are several configuration files which are loaded by salomeTools in a specific order. -When all the files are loaded a *config* object is created. -Then, this object is passed to all command scripts. - - -Syntax -====== -The configuration files use a python-like structure format -(see `config module `_ for a complete description). - -* **{}** define a dictionary, -* **[]** define a list, -* **@** can be used to include a file, -* **$prefix** reference to another parameter (ex: ``$PRODUCT.name``), -* **#** comments. - -.. note:: in this documentation a reference to a configuration parameter will be noted ``XXX.YYY``. - -Description -=========== - -.. _VARS-Section: - -VARS section -------------- -| This section is dynamically created by salomeTools at run time. -| It contains information about the environment: date, time, OS, architecture etc. - -:: - - # to get the current setting - sat config --value VARS - -PRODUCTS section ------------------- -| This section is defined in the product file. -| It contains instructions on how to build a version of SALOME (list of prerequisites-products and versions) - -:: - - # to get the current setting - sat config SALOME-xx --value PRODUCTS - -APPLICATION section ---------------------- -| This section is optional, it is also defined in the product file. -| It gives additional parameters to create an application based on SALOME, as versions of products to use. - -:: - - # to get the current setting - sat config SALOME-xx --value APPLICATION - - -.. _USER-Section: - -USER section --------------- -This section is defined by the user configuration file, -``~/.salomeTools/salomeTools.pyconf``. - -The ``USER`` section defines some parameters (not exhaustive): - -* **workDir** : - - | The working directory. - | Each product will be usually installed here (in sub-directories). - -* **browser** : The web browser to use (*firefox*). - -* **editor** : The editor to use (*vi, pluma*). - -* and other user preferences. - -:: - - # to get the current setting - sat config SALOME-xx --value USER - - - - diff --git a/doc/build/html/_sources/index.rst.txt b/doc/build/html/_sources/index.rst.txt deleted file mode 100644 index 07c305d..0000000 --- a/doc/build/html/_sources/index.rst.txt +++ /dev/null @@ -1,84 +0,0 @@ - -.. include:: ../rst_prolog.rst - -.. empty first toctree is used for pdf contents maxdepth, see sphinx/builders/latex/__init__.py, toctrees[0].get('maxdepth') - -.. toctree:: - :maxdepth: 2 - -************ -Salome Tools -************ - -.. image:: images/sat_about.png - :scale: 100 % - :align: center - -.. warning:: This documentation is under construction. - -The **Sa**\ lome\ **T**\ ools (sat) is a suite of commands -that can be used to perform operations on SALOME_. - -For example, sat allows you to compile SALOME's codes -(prerequisites, products) -create application, run tests, create package, etc. - -This utility code is a set of Python_ scripts files. - -Find a `pdf version of this documentation `_ - - -Quick start -=========== - -.. toctree:: - :maxdepth: 1 - - Installation of salomeTools - Configuration - Usage of salomeTools - -List of Commands -================ - -.. toctree:: - :maxdepth: 1 - - doc - config - prepare - compile - launcher - application - log - environ - clean - package - generate - -Developer documentation -======================= - -.. toctree:: - :maxdepth: 1 - - Add a command - - -Code documentation -================== - -.. toctree:: - :maxdepth: 1 - - SAT modules - - -Release Notes -============= - -.. toctree:: - :maxdepth: 1 - - Release Notes 5.0.0 - diff --git a/doc/build/html/_sources/installation_of_sat.rst.txt b/doc/build/html/_sources/installation_of_sat.rst.txt deleted file mode 100644 index da661be..0000000 --- a/doc/build/html/_sources/installation_of_sat.rst.txt +++ /dev/null @@ -1,15 +0,0 @@ -************ -Installation -************ - -Usually user could find (and use) command **sat** directly after a 'detar' installation of SALOME. - -.. code-block:: bash - - tar -xf .../SALOME_xx.tgz - cd SALOME_xx - ls -l sat # sat -> salomeTools/sat - - -Python package (scripts of salomeTools) actually remains in directory *salomeTools*. - diff --git a/doc/build/html/_sources/release_notes/release_notes_5.0.0.rst.txt b/doc/build/html/_sources/release_notes/release_notes_5.0.0.rst.txt deleted file mode 100644 index 55b6aad..0000000 --- a/doc/build/html/_sources/release_notes/release_notes_5.0.0.rst.txt +++ /dev/null @@ -1,5 +0,0 @@ -*************** -Release notes -*************** - -In construction. diff --git a/doc/build/html/_sources/usage_of_sat.rst.txt b/doc/build/html/_sources/usage_of_sat.rst.txt deleted file mode 100644 index 80c7b46..0000000 --- a/doc/build/html/_sources/usage_of_sat.rst.txt +++ /dev/null @@ -1,97 +0,0 @@ - -.. include:: ../rst_prolog.rst - -******************** -Usage of SAlomeTools -******************** - -Usage -===== -sat usage is a Command Line Interface (CLI_). - -.. code-block:: bash - - sat [generic_options] [command] [product] [command_options] - -Options of sat --------------- - -Useful *not exhaustive* generic options of *sat* CLI. - -*--help or -h* -............... - -Get help as simple text. - -.. code-block:: bash - - sat --help # get the list of existing commands - sat --help compile # get the help on a specific command 'compile' - - -*--debug or -g* -................ - -Execution in debug mode allows to see more trace and *stack* if an exception is raised. - -*--verbose or -v* -.................. - -Change verbosity level (default is 3). - -.. code-block:: bash - - # for product 'SALOME_xx' for example - # execute compile command in debug mode with trace level 4 - sat -g -v 4 compile SALOME_xx - - -Build a SALOME product -====================== - -Get the list of available products ----------------------------------- - -To get the list of the current available products in your context: - -.. code-block:: bash - - sat config --list - -Prepare sources of a product ----------------------------- - -To prepare (get) *all* the sources of a product (*SALOME_xx* for example): - -.. code-block:: bash - - sat prepare SALOME_xx - -| The sources are usually copied in directories -| *$USER.workDir + SALOME_xx... + SOURCES + $PRODUCT.name* - - -Compile SALOME ----------------- - -To compile products: - -.. code-block:: bash - - # compile all prerequisites/products - sat compile SALOME_xx - - # compile only 2 products (KERNEL and SAMPLES), if not done yet - sat compile SALOME_xx --products KERNEL,SAMPLES - - # compile only 2 products, unconditionaly - sat compile SALOME_xx ---products SAMPLES --clean_all - - -| The products are usually build in the directories -| *$USER.workDir + SALOME_xx... + BUILD + $PRODUCT.name* -| -| The products are usually installed in the directories -| *$USER.workDir + SALOME_xx... + INSTALL + $PRODUCT.name* - - diff --git a/doc/build/html/_sources/write_command.rst.txt b/doc/build/html/_sources/write_command.rst.txt deleted file mode 100644 index 9a68de8..0000000 --- a/doc/build/html/_sources/write_command.rst.txt +++ /dev/null @@ -1,157 +0,0 @@ - -.. include:: ../rst_prolog.rst - - -Add a user custom command -*************************** - -Introduction -============ - -.. note:: This documentation is for Python_ developers. - - -The salomeTools product provides a simple way to develop commands. -The first thing to do is to add a file with *.py* extension in the ``commands`` directory of salomeTools. - -Here are the basic requirements that must be followed in this file in order to add a command. - -Basic requirements -================== - -By adding a file *mycommand.py* in the ``commands`` directory, salomeTools will define a new command named ``mycommand``. - -In *mycommand.py*, there must be the following method: :: - - def run(args, runner, logger): - # your algorithm ... - pass - -In fact, at this point, the command will already be functional. -But there are some useful services provided by salomeTools : - -* You can give some options to your command: - -.. code-block:: python - - import src - - # Define all possible option for mycommand command : 'sat mycommand ' - parser = src.options.Options() - parser.add_option('m', 'myoption', \ - 'boolean', 'myoption', \ - 'My option changes the behavior of my command.') - - def run(args, runner, logger): - # Parse the options - (options, args) = parser.parse_args(args) - # algorithm - - -* You can add a *description* method that will display a message when the user will call the help: - - -.. code-block:: python - :emphasize-lines: 9,10 - - import src - - # Define all possible option for mycommand command : 'sat mycommand ' - parser = src.options.Options() - parser.add_option('m', 'myoption', \ - 'boolean', 'myoption', \ - 'My option changes the behavior of my command.') - - def description(): - return _("The help of mycommand.") - - def run(args, runner, logger): - # Parse the options - (options, args) = parser.parse_args(args) - # algorithm - -HowTo access salomeTools config and other commands -======================================================== - -The *runner* variable is an python instance of *Sat* class. -It gives access to *runner.cfg* which is the data model defined from all -*configuration pyconf files* of salomeTools -For example, *runner.cfg.APPLICATION.workdir* -contains the root directory of the current application. - -The *runner* variable gives also access to other commands of salomeTools: - -.. code-block:: python - - # as CLI_ 'sat prepare ...' - runner.prepare(runner.cfg.VARS.application) - -HowTo logger -============== - -The logger variable is an instance of the Logger class. -It gives access to the write method. - -When this method is called, the message passed as parameter -will be displayed in the terminal and written in an xml log file. - -.. code-block:: python - - logger.write("My message", 3) # 3 as default - -The second argument defines the level of verbosity -that is wanted for this message. -It has to be between 1 and 5 (the most verbose level). - -HELLO example -============== - -Here is a *hello* command, file *commands/hello.py*: - -.. code-block:: python - - import src - - """ - hello.py - Define all possible options for hello command: - sat hello - """ - - parser = src.options.Options() - parser.add_option('f', 'french', 'boolean', 'french', "french set hello message in french.") - - def description(): - return _("The help of hello.") - - def run(args, runner, logger): - # Parse the options - (options, args) = parser.parse_args(args) - # algorithm - if not options.french: - logger.write('HELLO! WORLD!\n') - else: - logger.write('Bonjour tout le monde!\n') - -A first call of hello: - -.. code-block:: bash - - # Get the help of hello: - ./sat --help hello - - # To get bonjour - ./sat hello --french - Bonjour tout le monde! - - # To get hello - ./sat hello - HELLO! WORLD! - - # To get the log - ./sat log - - - - - diff --git a/doc/build/html/_static/ajax-loader.gif b/doc/build/html/_static/ajax-loader.gif deleted file mode 100644 index 61faf8c..0000000 Binary files a/doc/build/html/_static/ajax-loader.gif and /dev/null differ diff --git a/doc/build/html/_static/alabaster.css b/doc/build/html/_static/alabaster.css deleted file mode 100644 index 1d88b3e..0000000 --- a/doc/build/html/_static/alabaster.css +++ /dev/null @@ -1,689 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif; - font-size: 0.9em; - background-color: #fff; - color: #000; - margin: 0; - padding: 0; -} - - -div.document { - width: 1000px; - margin: 30px auto 0 auto; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 250px; -} - -div.sphinxsidebar { - width: 250px; - font-size: 14px; - line-height: 1.5; -} - -hr { - border: 1px solid #B1B4B6; -} - -div.body { - background-color: #fff; - color: #3E4349; - padding: 0 30px 0 30px; -} - -div.body > .section { - text-align: left; -} - -div.footer { - width: 1000px; - margin: 20px auto 30px auto; - font-size: 14px; - color: #888; - text-align: right; -} - -div.footer a { - color: #888; -} - -p.caption { - font-family: inherit; - font-size: inherit; -} - - - -div.sphinxsidebar a { - color: #444; - text-decoration: none; - border-bottom: 1px dotted #999; -} - -div.sphinxsidebar a:hover { - border-bottom: 1px solid #999; -} - -div.sphinxsidebarwrapper { - padding: 18px 10px; -} - -div.sphinxsidebarwrapper p.logo { - padding: 0; - margin: -10px 0 0 0px; - text-align: center; -} - -div.sphinxsidebarwrapper h1.logo { - margin-top: -10px; - text-align: center; - margin-bottom: 5px; - text-align: left; -} - -div.sphinxsidebarwrapper h1.logo-name { - margin-top: 0px; -} - -div.sphinxsidebarwrapper p.blurb { - margin-top: 0; - font-style: normal; -} - -div.sphinxsidebar h3, -div.sphinxsidebar h4 { - font-family: 'Garamond', 'Georgia', serif; - color: #444; - font-size: 24px; - font-weight: normal; - margin: 0 0 5px 0; - padding: 0; -} - -div.sphinxsidebar h4 { - font-size: 20px; -} - -div.sphinxsidebar h3 a { - color: #444; -} - -div.sphinxsidebar p.logo a, -div.sphinxsidebar h3 a, -div.sphinxsidebar p.logo a:hover, -div.sphinxsidebar h3 a:hover { - border: none; -} - -div.sphinxsidebar p { - color: #555; - margin: 10px 0; -} - -div.sphinxsidebar ul { - margin: 10px 0; - padding: 0; - color: #000; -} - -div.sphinxsidebar ul li.toctree-l1 > a { - font-size: 120%; -} - -div.sphinxsidebar ul li.toctree-l2 > a { - font-size: 110%; -} - -div.sphinxsidebar input { - border: 1px solid #CCC; - font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif; - font-size: 1em; -} - -div.sphinxsidebar hr { - border: none; - height: 1px; - color: #AAA; - background: #AAA; - - text-align: left; - margin-left: 0; - width: 50%; -} - -/* -- body styles ----------------------------------------------------------- */ - -a { - color: #004B6B; - text-decoration: underline; -} - -a:hover { - color: #6D4100; - text-decoration: underline; -} - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - margin: 30px 0px 10px 0px; - padding: 0; -} - -div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } -div.body h2 { font-size: 180%; } -div.body h3 { font-size: 150%; } -div.body h4 { font-size: 130%; } -div.body h5 { font-size: 100%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #DDD; - padding: 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - color: #444; - background: #EAEAEA; -} - -div.body p, div.body dd, div.body li { - line-height: 1.4em; -} - -div.admonition { - margin: 20px 0px; - padding: 10px 30px; - background-color: #EEE; - border: 1px solid #CCC; -} - -div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { - background-color: #FBFBFB; - border-bottom: 1px solid #fafafa; -} - -div.admonition p.admonition-title { - font-family: 'Garamond', 'Georgia', serif; - font-weight: normal; - font-size: 24px; - margin: 0 0 10px 0; - padding: 0; - line-height: 1; -} - -div.admonition p.last { - margin-bottom: 0; -} - -div.highlight { - background-color: #fff; -} - -dt:target, .highlight { - background: #FAF3E8; -} - -div.warning { - background-color: #FCC; - border: 1px solid #FAA; -} - -div.danger { - background-color: #FCC; - border: 1px solid #FAA; - -moz-box-shadow: 2px 2px 4px #D52C2C; - -webkit-box-shadow: 2px 2px 4px #D52C2C; - box-shadow: 2px 2px 4px #D52C2C; -} - -div.error { - background-color: #FCC; - border: 1px solid #FAA; - -moz-box-shadow: 2px 2px 4px #D52C2C; - -webkit-box-shadow: 2px 2px 4px #D52C2C; - box-shadow: 2px 2px 4px #D52C2C; -} - -div.caution { - background-color: #FCC; - border: 1px solid #FAA; -} - -div.attention { - background-color: #FCC; - border: 1px solid #FAA; -} - -div.important { - background-color: #EEE; - border: 1px solid #CCC; -} - -div.note { - background-color: #EEE; - border: 1px solid #CCC; -} - -div.tip { - background-color: #EEE; - border: 1px solid #CCC; -} - -div.hint { - background-color: #EEE; - border: 1px solid #CCC; -} - -div.seealso { - background-color: #EEE; - border: 1px solid #CCC; -} - -div.topic { - background-color: #EEE; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre, tt, code { - font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; - font-size: 0.8em; -} - -.hll { - background-color: #FFC; - margin: 0 -12px; - padding: 0 12px; - display: block; -} - -img.screenshot { -} - -tt.descname, tt.descclassname, code.descname, code.descclassname { - font-size: 0.95em; -} - -tt.descname, code.descname { - padding-right: 0.08em; -} - -img.screenshot { - -moz-box-shadow: 2px 2px 4px #EEE; - -webkit-box-shadow: 2px 2px 4px #EEE; - box-shadow: 2px 2px 4px #EEE; -} - -table.docutils { - border: 1px solid #888; - -moz-box-shadow: 2px 2px 4px #EEE; - -webkit-box-shadow: 2px 2px 4px #EEE; - box-shadow: 2px 2px 4px #EEE; -} - -table.docutils td, table.docutils th { - border: 1px solid #888; - padding: 0.25em 0.7em; -} - -table.field-list, table.footnote { - border: none; - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} - -table.footnote { - margin: 15px 0; - width: 100%; - border: 1px solid #EEE; - background: #FDFDFD; - font-size: 0.9em; -} - -table.footnote + table.footnote { - margin-top: -15px; - border-top: none; -} - -table.field-list th { - padding: 0 0.8em 0 0; -} - -table.field-list td { - padding: 0; -} - -table.field-list p { - margin-bottom: 0.8em; -} - -/* Cloned from - * https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68 - */ -.field-name { - -moz-hyphens: manual; - -ms-hyphens: manual; - -webkit-hyphens: manual; - hyphens: manual; -} - -table.footnote td.label { - width: .1px; - padding: 0.3em 0 0.3em 0.5em; -} - -table.footnote td { - padding: 0.3em 0.5em; -} - -dl { - margin: 0; - padding: 0; -} - -dl dd { - margin-left: 30px; -} - -blockquote { - margin: 0 0 0 30px; - padding: 0; -} - -ul, ol { - /* Matches the 30px from the narrow-screen "li > ul" selector below */ - margin: 10px 0 10px 30px; - padding: 0; -} - -pre { - background: #fee; - padding: 7px 30px; - margin: 15px 0px; - line-height: 1.3em; -} - -div.viewcode-block:target { - background: #ffd; -} - -dl pre, blockquote pre, li pre { - margin-left: 0; - padding-left: 30px; -} - -tt, code { - background-color: #ecf0f3; - color: #222; - /* padding: 1px 2px; */ -} - -tt.xref, code.xref, a tt { - background-color: #FBFBFB; - border-bottom: 1px solid #fff; -} - -a.reference { - text-decoration: none; - border-bottom: 1px dotted #004B6B; -} - -/* Don't put an underline on images */ -a.image-reference, a.image-reference:hover { - border-bottom: none; -} - -a.reference:hover { - border-bottom: 1px solid #6D4100; -} - -a.footnote-reference { - text-decoration: none; - font-size: 0.7em; - vertical-align: top; - border-bottom: 1px dotted #004B6B; -} - -a.footnote-reference:hover { - border-bottom: 1px solid #6D4100; -} - -a:hover tt, a:hover code { - background: #EEE; -} - - -@media screen and (max-width: 870px) { - - div.sphinxsidebar { - display: none; - } - - div.document { - width: 100%; - - } - - div.documentwrapper { - margin-left: 0; - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - } - - div.bodywrapper { - margin-top: 0; - margin-right: 0; - margin-bottom: 0; - margin-left: 0; - } - - ul { - margin-left: 0; - } - - li > ul { - /* Matches the 30px from the "ul, ol" selector above */ - margin-left: 30px; - } - - .document { - width: auto; - } - - .footer { - width: auto; - } - - .bodywrapper { - margin: 0; - } - - .footer { - width: auto; - } - - .github { - display: none; - } - - - -} - - - -@media screen and (max-width: 875px) { - - body { - margin: 0; - padding: 20px 30px; - } - - div.documentwrapper { - float: none; - background: #fff; - } - - div.sphinxsidebar { - display: block; - float: none; - width: 102.5%; - margin: 50px -30px -20px -30px; - padding: 10px 20px; - background: #333; - color: #FFF; - } - - div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, - div.sphinxsidebar h3 a { - color: #fff; - } - - div.sphinxsidebar a { - color: #AAA; - } - - div.sphinxsidebar p.logo { - display: none; - } - - div.document { - width: 100%; - margin: 0; - } - - div.footer { - display: none; - } - - div.bodywrapper { - margin: 0; - } - - div.body { - min-height: 0; - padding: 0; - } - - .rtd_doc_footer { - display: none; - } - - .document { - width: auto; - } - - .footer { - width: auto; - } - - .footer { - width: auto; - } - - .github { - display: none; - } -} - - -/* misc. */ - -.revsys-inline { - display: none!important; -} - -/* Make nested-list/multi-paragraph items look better in Releases changelog - * pages. Without this, docutils' magical list fuckery causes inconsistent - * formatting between different release sub-lists. - */ -div#changelog > div.section > ul > li > p:only-child { - margin-bottom: 0; -} - -/* Hide fugly table cell borders in ..bibliography:: directive output */ -table.docutils.citation, table.docutils.citation td, table.docutils.citation th { - border: none; - /* Below needed in some edge cases; if not applied, bottom shadows appear */ - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} \ No newline at end of file diff --git a/doc/build/html/_static/basic.css b/doc/build/html/_static/basic.css deleted file mode 100644 index 19ced10..0000000 --- a/doc/build/html/_static/basic.css +++ /dev/null @@ -1,665 +0,0 @@ -/* - * basic.css - * ~~~~~~~~~ - * - * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; - word-wrap: break-word; - overflow-wrap : break-word; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar #searchbox input[type="text"] { - float: left; - width: 80%; - padding: 0.25em; - box-sizing: border-box; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - float: left; - width: 20%; - border-left: none; - padding: 0.25em; - box-sizing: border-box; -} - - -img { - border: 0; - max-width: 100%; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin: 10px 0 0 20px; - padding: 0; -} - -ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li div.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; - margin-left: auto; - margin-right: auto; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable ul { - margin-top: 0; - margin-bottom: 0; - list-style-type: none; -} - -table.indextable > tbody > tr > td > ul { - padding-left: 0em; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- domain module index --------------------------------------------------- */ - -table.modindextable td { - padding: 2px; - border-collapse: collapse; -} - -/* -- general body styles --------------------------------------------------- */ - -div.body { - min-width: 450px; - max-width: 800px; -} - -div.body p, div.body dd, div.body li, div.body blockquote { - -moz-hyphens: auto; - -ms-hyphens: auto; - -webkit-hyphens: auto; - hyphens: auto; -} - -a.headerlink { - visibility: hidden; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink, -caption:hover > a.headerlink, -p.caption:hover > a.headerlink, -div.code-block-caption:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px 7px 0 7px; - background-color: #ffe; - width: 40%; - float: right; -} - -p.sidebar-title { - font-weight: bold; -} - -/* -- topics ---------------------------------------------------------------- */ - -div.topic { - border: 1px solid #ccc; - padding: 7px 7px 0 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -div.admonition dl { - margin-bottom: 0; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - border: 0; - border-collapse: collapse; -} - -table.align-center { - margin-left: auto; - margin-right: auto; -} - -table caption span.caption-number { - font-style: italic; -} - -table caption span.caption-text { -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -table.footnote td, table.footnote th { - border: 0 !important; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -/* -- figures --------------------------------------------------------------- */ - -div.figure { - margin: 0.5em; - padding: 0.5em; -} - -div.figure p.caption { - padding: 0.3em; -} - -div.figure p.caption span.caption-number { - font-style: italic; -} - -div.figure p.caption span.caption-text { -} - -/* -- field list styles ----------------------------------------------------- */ - -table.field-list td, table.field-list th { - border: 0 !important; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.field-name { - -moz-hyphens: manual; - -ms-hyphens: manual; - -webkit-hyphens: manual; - hyphens: manual; -} - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -dl { - margin-bottom: 15px; -} - -dd p { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dt:target, span.highlighted { - background-color: #fbe54e; -} - -rect.highlighted { - fill: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.optional { - font-size: 1.3em; -} - -.sig-paren { - font-size: larger; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -span.pre { - -moz-hyphens: none; - -ms-hyphens: none; - -webkit-hyphens: none; - hyphens: none; -} - -td.linenos pre { - padding: 5px 0px; - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - margin-left: 0.5em; -} - -table.highlighttable td { - padding: 0 0.5em 0 0.5em; -} - -div.code-block-caption { - padding: 2px 5px; - font-size: small; -} - -div.code-block-caption code { - background-color: transparent; -} - -div.code-block-caption + div > div.highlight > pre { - margin-top: 0; -} - -div.code-block-caption span.caption-number { - padding: 0.1em 0.3em; - font-style: italic; -} - -div.code-block-caption span.caption-text { -} - -div.literal-block-wrapper { - padding: 1em 1em 0; -} - -div.literal-block-wrapper div.highlight { - margin: 0; -} - -code.descname { - background-color: transparent; - font-weight: bold; - font-size: 1.2em; -} - -code.descclassname { - background-color: transparent; -} - -code.xref, a code { - background-color: transparent; - font-weight: bold; -} - -h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -span.eqno a.headerlink { - position: relative; - left: 0px; - z-index: 1; -} - -div.math:hover a.headerlink { - visibility: visible; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/doc/build/html/_static/comment-bright.png b/doc/build/html/_static/comment-bright.png deleted file mode 100644 index 15e27ed..0000000 Binary files a/doc/build/html/_static/comment-bright.png and /dev/null differ diff --git a/doc/build/html/_static/comment-close.png b/doc/build/html/_static/comment-close.png deleted file mode 100644 index 4d91bcf..0000000 Binary files a/doc/build/html/_static/comment-close.png and /dev/null differ diff --git a/doc/build/html/_static/comment.png b/doc/build/html/_static/comment.png deleted file mode 100644 index dfbc0cb..0000000 Binary files a/doc/build/html/_static/comment.png and /dev/null differ diff --git a/doc/build/html/_static/custom.css b/doc/build/html/_static/custom.css deleted file mode 100644 index a088ba6..0000000 --- a/doc/build/html/_static/custom.css +++ /dev/null @@ -1,25 +0,0 @@ -/* This file is for theme alabaster custom. */ - -/* -http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html -set backquotes: ``text`` for code samples more color red -*/ -tt, code { - background-color: #ecf0f3; - color: #842; - /* padding: 1px 2px; */ -} - -/* -set 'Note:' etc size less than titles -*/ -div.admonition p.admonition-title { - font-family: {{ theme_head_font_family }}; - font-weight: normal; - font-size: 16px; - margin: 0 0 10px 0; - padding: 0; - line-height: 1; -} - - diff --git a/doc/build/html/_static/doctools.js b/doc/build/html/_static/doctools.js deleted file mode 100644 index d892892..0000000 --- a/doc/build/html/_static/doctools.js +++ /dev/null @@ -1,313 +0,0 @@ -/* - * doctools.js - * ~~~~~~~~~~~ - * - * Sphinx JavaScript utilities for all documentation. - * - * :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/** - * select a different prefix for underscore - */ -$u = _.noConflict(); - -/** - * make the code below compatible with browsers without - * an installed firebug like debugger -if (!window.console || !console.firebug) { - var names = ["log", "debug", "info", "warn", "error", "assert", "dir", - "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", - "profile", "profileEnd"]; - window.console = {}; - for (var i = 0; i < names.length; ++i) - window.console[names[i]] = function() {}; -} - */ - -/** - * small helper function to urldecode strings - */ -jQuery.urldecode = function(x) { - return decodeURIComponent(x).replace(/\+/g, ' '); -}; - -/** - * small helper function to urlencode strings - */ -jQuery.urlencode = encodeURIComponent; - -/** - * This function returns the parsed url parameters of the - * current request. Multiple values per key are supported, - * it will always return arrays of strings for the value parts. - */ -jQuery.getQueryParameters = function(s) { - if (typeof s === 'undefined') - s = document.location.search; - var parts = s.substr(s.indexOf('?') + 1).split('&'); - var result = {}; - for (var i = 0; i < parts.length; i++) { - var tmp = parts[i].split('=', 2); - var key = jQuery.urldecode(tmp[0]); - var value = jQuery.urldecode(tmp[1]); - if (key in result) - result[key].push(value); - else - result[key] = [value]; - } - return result; -}; - -/** - * highlight a given string on a jquery object by wrapping it in - * span elements with the given class name. - */ -jQuery.fn.highlightText = function(text, className) { - function highlight(node, addItems) { - if (node.nodeType === 3) { - var val = node.nodeValue; - var pos = val.toLowerCase().indexOf(text); - if (pos >= 0 && - !jQuery(node.parentNode).hasClass(className) && - !jQuery(node.parentNode).hasClass("nohighlight")) { - var span; - var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.className = className; - } - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - if (isInSVG) { - var bbox = span.getBBox(); - var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute('class', className); - var parentOfText = node.parentNode.parentNode; - addItems.push({ - "parent": node.parentNode, - "target": rect}); - } - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this, addItems); - }); - } - } - var addItems = []; - var result = this.each(function() { - highlight(this, addItems); - }); - for (var i = 0; i < addItems.length; ++i) { - jQuery(addItems[i].parent).before(addItems[i].target); - } - return result; -}; - -/* - * backward compatibility for jQuery.browser - * This will be supported until firefox bug is fixed. - */ -if (!jQuery.browser) { - jQuery.uaMatch = function(ua) { - ua = ua.toLowerCase(); - - var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || - /(webkit)[ \/]([\w.]+)/.exec(ua) || - /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || - /(msie) ([\w.]+)/.exec(ua) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || - []; - - return { - browser: match[ 1 ] || "", - version: match[ 2 ] || "0" - }; - }; - jQuery.browser = {}; - jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; -} - -/** - * Small JavaScript module for the documentation. - */ -var Documentation = { - - init : function() { - this.fixFirefoxAnchorBug(); - this.highlightSearchWords(); - this.initIndexTable(); - - }, - - /** - * i18n support - */ - TRANSLATIONS : {}, - PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, - LOCALE : 'unknown', - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext : function(string) { - var translated = Documentation.TRANSLATIONS[string]; - if (typeof translated === 'undefined') - return string; - return (typeof translated === 'string') ? translated : translated[0]; - }, - - ngettext : function(singular, plural, n) { - var translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated === 'undefined') - return (n == 1) ? singular : plural; - return translated[Documentation.PLURALEXPR(n)]; - }, - - addTranslations : function(catalog) { - for (var key in catalog.messages) - this.TRANSLATIONS[key] = catalog.messages[key]; - this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); - this.LOCALE = catalog.locale; - }, - - /** - * add context elements like header anchor links - */ - addContextElements : function() { - $('div[id] > :header:first').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this headline')). - appendTo(this); - }); - $('dt[id]').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this definition')). - appendTo(this); - }); - }, - - /** - * workaround a firefox stupidity - * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 - */ - fixFirefoxAnchorBug : function() { - if (document.location.hash && $.browser.mozilla) - window.setTimeout(function() { - document.location.href += ''; - }, 10); - }, - - /** - * highlight the search words provided in the url in the text - */ - highlightSearchWords : function() { - var params = $.getQueryParameters(); - var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; - if (terms.length) { - var body = $('div.body'); - if (!body.length) { - body = $('body'); - } - window.setTimeout(function() { - $.each(terms, function() { - body.highlightText(this.toLowerCase(), 'highlighted'); - }); - }, 10); - $('') - .appendTo($('#searchbox')); - } - }, - - /** - * init the domain index toggle buttons - */ - initIndexTable : function() { - var togglers = $('img.toggler').click(function() { - var src = $(this).attr('src'); - var idnum = $(this).attr('id').substr(7); - $('tr.cg-' + idnum).toggle(); - if (src.substr(-9) === 'minus.png') - $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); - else - $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); - }).css('display', ''); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { - togglers.click(); - } - }, - - /** - * helper function to hide the search marks again - */ - hideSearchWords : function() { - $('#searchbox .highlight-link').fadeOut(300); - $('span.highlighted').removeClass('highlighted'); - }, - - /** - * make the url absolute - */ - makeURL : function(relativeURL) { - return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; - }, - - /** - * get the current relative url - */ - getCurrentURL : function() { - var path = document.location.pathname; - var parts = path.split(/\//); - $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { - if (this === '..') - parts.pop(); - }); - var url = parts.join('/'); - return path.substring(url.lastIndexOf('/') + 1, path.length - 1); - }, - - initOnKeyListeners: function() { - $(document).keyup(function(event) { - var activeElementType = document.activeElement.tagName; - // don't navigate when in search box or textarea - if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') { - switch (event.keyCode) { - case 37: // left - var prevHref = $('link[rel="prev"]').prop('href'); - if (prevHref) { - window.location.href = prevHref; - return false; - } - case 39: // right - var nextHref = $('link[rel="next"]').prop('href'); - if (nextHref) { - window.location.href = nextHref; - return false; - } - } - } - }); - } -}; - -// quick alias for translations -_ = Documentation.gettext; - -$(document).ready(function() { - Documentation.init(); -}); \ No newline at end of file diff --git a/doc/build/html/_static/documentation_options.js b/doc/build/html/_static/documentation_options.js deleted file mode 100644 index 47f9066..0000000 --- a/doc/build/html/_static/documentation_options.js +++ /dev/null @@ -1,9 +0,0 @@ -var DOCUMENTATION_OPTIONS = { - URL_ROOT: '', - VERSION: '5.0.0dev', - LANGUAGE: 'None', - COLLAPSE_INDEX: false, - FILE_SUFFIX: '.html', - HAS_SOURCE: true, - SOURCELINK_SUFFIX: '.txt' -}; \ No newline at end of file diff --git a/doc/build/html/_static/down-pressed.png b/doc/build/html/_static/down-pressed.png deleted file mode 100644 index 5756c8c..0000000 Binary files a/doc/build/html/_static/down-pressed.png and /dev/null differ diff --git a/doc/build/html/_static/down.png b/doc/build/html/_static/down.png deleted file mode 100644 index 1b3bdad..0000000 Binary files a/doc/build/html/_static/down.png and /dev/null differ diff --git a/doc/build/html/_static/file.png b/doc/build/html/_static/file.png deleted file mode 100644 index a858a41..0000000 Binary files a/doc/build/html/_static/file.png and /dev/null differ diff --git a/doc/build/html/_static/jquery-3.2.1.js b/doc/build/html/_static/jquery-3.2.1.js deleted file mode 100644 index d2d8ca4..0000000 --- a/doc/build/html/_static/jquery-3.2.1.js +++ /dev/null @@ -1,10253 +0,0 @@ -/*! - * jQuery JavaScript Library v3.2.1 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2017-03-20T18:59Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var document = window.document; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var concat = arr.concat; - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - - - - function DOMEval( code, doc ) { - doc = doc || document; - - var script = doc.createElement( "script" ); - - script.text = code; - doc.head.appendChild( script ).parentNode.removeChild( script ); - } -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.2.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android <=4.0 only - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - - if ( copyIsArray ) { - copyIsArray = false; - clone = src && Array.isArray( src ) ? src : []; - - } else { - clone = src && jQuery.isPlainObject( src ) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isFunction: function( obj ) { - return jQuery.type( obj ) === "function"; - }, - - isWindow: function( obj ) { - return obj != null && obj === obj.window; - }, - - isNumeric: function( obj ) { - - // As of jQuery 3.0, isNumeric is limited to - // strings and numbers (primitives or objects) - // that can be coerced to finite numbers (gh-2662) - var type = jQuery.type( obj ); - return ( type === "number" || type === "string" ) && - - // parseFloat NaNs numeric-cast false positives ("") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - !isNaN( obj - parseFloat( obj ) ); - }, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - - /* eslint-disable no-unused-vars */ - // See https://github.com/eslint/eslint/issues/6125 - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; - }, - - // Evaluates a script in a global context - globalEval: function( code ) { - DOMEval( code ); - }, - - // Convert dashed to camelCase; used by the css and data modules - // Support: IE <=9 - 11, Edge 12 - 13 - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // Support: Android <=4.0 only - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var tmp, args, proxy; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: Date.now, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), -function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -} ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.3 - * https://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-08-08 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - disabledAncestor = addCombinator( - function( elem ) { - return elem.disabled === true && ("form" in elem || "label" in elem); - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - - // ID selector - if ( (m = match[1]) ) { - - // Document context - if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !compilerCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - - if ( nodeType !== 1 ) { - newContext = context; - newSelector = selector; - - // qSA looks outside Element context, which is not what we want - // Thanks to Andrew Dupont for this workaround technique - // Support: IE <=8 - // Exclude object elements - } else if ( context.nodeName.toLowerCase() !== "object" ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", (nid = expando) ); - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[i] = "#" + nid + " " + toSelector( groups[i] ); - } - newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement("fieldset"); - - try { - return !!fn( el ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - disabledAncestor( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( preferredDoc !== document && - (subWindow = document.defaultView) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( el ) { - el.className = "i"; - return !el.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( el ) { - el.appendChild( document.createComment("") ); - return !el.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); - - // ID filter and find - if ( support.getById ) { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( (elem = elems[i++]) ) { - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( el ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll(":enabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll(":disabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( el ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - !compilerCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return (sel + "").replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - // Use previously-cached element index if available - if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( (oldCache = uniqueCache[ key ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context === document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - if ( !context && elem.ownerDocument !== document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( el ) { - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( el ) { - return el.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -}; -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -var risSimple = /^.[^:#\[\.,]*$/; - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Simple selector that can be filtered directly, removing non-Elements - if ( risSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - // Complex selector, compare the two sets, removing non-Elements - qualifier = jQuery.filter( qualifier, elements ); - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1; - } ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( nodeName( elem, "iframe" ) ) { - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( jQuery.isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && jQuery.isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( jQuery.isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the master Deferred - master = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - master.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( master.state() === "pending" || - jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return master.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); - } - - return master.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ jQuery.camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ jQuery.camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( jQuery.camelCase ); - } else { - key = jQuery.camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - jQuery.contains( elem.ownerDocument, elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - -var swap = function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, - scale = 1, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - do { - - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - initialInUnit = initialInUnit / scale; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Update scale, tolerating zero or NaN from tween.cur() - // Break the loop if scale is unchanged or perfect, or if we've just had enough. - } while ( - scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations - ); - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); - -var rscriptType = ( /^$|\/(?:java|ecma)script/i ); - - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // Support: IE <=9 only - option: [ 1, "" ], - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], - tr: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - _default: [ 0, "", "" ] -}; - -// Support: IE <=9 only -wrapMap.optgroup = wrapMap.option; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, contains, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -} )(); -var documentElement = document.documentElement; - - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 only -// See #13393 for more info -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = {}; - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - // Make a writable jQuery.Event from the native event object - var event = jQuery.event.fix( nativeEvent ); - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or 2) have namespace(s) - // a subset or equal to those in the bound event (both can have no namespace). - if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: jQuery.isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - this.focus(); - return false; - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - - which: function( event ) { - var button = event.button; - - // Add which for key events - if ( event.which == null && rkeyEvent.test( event.type ) ) { - return event.charCode != null ? event.charCode : event.keyCode; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { - if ( button & 1 ) { - return 1; - } - - if ( button & 2 ) { - return 3; - } - - if ( button & 4 ) { - return 2; - } - - return 0; - } - - return event.which; - } -}, jQuery.event.addProp ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - /* eslint-disable max-len */ - - // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, - - /* eslint-enable */ - - // Support: IE <=10 - 11, Edge 12 - 13 - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( ">tbody", elem )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - - if ( match ) { - elem.type = match[ 1 ]; - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.access( src ); - pdataCur = dataPriv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( isFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = jQuery.contains( elem.ownerDocument, elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rmargin = ( /^margin/ ); - -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - div.style.cssText = - "box-sizing:border-box;" + - "position:relative;display:block;" + - "margin:auto;border:1px;padding:1px;" + - "top:1%;width:50%"; - div.innerHTML = ""; - documentElement.appendChild( container ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = divStyle.marginLeft === "2px"; - boxSizingReliableVal = divStyle.width === "4px"; - - // Support: Android 4.0 - 4.3 only - // Some styles come back with percentage values, even though they shouldn't - div.style.marginRight = "50%"; - pixelMarginRightVal = divStyle.marginRight === "4px"; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" + - "padding:0;margin-top:1px;position:absolute"; - container.appendChild( div ); - - jQuery.extend( support, { - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelMarginRight: function() { - computeStyleTests(); - return pixelMarginRightVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }, - - cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style; - -// Return a css property mapped to a potentially vendor prefixed property -function vendorPropName( name ) { - - // Shortcut for names that are not vendor prefixed - if ( name in emptyStyle ) { - return name; - } - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a property mapped along what jQuery.cssProps suggests or to -// a vendor prefixed property. -function finalPropName( name ) { - var ret = jQuery.cssProps[ name ]; - if ( !ret ) { - ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; - } - return ret; -} - -function setPositiveNumber( elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i, - val = 0; - - // If we already have the right measurement, avoid augmentation - if ( extra === ( isBorderBox ? "border" : "content" ) ) { - i = 4; - - // Otherwise initialize for horizontal or vertical properties - } else { - i = name === "width" ? 1 : 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // At this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - - // At this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // At this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with computed style - var valueIsBorderBox, - styles = getStyles( elem ), - val = curCSS( elem, name, styles ), - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test( val ) ) { - return val; - } - - // Check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && - ( support.boxSizingReliable() || val === elem.style[ name ] ); - - // Fall back to offsetWidth/Height when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - if ( val === "auto" ) { - val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ]; - } - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - - // Use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - "float": "cssFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - if ( type === "number" ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = jQuery.camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( i, name ) { - jQuery.cssHooks[ name ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, name, extra ); - } ) : - getWidthOrHeight( elem, name, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = extra && getStyles( elem ), - subtract = extra && augmentWidthOrHeight( - elem, - name, - extra, - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - styles - ); - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ name ] = value; - value = jQuery.css( elem, name ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( !rmargin.test( prefix ) ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && - ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || - jQuery.cssHooks[ tween.prop ] ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = jQuery.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 13 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = jQuery.camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( jQuery.isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - jQuery.proxy( result.stop, result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( jQuery.isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( jQuery.isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - jQuery.isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( jQuery.isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = jQuery.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( jQuery.isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( typeof value === "string" && value ) { - classes = value.match( rnothtmlwhite ) || []; - - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( jQuery.isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - if ( typeof value === "string" && value ) { - classes = value.match( rnothtmlwhite ) || []; - - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( type === "string" ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = value.match( rnothtmlwhite ) || []; - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, isFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - elem[ type ](); - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + - "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + - "change select submit keydown keypress keyup contextmenu" ).split( " " ), - function( i, name ) { - - // Handle event binding - jQuery.fn[ name ] = function( data, fn ) { - return arguments.length > 0 ? - this.on( name, null, data, fn ) : - this.trigger( name ); - }; -} ); - -jQuery.fn.extend( { - hover: function( fnOver, fnOut ) { - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); - } -} ); - - - - -support.focusin = "onfocusin" in window; - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = jQuery.now(); - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && jQuery.type( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = jQuery.isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ) - .filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ) - .map( function( i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( jQuery.isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; - } - } - match = responseHeaders[ key.toLowerCase() ]; - } - return match == null ? null : match; - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 13 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available, append data to url - if ( s.data ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( jQuery.isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - - -jQuery._evalUrl = function( url ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - "throws": true - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( jQuery.isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain requests - if ( s.crossDomain ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( " - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/apidoc/src.colorama.html b/doc/build/html/commands/apidoc/src.colorama.html deleted file mode 100644 index 2ca2211..0000000 --- a/doc/build/html/commands/apidoc/src.colorama.html +++ /dev/null @@ -1,680 +0,0 @@ - - - - - - - - src.colorama package — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

src.colorama package¶

-
-

Submodules¶

-
-
-

src.colorama.ansi module¶

-

This module generates ANSI character codes to printing colors to terminals. -See: http://en.wikipedia.org/wiki/ANSI_escape_code

-
-
-class src.colorama.ansi.AnsiBack[source]¶
-

Bases: src.colorama.ansi.AnsiCodes

-
-
-BLACK = 40¶
-
- -
-
-BLUE = 44¶
-
- -
-
-CYAN = 46¶
-
- -
-
-GREEN = 42¶
-
- -
-
-LIGHTBLACK_EX = 100¶
-
- -
-
-LIGHTBLUE_EX = 104¶
-
- -
-
-LIGHTCYAN_EX = 106¶
-
- -
-
-LIGHTGREEN_EX = 102¶
-
- -
-
-LIGHTMAGENTA_EX = 105¶
-
- -
-
-LIGHTRED_EX = 101¶
-
- -
-
-LIGHTWHITE_EX = 107¶
-
- -
-
-LIGHTYELLOW_EX = 103¶
-
- -
-
-MAGENTA = 45¶
-
- -
-
-RED = 41¶
-
- -
-
-RESET = 49¶
-
- -
-
-WHITE = 47¶
-
- -
-
-YELLOW = 43¶
-
- -
- -
-
-class src.colorama.ansi.AnsiCodes[source]¶
-

Bases: object

-
- -
-
-class src.colorama.ansi.AnsiCursor[source]¶
-

Bases: object

-
-
-BACK(n=1)[source]¶
-
- -
-
-DOWN(n=1)[source]¶
-
- -
-
-FORWARD(n=1)[source]¶
-
- -
-
-POS(x=1, y=1)[source]¶
-
- -
-
-UP(n=1)[source]¶
-
- -
- -
-
-class src.colorama.ansi.AnsiFore[source]¶
-

Bases: src.colorama.ansi.AnsiCodes

-
-
-BLACK = 30¶
-
- -
-
-BLUE = 34¶
-
- -
-
-CYAN = 36¶
-
- -
-
-GREEN = 32¶
-
- -
-
-LIGHTBLACK_EX = 90¶
-
- -
-
-LIGHTBLUE_EX = 94¶
-
- -
-
-LIGHTCYAN_EX = 96¶
-
- -
-
-LIGHTGREEN_EX = 92¶
-
- -
-
-LIGHTMAGENTA_EX = 95¶
-
- -
-
-LIGHTRED_EX = 91¶
-
- -
-
-LIGHTWHITE_EX = 97¶
-
- -
-
-LIGHTYELLOW_EX = 93¶
-
- -
-
-MAGENTA = 35¶
-
- -
-
-RED = 31¶
-
- -
-
-RESET = 39¶
-
- -
-
-WHITE = 37¶
-
- -
-
-YELLOW = 33¶
-
- -
- -
-
-class src.colorama.ansi.AnsiStyle[source]¶
-

Bases: src.colorama.ansi.AnsiCodes

-
-
-BRIGHT = 1¶
-
- -
-
-DIM = 2¶
-
- -
-
-NORMAL = 22¶
-
- -
-
-RESET_ALL = 0¶
-
- -
- -
-
-src.colorama.ansi.clear_line(mode=2)[source]¶
-
- -
-
-src.colorama.ansi.clear_screen(mode=2)[source]¶
-
- -
-
-src.colorama.ansi.code_to_chars(code)[source]¶
-
- -
-
-src.colorama.ansi.set_title(title)[source]¶
-
- -
-
-

src.colorama.ansitowin32 module¶

-
-
-class src.colorama.ansitowin32.AnsiToWin32(wrapped, convert=None, strip=None, autoreset=False)[source]¶
-

Bases: object

-

Implements a ‘write()’ method which, on Windows, will strip ANSI character -sequences from the text, and if outputting to a tty, will convert them into -win32 function calls.

-
-
-ANSI_CSI_RE = <_sre.SRE_Pattern object>¶
-
- -
-
-ANSI_OSC_RE = <_sre.SRE_Pattern object>¶
-
- -
-
-call_win32(command, params)[source]¶
-
- -
-
-convert_ansi(paramstring, command)[source]¶
-
- -
-
-convert_osc(text)[source]¶
-
- -
-
-extract_params(command, paramstring)[source]¶
-
- -
-
-get_win32_calls()[source]¶
-
- -
-
-reset_all()[source]¶
-
- -
-
-should_wrap()[source]¶
-

True if this class is actually needed. If false, then the output -stream will not be affected, nor will win32 calls be issued, so -wrapping stdout is not actually required. This will generally be -False on non-Windows platforms, unless optional functionality like -autoreset has been requested using kwargs to init()

-
- -
-
-write(text)[source]¶
-
- -
-
-write_and_convert(text)[source]¶
-

Write the given text to our wrapped stream, stripping any ANSI -sequences from the text, and optionally converting them into win32 -calls.

-
- -
-
-write_plain_text(text, start, end)[source]¶
-
- -
- -
-
-class src.colorama.ansitowin32.StreamWrapper(wrapped, converter)[source]¶
-

Bases: object

-

Wraps a stream (such as stdout), acting as a transparent proxy for all -attribute access apart from method ‘write()’, which is delegated to our -Converter instance.

-
-
-write(text)[source]¶
-
- -
- -
-
-src.colorama.ansitowin32.is_a_tty(stream)[source]¶
-
- -
-
-src.colorama.ansitowin32.is_stream_closed(stream)[source]¶
-
- -
-
-

src.colorama.initialise module¶

-
-
-src.colorama.initialise.colorama_text(*args, **kwds)[source]¶
-
- -
-
-src.colorama.initialise.deinit()[source]¶
-
- -
-
-src.colorama.initialise.init(autoreset=False, convert=None, strip=None, wrap=True)[source]¶
-
- -
-
-src.colorama.initialise.reinit()[source]¶
-
- -
-
-src.colorama.initialise.reset_all()[source]¶
-
- -
-
-src.colorama.initialise.wrap_stream(stream, convert, strip, autoreset, wrap)[source]¶
-
- -
-
-

src.colorama.win32 module¶

-
-
-src.colorama.win32.SetConsoleTextAttribute(*_)[source]¶
-
- -
-
-src.colorama.win32.winapi_test(*_)[source]¶
-
- -
-
-

src.colorama.winterm module¶

-
-
-class src.colorama.winterm.WinColor[source]¶
-

Bases: object

-
-
-BLACK = 0¶
-
- -
-
-BLUE = 1¶
-
- -
-
-CYAN = 3¶
-
- -
-
-GREEN = 2¶
-
- -
-
-GREY = 7¶
-
- -
-
-MAGENTA = 5¶
-
- -
-
-RED = 4¶
-
- -
-
-YELLOW = 6¶
-
- -
- -
-
-class src.colorama.winterm.WinStyle[source]¶
-

Bases: object

-
-
-BRIGHT = 8¶
-
- -
-
-BRIGHT_BACKGROUND = 128¶
-
- -
-
-NORMAL = 0¶
-
- -
- -
-
-class src.colorama.winterm.WinTerm[source]¶
-

Bases: object

-
-
-back(back=None, light=False, on_stderr=False)[source]¶
-
- -
-
-cursor_adjust(x, y, on_stderr=False)[source]¶
-
- -
-
-erase_line(mode=0, on_stderr=False)[source]¶
-
- -
-
-erase_screen(mode=0, on_stderr=False)[source]¶
-
- -
-
-fore(fore=None, light=False, on_stderr=False)[source]¶
-
- -
-
-get_attrs()[source]¶
-
- -
-
-get_position(handle)[source]¶
-
- -
-
-reset_all(on_stderr=None)[source]¶
-
- -
-
-set_attrs(value)[source]¶
-
- -
-
-set_console(attrs=None, on_stderr=False)[source]¶
-
- -
-
-set_cursor_position(position=None, on_stderr=False)[source]¶
-
- -
-
-set_title(title)[source]¶
-
- -
-
-style(style=None, on_stderr=False)[source]¶
-
- -
- -
-
-

Module contents¶

-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/apidoc/src.html b/doc/build/html/commands/apidoc/src.html deleted file mode 100644 index c9c101b..0000000 --- a/doc/build/html/commands/apidoc/src.html +++ /dev/null @@ -1,5114 +0,0 @@ - - - - - - - - src package — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

src package¶

- -
-

Submodules¶

-
-
-

src.ElementTree module¶

-
-
-src.ElementTree.Comment(text=None)[source]¶
-
- -
-
-src.ElementTree.dump(elem)[source]¶
-
- -
-
-src.ElementTree.Element(tag, attrib={}, **extra)[source]¶
-
- -
-
-class src.ElementTree.ElementTree(element=None, file=None)[source]¶
-
-
-find(path)[source]¶
-
- -
-
-findall(path)[source]¶
-
- -
-
-findtext(path, default=None)[source]¶
-
- -
-
-getiterator(tag=None)[source]¶
-
- -
-
-getroot()[source]¶
-
- -
-
-parse(source, parser=None)[source]¶
-
- -
-
-write(file, encoding='us-ascii')[source]¶
-
- -
- -
-
-src.ElementTree.fromstring(text)¶
-
- -
-
-src.ElementTree.iselement(element)[source]¶
-
- -
-
-class src.ElementTree.iterparse(source, events=None)[source]¶
-
-
-next()[source]¶
-
- -
- -
-
-src.ElementTree.parse(source, parser=None)[source]¶
-
- -
-
-src.ElementTree.PI(target, text=None)¶
-
- -
-
-src.ElementTree.ProcessingInstruction(target, text=None)[source]¶
-
- -
-
-class src.ElementTree.QName(text_or_uri, tag=None)[source]¶
-
- -
-
-src.ElementTree.SubElement(parent, tag, attrib={}, **extra)[source]¶
-
- -
-
-src.ElementTree.tostring(element, encoding=None)[source]¶
-
- -
-
-class src.ElementTree.TreeBuilder(element_factory=None)[source]¶
-
-
-close()[source]¶
-
- -
-
-data(data)[source]¶
-
- -
-
-end(tag)[source]¶
-
- -
-
-start(tag, attrs)[source]¶
-
- -
- -
-
-src.ElementTree.XML(text)[source]¶
-
- -
-
-class src.ElementTree.XMLTreeBuilder(html=0, target=None)[source]¶
-
-
-close()[source]¶
-
- -
-
-doctype(name, pubid, system)[source]¶
-
- -
-
-feed(data)[source]¶
-
- -
- -
-
-

src.architecture module¶

-

In this file : all the stuff that can change with the architecture -on which SAT is running

-
-
-src.architecture.get_distrib_version(distrib, codes)[source]¶
-

Gets the version of the distribution

- --- - - - - - - - -
Parameters:
    -
  • str (distrib) – The distribution on which the version will be found.
  • -
  • L{Mapping} (codes) – The map containing distribution correlation table.
  • -
-
Returns:

The version of the distribution on which salomeTools is running, -regarding the distribution correlation table contained in codes -variable.

-
Return type:

str

-
-
- -
-
-src.architecture.get_distribution(codes)[source]¶
-

Gets the code for the distribution

- --- - - - - - - - -
Parameters:L{Mapping} (codes) – The map containing distribution correlation table.
Returns:The distribution on which salomeTools is running, regarding the -distribution correlation table contained in codes variable.
Return type:str
-
- -
-
-src.architecture.get_nb_proc()[source]¶
-
-
Gets the number of processors of the machine
-
on which salomeTools is running.
-
- --- - - - - - -
Returns:the number of processors.
Return type:str
-
- -
-
-src.architecture.get_python_version()[source]¶
-

Gets the version of the running python.

- --- - - - - - -
Returns:the version of the running python.
Return type:str
-
- -
-
-src.architecture.get_user()[source]¶
-

method that gets the username that launched sat

- --- - - - -
Return type:str
-
- -
-
-src.architecture.is_windows()[source]¶
-

method that checks windows OS

- --- - - - -
Return type:boolean
-
- -
-
-

src.compilation module¶

-
-
-class src.compilation.Builder(config, logger, product_info, options=OptResult( ), check_src=True)[source]¶
-

Class to handle all construction steps, like cmake, configure, make, …

-
-
-build_configure(options='')[source]¶
-
- -
-
-check(command='')[source]¶
-
- -
-
-cmake(options='')[source]¶
-
- -
-
-complete_environment(make_options)[source]¶
-
- -
-
-configure(options='')[source]¶
-
- -
-
-do_batch_script_build(script, nb_proc)[source]¶
-
- -
-
-do_default_build(build_conf_options='', configure_options='', show_warning=True)[source]¶
-
- -
-
-do_python_script_build(script, nb_proc)[source]¶
-
- -
-
-do_script_build(script, number_of_proc=0)[source]¶
-
- -
-
-hack_libtool()[source]¶
-
- -
-
-install()[source]¶
-
- -
-
-log(text, level, showInfo=True)[source]¶
-
- -
-
-log_command(command)[source]¶
-
- -
-
-make(nb_proc, make_opt='')[source]¶
-
- -
-
-prepare()[source]¶
-
- -
-
-put_txt_log_in_appli_log_dir(file_name)[source]¶
-
-
Put the txt log (that contain the system logs, like make command
-
output) in the directory <APPLICATION DIR>/LOGS/<product_name>/
-
- --- - - - -
Parameters:Str (file_name) – the name of the file to write
-
- -
-
-wmake(nb_proc, opt_nb_proc=None)[source]¶
-
- -
- -
-
-

src.debug module¶

-

This file assume DEBUG functionalities use. -Print salomeTools debug messages in sys.stderr. -Show pretty print debug representation from instances of SAT classes -(pretty print src.pyconf.Config)

-
-
Warning: supposedly show messages in SAT development phase, not production
-

-
Usage:
-
>> import debug as DBG
-
>> DBG.write(“aTitle”, aVariable) # not shown in production
-
>> DBG.write(“aTitle”, aVariable, True) # unconditionaly shown (as show=True)
-

-
to set show message as development phase:
-
>> DBG.push_debug(True)
-

-
to set no show message as production phase:
-
>> DBG.push_debug(False)
-

-
to set show message temporary as development phase, only in a method:
-
>> def aMethodToDebug(…):
-
>> DBG.push_debug(True) #force show as appended status
-
>> etc. method code with some DBG.write()
-
>> DBG.pop_debug() #restore previous status (show or not show)
-
>> return
-

-
to set a message for future fix, as temporary problem to not forget:
-
DBG.tofix(“aTitle”, aVariable, True/False) #True/False in production shown, or not
-

-
in command line interface you could redirect stderr to file ‘myDebug.log’:
-
>> sat compile … 2> myDebug.log # only stderr
-
>> sat compile … &> myDebug.log # stdout and stderr
-
-
-
-class src.debug.InStream(buf='')[source]¶
-

Bases: StringIO.StringIO

-

utility class for pyconf.Config input iostream

-
- -
-
-class src.debug.OutStream(buf='')[source]¶
-

Bases: StringIO.StringIO

-

utility class for pyconf.Config output iostream

-
-
-close()[source]¶
-

because Config.__save__ calls close() stream as file -keep value before lost as self.value

-
- -
- -
-
-src.debug.format_color_exception(msg, limit=None, trace=None)[source]¶
-

Format a stack trace and the exception information. -as traceback.format_exception(), with color -with traceback only if (_debug) or (DBG._user in DBG._developpers)

-
- -
-
-src.debug.format_exception(msg, limit=None, trace=None)[source]¶
-

Format a stack trace and the exception information. -as traceback.format_exception(), without color -with traceback only if (_debug) or (DBG._user in DBG._developpers)

-
- -
-
-src.debug.getLocalEnv()[source]¶
-

get string for environment variables representation

-
- -
-
-src.debug.getStrConfigDbg(config)[source]¶
-

set string as saveConfigDbg, -as (path expression evaluation) for debug

-
- -
-
-src.debug.getStrConfigStd(config)[source]¶
-

set string as saveConfigStd, as file .pyconf

-
- -
-
-src.debug.indent(text, amount=2, ch=' ')[source]¶
-

indent multi lines message

-
- -
-
-src.debug.isTypeConfig(var)[source]¶
-

To know if var is instance from Config/pyconf

-
- -
-
-src.debug.pop_debug()[source]¶
-

restore previous debug outputs status

-
- -
-
-src.debug.push_debug(aBool)[source]¶
-

set debug outputs activated, or not

-
- -
-
-src.debug.saveConfigDbg(config, aStream, indent=0, path='')[source]¶
-

pyconf returns multilines (path expression evaluation) for debug

-
- -
-
-src.debug.saveConfigStd(config, aStream)[source]¶
-

returns as file .pyconf

-
- -
-
-src.debug.tofix(title, var='', force=None)[source]¶
-

write sys.stderr a message if _debug[-1]==True or optionaly force=True -use this only if no logger accessible for classic logger.warning(message)

-
- -
-
-src.debug.write(title, var='', force=None, fmt='\n#### DEBUG: %s:\n%s\n')[source]¶
-

write sys.stderr a message if _debug[-1]==True or optionaly force=True

-
- -
-
-

src.environment module¶

-
-
-class src.environment.Environ(environ=None)[source]¶
-

Class to manage the environment context

-
-
-append(key, value, sep=':')[source]¶
-

Same as append_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str or list (value) – the value(s) to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-append_value(key, value, sep=':')[source]¶
-

append value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str – the value to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-is_defined(key)[source]¶
-

Check if the key exists in the environment

- --- - - - -
Parameters:str (key) – the environment variable to check
-
- -
-
-prepend(key, value, sep=':')[source]¶
-

Same as prepend_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str or list (value) – the value(s) to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-prepend_value(key, value, sep=':')[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.environment.FileEnvWriter(config, logger, out_dir, src_root, env_info=None)[source]¶
-

Class to dump the environment to a file.

-
-
-write_cfgForPy_file(filename, additional_env={}, for_package=None, with_commercial=True)[source]¶
-

Append to current opened aFile a cfgForPy -environment (SALOME python launcher).

- --- - - - -
Parameters:
    -
  • str (for_package) – the file path
  • -
  • dict (additional_env) – a dictionary of additional variables -to add to the environment
  • -
  • str – If not None, produce a relative environment -designed for a package.
  • -
-
-
- -
-
-write_env_file(filename, forBuild, shell, for_package=None)[source]¶
-

Create an environment file.

- --- - - - - - - - -
Parameters:
    -
  • str (shell) – the file path
  • -
  • bool (forBuild) – if true, the build environment
  • -
  • str – the type of file wanted (.sh, .bat)
  • -
-
Returns:

The path to the generated file

-
Return type:

str

-
-
- -
- -
-
-class src.environment.SalomeEnviron(cfg, environ, forBuild=False, for_package=None, enable_simple_env_script=True)[source]¶
-

Class to manage the environment of SALOME.

-
-
-add_comment(comment)[source]¶
-

Add a commentary to the out stream (in case of file generation)

- --- - - - -
Parameters:str (comment) – the commentary to add
-
- -
-
-add_line(nb_line)[source]¶
-

Add empty lines to the out stream (in case of file generation)

- --- - - - -
Parameters:int (nb_line) – the number of empty lines to add
-
- -
-
-add_warning(warning)[source]¶
-

Add a warning to the out stream (in case of file generation)

- --- - - - -
Parameters:str (warning) – the warning to add
-
- -
-
-append(key, value, sep=':')[source]¶
-

append value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str – the value to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-dump(out)[source]¶
-

Write the environment to out

- --- - - - -
Parameters:file (out) – the stream where to write the environment
-
- -
-
-finish(required)[source]¶
-

Add a final instruction in the out file (in case of file generation)

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-get_names(lProducts)[source]¶
-

Get the products name to add in SALOME_MODULES environment variable -It is the name of the product, except in the case where the is a -component name. And it has to be in SALOME_MODULES variable only -if the product has the property has_salome_hui = “yes”

- --- - - - -
Parameters:list (lProducts) – List of products to potentially add
-
- -
-
-is_defined(key)[source]¶
-

Check if the key exists in the environment

- --- - - - -
Parameters:str (key) – the environment variable to check
-
- -
-
-load_cfg_environment(cfg_env)[source]¶
-

Loads environment defined in cfg_env

- --- - - - -
Parameters:Config (cfg_env) – A config containing an environment
-
- -
-
-prepend(key, value, sep=':')[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-run_env_script(product_info, logger=None, native=False)[source]¶
-

Runs an environment script.

- --- - - - -
Parameters:
    -
  • Config (product_info) – The product description
  • -
  • Logger (logger) – The logger instance to display messages
  • -
  • Boolean (native) – if True load set_native_env instead of set_env
  • -
-
-
- -
-
-run_simple_env_script(script_path, logger=None)[source]¶
-

Runs an environment script. Same as run_env_script, but with a -script path as parameter.

- --- - - - -
Parameters:
    -
  • str (script_path) – a path to an environment script
  • -
  • Logger (logger) – The logger instance to display messages
  • -
-
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
-
-set_a_product(product, logger)[source]¶
-

Sets the environment of a product.

- --- - - - -
Parameters:
    -
  • str (product) – The product name
  • -
  • Logger (logger) – The logger instance to display messages
  • -
-
-
- -
-
-set_application_env(logger)[source]¶
-

Sets the environment defined in the APPLICATION file.

- --- - - - -
Parameters:Logger (logger) – The logger instance to display messages
-
- -
-
-set_cpp_env(product_info)[source]¶
-

Sets the generic environment for a SALOME cpp product.

- --- - - - -
Parameters:Config (product_info) – The product description
-
- -
-
-set_full_environ(logger, env_info)[source]¶
-

Sets the full environment for products -specified in env_info dictionary.

- --- - - - -
Parameters:
    -
  • Logger (logger) – The logger instance to display messages
  • -
  • list (env_info) – the list of products
  • -
-
-
- -
-
-set_products(logger, src_root=None)[source]¶
-

Sets the environment for all the products.

- --- - - - -
Parameters:
    -
  • Logger (logger) – The logger instance to display messages
  • -
  • src (src_root) – the application working directory
  • -
-
-
- -
-
-set_python_libdirs()[source]¶
-

Set some generic variables for python library paths

-
- -
-
-set_salome_generic_product_env(pi)[source]¶
-

Sets the generic environment for a SALOME product.

- --- - - - -
Parameters:Config (pi) – The product description
-
- -
-
-set_salome_minimal_product_env(product_info, logger)[source]¶
-

Sets the minimal environment for a SALOME product. -xxx_ROOT_DIR and xxx_SRC_DIR

- --- - - - -
Parameters:
    -
  • Config (product_info) – The product description
  • -
  • Logger (logger) – The logger instance to display messages
  • -
-
-
- -
- -
-
-class src.environment.Shell(name, extension)[source]¶
-

Definition of a Shell.

-
- -
-
-src.environment.load_environment(config, build, logger)[source]¶
-

Loads the environment (used to run the tests, for example).

- --- - - - -
Parameters:
    -
  • Config (config) – the global config
  • -
  • bool (build) – build environement if True
  • -
  • Logger (logger) – The logger instance to display messages
  • -
-
-
- -
-
-

src.fileEnviron module¶

-
-
-class src.fileEnviron.BashFileEnviron(output, environ=None)[source]¶
-

Bases: src.fileEnviron.FileEnviron

-

Class for bash shell.

-
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-finish(required=True)[source]¶
-

Add a final instruction in the out file (in case of file generation)

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.fileEnviron.BatFileEnviron(output, environ=None)[source]¶
-

Bases: src.fileEnviron.FileEnviron

-

for Windows batch shell.

-
-
-add_comment(comment)[source]¶
-

Add a comment in the shell file

- --- - - - -
Parameters:str (comment) – the comment to add
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-finish(required=True)[source]¶
-

Add a final instruction in the out file (in case of file generation) -In the particular windows case, do nothing

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.fileEnviron.ContextFileEnviron(output, environ=None)[source]¶
-

Bases: src.fileEnviron.FileEnviron

-

Class for a salome context configuration file.

-
-
-add_echo(text)[source]¶
-

Add a comment

- --- - - - -
Parameters:str (text) – the comment to add
-
- -
-
-add_warning(warning)[source]¶
-

Add a warning

- --- - - - -
Parameters:str (text) – the warning to add
-
- -
-
-append_value(key, value, sep=':')[source]¶
-

append value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str – the value to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-finish(required=True)[source]¶
-

Add a final instruction in the out file (in case of file generation)

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-prepend_value(key, value, sep=':')[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.fileEnviron.FileEnviron(output, environ=None)[source]¶
-

Bases: object

-

Base class for shell environment

-
-
-add_comment(comment)[source]¶
-

Add a comment in the shell file

- --- - - - -
Parameters:str (comment) – the comment to add
-
- -
-
-add_echo(text)[source]¶
-

Add a “echo” in the shell file

- --- - - - -
Parameters:str (text) – the text to echo
-
- -
-
-add_line(number)[source]¶
-

Add some empty lines in the shell file

- --- - - - -
Parameters:int (number) – the number of lines to add
-
- -
-
-add_warning(warning)[source]¶
-

Add a warning “echo” in the shell file

- --- - - - -
Parameters:str (warning) – the text to echo
-
- -
-
-append(key, value, sep=':')[source]¶
-

Same as append_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str or list (value) – the value(s) to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-append_value(key, value, sep=':')[source]¶
-

append value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str – the value to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-finish(required=True)[source]¶
-

Add a final instruction in the out file (in case of file generation)

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-is_defined(key)[source]¶
-

Check if the key exists in the environment

- --- - - - -
Parameters:str (key) – the environment variable to check
-
- -
-
-prepend(key, value, sep=':')[source]¶
-

Same as prepend_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str or list (value) – the value(s) to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-prepend_value(key, value, sep=':')[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable ‘key’ to value ‘value’

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.fileEnviron.LauncherFileEnviron(output, environ=None)[source]¶
-

Class to generate a launcher file script -(in python syntax) SalomeContext API

-
-
-add(key, value)[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
-
-
- -
-
-add_comment(comment)[source]¶
-
- -
-
-add_echo(text)[source]¶
-

Add a comment

- --- - - - -
Parameters:str (text) – the comment to add
-
- -
-
-add_line(number)[source]¶
-

Add some empty lines in the launcher file

- --- - - - -
Parameters:int (number) – the number of lines to add
-
- -
-
-add_warning(warning)[source]¶
-

Add a warning

- --- - - - -
Parameters:str (text) – the warning to add
-
- -
-
-append(key, value, sep=':')[source]¶
-

Same as append_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str or list (value) – the value(s) to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-append_value(key, value, sep=':')[source]¶
-

append value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str – the value to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-change_to_launcher(value)[source]¶
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key.

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-finish(required=True)[source]¶
-

Add a final instruction in the out file (in case of file generation) -In the particular launcher case, do nothing

- --- - - - -
Parameters:bool (required) – Do nothing if required is False
-
- -
-
-get(key)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-is_defined(key)[source]¶
-

Check if the key exists in the environment

- --- - - - -
Parameters:str (key) – the environment variable to check
-
- -
-
-prepend(key, value, sep=':')[source]¶
-

Same as prepend_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str or list (value) – the value(s) to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-prepend_value(key, value, sep=':')[source]¶
-

prepend value to key using sep

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str – the value to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-set(key, value)[source]¶
-

Set the environment variable “key” to value “value”

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
- -
-
-class src.fileEnviron.ScreenEnviron(output, environ=None)[source]¶
-

Bases: src.fileEnviron.FileEnviron

-
-
-add_comment(comment)[source]¶
-

Add a comment in the shell file

- --- - - - -
Parameters:str (comment) – the comment to add
-
- -
-
-add_echo(text)[source]¶
-

Add a “echo” in the shell file

- --- - - - -
Parameters:str (text) – the text to echo
-
- -
-
-add_line(number)[source]¶
-

Add some empty lines in the shell file

- --- - - - -
Parameters:int (number) – the number of lines to add
-
- -
-
-add_warning(warning)[source]¶
-

Add a warning “echo” in the shell file

- --- - - - -
Parameters:str (warning) – the text to echo
-
- -
-
-append(name, value, sep=':')[source]¶
-

Same as append_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to append
  • -
  • str or list (value) – the value(s) to append to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-command_value(key, command)[source]¶
-

Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method

- --- - - - -
Parameters:
    -
  • str (command) – the environment variable
  • -
  • str – the command to execute
  • -
-
-
- -
-
-get(name)[source]¶
-

Get the value of the environment variable “key”

- --- - - - -
Parameters:str (key) – the environment variable
-
- -
-
-is_defined(name)[source]¶
-

Check if the key exists in the environment

- --- - - - -
Parameters:str (key) – the environment variable to check
-
- -
-
-prepend(name, value, sep=':')[source]¶
-

Same as prepend_value but the value argument can be a list

- --- - - - -
Parameters:
    -
  • str (sep) – the environment variable to prepend
  • -
  • str or list (value) – the value(s) to prepend to key
  • -
  • str – the separator string
  • -
-
-
- -
-
-run_env_script(module, script)[source]¶
-
- -
-
-set(name, value)[source]¶
-

Set the environment variable ‘key’ to value ‘value’

- --- - - - -
Parameters:
    -
  • str (value) – the environment variable to set
  • -
  • str – the value
  • -
-
-
- -
-
-write(command, name, value, sign='=')[source]¶
-
- -
- -
-
-src.fileEnviron.get_file_environ(output, shell, environ=None)[source]¶
-

Instantiate correct FileEnvironment sub-class.

- --- - - - -
Parameters:
    -
  • file (output) – the output file stream.
  • -
  • str (shell) – the type of shell syntax to use.
  • -
  • dict (environ) – a potential additional environment.
  • -
-
-
- -
-
-src.fileEnviron.special_path_separator(name)[source]¶
-

TCLLIBPATH, TKLIBPATH, PV_PLUGIN_PATH environments variables need -some exotic path separator. -This function gives the separator regarding the name of the variable -to append or prepend.

- --- - - - -
Parameters:str (name) – The name of the variable to find the separator
-
- -
-
-

src.fork module¶

-
-
-src.fork.batch(cmd, logger, cwd, args=[], log=None, delai=20, sommeil=1)[source]¶
-
- -
-
-src.fork.batch_salome(cmd, logger, cwd, args, getTmpDir, pendant='SALOME_Session_Server', fin='killSalome.py', log=None, delai=20, sommeil=1, delaiapp=0)[source]¶
-
- -
-
-src.fork.launch_command(cmd, logger, cwd, args=[], log=None)[source]¶
-
- -
-
-src.fork.show_progress(logger, top, delai, ss='')[source]¶
-

shortcut function to display the progression

- --- - - - -
Parameters:
    -
  • Logger (logger) – The logging instance
  • -
  • int (delai) – the number to display
  • -
  • int – the number max
  • -
  • str (ss) – the string to display
  • -
-
-
- -
-
-src.fork.write_back(logger, message, level)[source]¶
-

shortcut function to write at the begin of the line

- --- - - - -
Parameters:
    -
  • Logger (logger) – The logging instance
  • -
  • str (message) – the text to display
  • -
  • int (level) – the level of verbosity
  • -
-
-
- -
-
-

src.logger module¶

-

Implements the classes and method relative to the logging

-
-
-class src.logger.Logger(config=None, silent_sysstd=False, all_in_terminal=False, micro_command=False)[source]¶
-

Bases: object

-

Class to handle log mechanism.

-
- -

Add a link to another log file.

- --- - - - - - - -
Parameters:
    -
  • str (command_res) – The file name of the link.
  • -
  • str – The name of the command linked.
  • -
  • str – The result of the command linked. “0” or “1”
  • -
-
Parma full_launched_command str:
 

The full lanch command -(“sat command …”)

-
-
- -
-
-end_write(attribute)[source]¶
-

Called just after command end: Put all fields -corresponding to the command end context (time). -Write the log xml file on the hard drive. -And display the command to launch to get the log

- --- - - - -
Parameters:dict (attribute) – the attribute to add to the node “Site”.
-
- -
-
-error(message)[source]¶
-

Print an error.

- --- - - - -
Parameters:str (message) – The message to print.
-
- -
-
-flush()[source]¶
-

Flush terminal

-
- -
-
-put_initial_xml_fields()[source]¶
-

Called at class initialization: Put all fields -corresponding to the command context (user, time, …)

-
- -
-
-write(message, level=None, screenOnly=False)[source]¶
-

function used in the commands -to print in the terminal and the log file.

- --- - - - -
Parameters:
    -
  • str (message) – The message to print.
  • -
  • int (level) – The output level corresponding -to the message 0 < level < 6.
  • -
  • boolean (screenOnly) – if True, do not write in log file.
  • -
-
-
- -
- -
-
-src.logger.date_to_datetime(date)[source]¶
-

From a string date in format YYYYMMDD_HHMMSS -returns list year, mon, day, hour, minutes, seconds

- --- - - - - - - - -
Parameters:str (date) – The date in format YYYYMMDD_HHMMSS
Returns:the same date and time in separate variables.
Return type:(str,str,str,str,str,str)
-
- -
-
-src.logger.getCurrentLogger()[source]¶
-

get current logging logger, set as DefaultLogger if not set yet

-
- -
-
-src.logger.getDefaultLogger()[source]¶
-

get simple logging logger DefaultLogger, set it as current

-
- -
-
-src.logger.getUnittestLogger()[source]¶
-

get simple logging logger UnittestLogger, set it as current

-
- -
-
-src.logger.isCurrentLoggerUnittest()[source]¶
-
- -
-
-src.logger.list_log_file(dirPath, expression)[source]¶
-

Find all files corresponding to expression in dirPath

- --- - - - - - - - -
Parameters:
    -
  • str (expression) – the directory where to search the files
  • -
  • str – the regular expression of files to find
  • -
-
Returns:

the list of files path and informations about it

-
Return type:

list

-
-
- -
-
-src.logger.sendMessageToCurrentLogger(message, level)[source]¶
-

assume relay from obsolescent -logger.write(msg, 1/2/3…) to future -logging.critical/warning/info…(msg) (as logging package tips)

-
- -
-
-src.logger.setCurrentLogger(logger)[source]¶
-

temporary send all in stdout as simple logging logger

-
- -
-
-src.logger.show_command_log(logFilePath, cmd, application, notShownCommands)[source]¶
-

Used in updateHatXml. -Determine if the log xml file logFilePath -has to be shown or not in the hat log.

- --- - - - - - - - -
Parameters:
    -
  • str (application) – the path to the command xml log file
  • -
  • str – the command of the log file
  • -
  • str – the application passed as parameter -to the salomeTools command
  • -
  • list (notShownCommands) – the list of commands -that are not shown by default
  • -
-
Returns:

True if cmd is not in notShownCommands and the application -in the log file corresponds to application

-
Return type:

boolean

-
-
- -
-
-src.logger.timedelta_total_seconds(timedelta)[source]¶
-

Replace total_seconds from datetime module -in order to be compatible with old python versions

- --- - - - - - - - -
Parameters:datetime.timedelta (timedelta) – The delta between two dates
Returns:The number of seconds corresponding to timedelta.
Return type:float
-
- -
-
-src.logger.update_hat_xml(logDir, application=None, notShownCommands=[])[source]¶
-

Create the xml file in logDir that contain all the xml file -and have a name like YYYYMMDD_HHMMSS_namecmd.xml

- --- - - - -
Parameters:
    -
  • str (application) – the directory to parse
  • -
  • str – the name of the application if there is any
  • -
-
-
- -
-
-

src.options module¶

-

The Options class that manages the access to all options passed as -parameters in salomeTools command lines

-
-
-class src.options.OptResult[source]¶
-

Bases: object

-

An instance of this class will be the object manipulated -in code of all salomeTools commands -The aim of this class is to have an elegant syntax to manipulate the options.

-
-
Example:
-
>> options, remainderArgs = command.parseArguments(args)
-
>> print(options.output_verbose_level)
-
>> ‘INFO’
-
-
- -
-
-class src.options.Options[source]¶
-

Bases: object

-

Class to manage all salomeTools options

-
-
-add_option(shortName, longName, optionType, destName, helpString='', default=None)[source]¶
-

Add an option to a command. It gets all attributes -of an option and append it in the options field

- --- - - - - - -
Parameters:
    -
  • shortName – (str) -The short name of the option (as ‘-l’ for level option).
  • -
  • longName – (str) -The long name of the option (as ‘–level’ for level option).
  • -
  • optionType – (str) The type of the option (ex “int”).
  • -
  • destName – (str) The name that will be used in the code.
  • -
  • helpString – (str) -The text to display when user ask for help on a command.
  • -
-
Returns:

None

-
-
- -
-
-debug_write()[source]¶
-
- -
-
-filterLevel(aLevel)[source]¶
-

filter level logging values

-
- -
-
-filterList2(aStr)[source]¶
-

filter a list as ‘KERNEL,YACS,etc.’

-
- -
-
-getDetailOption(option)[source]¶
-

for convenience

- --- - - - -
Returns:(tuple) 4-elements (shortName, longName, optionType, helpString)
-
- -
-
-get_help()[source]¶
-

Returns all options stored in self.options -as help message colored string

- --- - - - -
Returns:(str) colored string
-
- -
-
-indent(text, amount, car=' ')[source]¶
-

indent multi lines message

-
- -
-
-parse_args(argList=None)[source]¶
-

Instantiates the class OptResult -that gives access to all options in the code

- --- - - - - - -
Parameters:argList – (list) the raw list of arguments that were passed
Returns:(OptResult, list) as (optResult, args) -optResult is the option instance to manipulate in the code. -args is the full raw list of passed options
-
- -
- -
-
-

src.printcolors module¶

-

In this file is stored the mechanism that manage color prints in the terminal

-
-
-src.printcolors.cleancolor(message)[source]¶
-

remove color from a colored text.

- --- - - - - - - - -
Parameters:str (message) – The text to be cleaned.
Returns:The cleaned text.
Return type:str
-
- -
-
-src.printcolors.print_color_map()[source]¶
-

This method prints the color map

-
- -
-
-src.printcolors.print_color_range(start, end)[source]¶
-

print possible range values for colors

- --- - - - -
Parameters:
    -
  • int (end) – The smaller value.
  • -
  • int – The bigger value.
  • -
-
-
- -
-
-src.printcolors.print_value(logger, label, value, level=1, suffix='')[source]¶
-

shortcut method to print a label and a value with the info color

- --- - - - -
Parameters:
    -
  • class logger (logger) – the logger instance.
  • -
  • int (level) – the label to print.
  • -
  • str (suffix) – the value to print.
  • -
  • int – the level of verboseness.
  • -
  • str – the suffix to add at the end.
  • -
-
-
- -
-
-src.printcolors.printc(txt, code='')[source]¶
-

print a text with colors

- --- - - - - - - - -
Parameters:
    -
  • str (code) – The text to be printed.
  • -
  • str – The color to use.
  • -
-
Returns:

The colored text.

-
Return type:

str

-
-
- -
-
-src.printcolors.printcError(txt)[source]¶
-

print a text error color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcHeader(txt)[source]¶
-

print a text header color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcHighlight(txt)[source]¶
-

print a text highlight color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcInfo(txt)[source]¶
-

print a text info color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcLabel(txt)[source]¶
-

print a text label color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcSuccess(txt)[source]¶
-

print a text success color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-src.printcolors.printcWarning(txt)[source]¶
-

print a text warning color

- --- - - - - - - - -
Parameters:str (txt) – The text to be printed.
Returns:The colored text.
Return type:str
-
- -
-
-

src.product module¶

-

In this file are implemented the methods -relative to the product notion of salomeTools

-
-
-src.product.check_config_exists(config, prod_dir, prod_info)[source]¶
-

Verify that the installation directory of a product in a base exists -Check all the config-<i> directory and verify the sat-config.pyconf file -that is in it

- --- - - - - - - - -
Parameters:
    -
  • Config (product_info) – The global configuration
  • -
  • str (prod_dir) – The product installation directory path -(without config-<i>)
  • -
  • Config – The configuration specific to -the product
  • -
-
Returns:

True or false is the installation is found or not -and if it is found, the path of the found installation

-
Return type:

(boolean, str)

-
-
- -
-
-src.product.check_installation(product_info)[source]¶
-

Verify if a product is well installed. Checks install directory presence -and some additional files if it is defined in the config

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if it is well installed
Return type:boolean
-
- -
-
-src.product.check_source(product_info)[source]¶
-

Verify if a sources of product is preset. Checks source directory presence

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if it is well installed
Return type:boolean
-
- -
-
-src.product.get_base_install_dir(config, prod_info, version)[source]¶
-

Compute the installation directory of a product in base

- --- - - - - - - - -
Parameters:
    -
  • Config (product_info) – The global configuration
  • -
  • Config – The configuration specific to -the product
  • -
  • str (version) – The version of the product
  • -
-
Returns:

The path of the product installation

-
Return type:

str

-
-
- -
-
-src.product.get_install_dir(config, base, version, prod_info)[source]¶
-

Compute the installation directory of a given product

- --- - - - - - - - -
Parameters:
    -
  • Config (product_info) – The global configuration
  • -
  • str (version) – This corresponds to the value given by user in its -application.pyconf for the specific product. If “yes”, the -user wants the product to be in base. If “no”, he wants the -product to be in the application workdir
  • -
  • str – The version of the product
  • -
  • Config – The configuration specific to -the product
  • -
-
Returns:

The path of the product installation

-
Return type:

str

-
-
- -
-
-src.product.get_product_components(product_info)[source]¶
-

Get the component list to generate with the product

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:The list of names of the components
Return type:List
-
- -
-
-src.product.get_product_config(config, product_name, with_install_dir=True)[source]¶
-

Get the specific configuration of a product from the global configuration

- --- - - - - - - - -
Parameters:
    -
  • Config (config) – The global configuration
  • -
  • str (product_name) – The name of the product
  • -
  • boolean (with_install_dir) – If false, do not provide an install -directory (at false only for internal use -of the function check_config_exists)
  • -
-
Returns:

the specific configuration of the product

-
Return type:

Config

-
-
- -
-
-src.product.get_product_dependencies(config, product_info)[source]¶
-

Get recursively the list of products that are -in the product_info dependencies

- --- - - - - - - - -
Parameters:
    -
  • Config (product_info) – The global configuration
  • -
  • Config – The configuration specific to -the product
  • -
-
Returns:

the list of products in dependence

-
Return type:

list

-
-
- -
-
-src.product.get_product_section(config, product_name, version, section=None)[source]¶
-

Get the product description from the configuration

- --- - - - - - - - -
Parameters:
    -
  • Config (config) – The global configuration
  • -
  • str (section) – The product name
  • -
  • str – The version of the product
  • -
  • str – The searched section (if not None, the section is -explicitly given
  • -
-
Returns:

The product description

-
Return type:

Config

-
-
- -
-
-src.product.get_products_infos(lproducts, config)[source]¶
-

Get the specific configuration of a list of products

- --- - - - - - - - -
Parameters:
    -
  • List (lproducts) – The list of product names
  • -
  • Config (config) – The global configuration
  • -
-
Returns:

the list of tuples -(product name, specific configuration of the product)

-
Return type:

[(str, Config)]

-
-
- -
-
-src.product.product_compiles(product_info)[source]¶
-

Know if a product compiles or not -(some products do not have a compilation procedure)

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product compiles, else False
Return type:boolean
-
- -
-
-src.product.product_has_env_script(product_info)[source]¶
-

Know if a product has an environment script

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product it has an environment script, else False
Return type:boolean
-
- -
- -

Know if a product has a logo (YACSGEN generate)

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:The path of the logo if the product has a logo, else False
Return type:Str
-
- -
-
-src.product.product_has_patches(product_info)[source]¶
-

Know if a product has one or more patches

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product has one or more patches
Return type:boolean
-
- -
-
-src.product.product_has_salome_gui(product_info)[source]¶
-

Know if a product has a SALOME gui

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product has a SALOME gui, else False
Return type:Boolean
-
- -
-
-src.product.product_has_script(product_info)[source]¶
-

Know if a product has a compilation script

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product it has a compilation script, else False
Return type:boolean
-
- -
-
-src.product.product_is_autotools(product_info)[source]¶
-

Know if a product is compiled using the autotools

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is autotools, else False
Return type:boolean
-
- -
-
-src.product.product_is_cmake(product_info)[source]¶
-

Know if a product is compiled using the cmake

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is cmake, else False
Return type:boolean
-
- -
-
-src.product.product_is_cpp(product_info)[source]¶
-

Know if a product is cpp

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is a cpp, else False
Return type:boolean
-
- -
-
-src.product.product_is_debug(product_info)[source]¶
-

Know if a product is in debug mode

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is in debug mode, else False
Return type:boolean
-
- -
-
-src.product.product_is_dev(product_info)[source]¶
-

Know if a product is in dev mode

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is in dev mode, else False
Return type:boolean
-
- -
-
-src.product.product_is_fixed(product_info)[source]¶
-

Know if a product is fixed

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is fixed, else False
Return type:boolean
-
- -
-
-src.product.product_is_generated(product_info)[source]¶
-

Know if a product is generated (YACSGEN)

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is generated
Return type:boolean
-
- -
-
-src.product.product_is_mpi(product_info)[source]¶
-

Know if a product has openmpi in its dependencies

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product has openmpi inits dependencies
Return type:boolean
-
- -
-
-src.product.product_is_native(product_info)[source]¶
-

Know if a product is native

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is native, else False
Return type:boolean
-
- -
-
-src.product.product_is_salome(product_info)[source]¶
-

Know if a product is a SALOME module

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is a SALOME module, else False
Return type:boolean
-
- -
-
-src.product.product_is_smesh_plugin(product_info)[source]¶
-

Know if a product is a SMESH plugin

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is a SMESH plugin, else False
Return type:boolean
-
- -
-
-src.product.product_is_vcs(product_info)[source]¶
-

Know if a product is download using git, svn or cvs (not archive)

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is vcs, else False
Return type:boolean
-
- -
-
-src.product.product_is_verbose(product_info)[source]¶
-

Know if a product is in verbose mode

- --- - - - - - - - -
Parameters:Config (product_info) – The configuration specific to -the product
Returns:True if the product is in verbose mode, else False
Return type:boolean
-
- -
-
-

src.pyconf module¶

-

This is a configuration module for Python.

-

This module should work under Python versions >= 2.2, and cannot be used with -earlier versions since it uses new-style classes.

-

Development and testing has only been carried out (so far) on Python 2.3.4 and -Python 2.4.2. See the test module (test_config.py) included in the -U{distribution<http://www.red-dove.com/python_config.html|_blank>} (follow the -download link).

-

A simple example - with the example configuration file:

-
messages:
-[
-  {
-    stream : `sys.stderr`
-    message: 'Welcome'
-    name: 'Harry'
-  }
-  {
-    stream : `sys.stdout`
-    message: 'Welkom'
-    name: 'Ruud'
-  }
-  {
-    stream : $messages[0].stream
-    message: 'Bienvenue'
-    name: Yves
-  }
-]
-
-
-

a program to read the configuration would be:

-
from config import Config
-
-f = file('simple.cfg')
-cfg = Config(f)
-for m in cfg.messages:
-    s = '%s, %s' % (m.message, m.name)
-    try:
-        print >> m.stream, s
-    except IOError, e:
-        print e
-
-
-

which, when run, would yield the console output:

-
Welcome, Harry
-Welkom, Ruud
-Bienvenue, Yves
-
-
-

See U{this tutorial<http://www.red-dove.com/python_config.html|_blank>} for more -information.

-

#modified for salomeTools -@version: 0.3.7.1

-

@author: Vinay Sajip

-

@copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved.

-

@var streamOpener: The default stream opener. This is a factory function which -takes a string (e.g. filename) and returns a stream suitable for reading. If -unable to open the stream, an IOError exception should be thrown.

-

The default value of this variable is L{defaultStreamOpener}. For an example -of how it’s used, see test_config.py (search for streamOpener).

-
-
-class src.pyconf.Config(streamOrFile=None, parent=None, PWD=None)[source]¶
-

Bases: src.pyconf.Mapping

-

This class represents a configuration, and is the only one which clients -need to interface to, under normal circumstances.

-
-
-class Namespace[source]¶
-

Bases: object

-

This internal class is used for implementing default namespaces.

-

An instance acts as a namespace.

-
- -
-
-addNamespace(ns, name=None)[source]¶
-

Add a namespace to this configuration which can be used to evaluate -(resolve) dotted-identifier expressions. -@param ns: The namespace to be added. -@type ns: A module or other namespace suitable for passing as an -argument to vars(). -@param name: A name for the namespace, which, if specified, provides -an additional level of indirection. -@type name: str

-
- -
-
-getByPath(path)[source]¶
-

Obtain a value in the configuration via its path. -@param path: The path of the required value -@type path: str -@return the value at the specified path. -@rtype: any -@raise ConfigError: If the path is invalid

-
- -
-
-load(stream)[source]¶
-

Load the configuration from the specified stream. Multiple streams can -be used to populate the same instance, as long as there are no -clashing keys. The stream is closed. -@param stream: A stream from which the configuration is read. -@type stream: A read-only stream (file-like object). -@raise ConfigError: if keys in the loaded configuration clash with -existing keys. -@raise ConfigFormatError: if there is a syntax error in the stream.

-
- -
-
-removeNamespace(ns, name=None)[source]¶
-

Remove a namespace added with L{addNamespace}. -@param ns: The namespace to be removed. -@param name: The name which was specified when L{addNamespace} was -called. -@type name: str

-
- -
- -
-
-exception src.pyconf.ConfigError[source]¶
-

Bases: exceptions.Exception

-

This is the base class of exceptions raised by this module.

-
- -
-
-exception src.pyconf.ConfigFormatError[source]¶
-

Bases: src.pyconf.ConfigError

-

This is the base class of exceptions raised due to syntax errors in -configurations.

-
- -
-
-class src.pyconf.ConfigInputStream(stream)[source]¶
-

Bases: object

-

An input stream which can read either ANSI files with default encoding -or Unicode files with BOMs.

-

Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had -built-in support.

-
-
-close()[source]¶
-
- -
-
-read(size)[source]¶
-
- -
-
-readline()[source]¶
-
- -
- -
-
-class src.pyconf.ConfigList[source]¶
-

Bases: list

-

This class implements an ordered list of configurations and allows you -to try getting the configuration from each entry in turn, returning -the first successfully obtained value.

-
-
-getByPath(path)[source]¶
-

Obtain a value from the first configuration in the list which defines -it.

-

@param path: The path of the value to retrieve. -@type path: str -@return: The value from the earliest configuration in the list which -defines it. -@rtype: any -@raise ConfigError: If no configuration in the list has an entry with -the specified path.

-
- -
- -
-
-class src.pyconf.ConfigMerger(resolver=<function defaultMergeResolve>)[source]¶
-

Bases: object

-

This class is used for merging two configurations. If a key exists in the -merge operand but not the merge target, then the entry is copied from the -merge operand to the merge target. If a key exists in both configurations, -then a resolver (a callable) is called to decide how to handle the -conflict.

-
-
-handleMismatch(obj1, obj2)[source]¶
-

Handle a mismatch between two objects.

-

@param obj1: The object to merge into. -@type obj1: any -@param obj2: The object to merge. -@type obj2: any

-
- -
-
-merge(merged, mergee)[source]¶
-

Merge two configurations. The second configuration is unchanged, -and the first is changed to reflect the results of the merge.

-

@param merged: The configuration to merge into. -@type merged: L{Config}. -@param mergee: The configuration to merge. -@type mergee: L{Config}.

-
- -
-
-mergeMapping(map1, map2)[source]¶
-

Merge two mappings recursively. The second mapping is unchanged, -and the first is changed to reflect the results of the merge.

-

@param map1: The mapping to merge into. -@type map1: L{Mapping}. -@param map2: The mapping to merge. -@type map2: L{Mapping}.

-
- -
-
-mergeSequence(seq1, seq2)[source]¶
-

Merge two sequences. The second sequence is unchanged, -and the first is changed to have the elements of the second -appended to it.

-

@param seq1: The sequence to merge into. -@type seq1: L{Sequence}. -@param seq2: The sequence to merge. -@type seq2: L{Sequence}.

-
- -
-
-overwriteKeys(map1, seq2)[source]¶
-

Renint variables. The second mapping is unchanged, -and the first is changed depending the keys of the second mapping. -@param map1: The mapping to reinit keys into. -@type map1: L{Mapping}. -@param map2: The mapping container reinit information. -@type map2: L{Mapping}.

-
- -
- -
-
-class src.pyconf.ConfigOutputStream(stream, encoding=None)[source]¶
-

Bases: object

-

An output stream which can write either ANSI files with default encoding -or Unicode files with BOMs.

-

Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had -built-in support.

-
-
-close()[source]¶
-
- -
-
-flush()[source]¶
-
- -
-
-write(data)[source]¶
-
- -
- -
-
-class src.pyconf.ConfigReader(config)[source]¶
-

Bases: object

-

This internal class implements a parser for configurations.

-
-
-getChar()[source]¶
-

Get the next char from the stream. Update line and column numbers -appropriately.

-

@return: The next character from the stream. -@rtype: str

-
- -
-
-getToken()[source]¶
-

Get a token from the stream. String values are returned in a form -where you need to eval() the returned value to get the actual -string. The return value is (token_type, token_value).

-

Multiline string tokenizing is thanks to David Janes (BlogMatrix)

-

@return: The next token. -@rtype: A token tuple.

-
- -
-
-load(stream, parent=None, suffix=None)[source]¶
-

Load the configuration from the specified stream.

-

@param stream: A stream from which to load the configuration. -@type stream: A stream (file-like object). -@param parent: The parent of the configuration (to which this reader -belongs) in the hierarchy. Specified when the configuration is -included in another one. -@type parent: A L{Container} instance. -@param suffix: The suffix of this configuration in the parent -configuration. Should be specified whenever the parent is not None. -@raise ConfigError: If parent is specified but suffix is not. -@raise ConfigFormatError: If there are syntax errors in the stream.

-
- -
-
-location()[source]¶
-

Return the current location (filename, line, column) in the stream -as a string.

-

Used when printing error messages,

-

@return: A string representing a location in the stream being read. -@rtype: str

-
- -
-
-match(t)[source]¶
-

Ensure that the current token type matches the specified value, and -advance to the next token.

-

@param t: The token type to match. -@type t: A valid token type. -@return: The token which was last read from the stream before this -function is called. -@rtype: a token tuple - see L{getToken}. -@raise ConfigFormatError: If the token does not match what’s expected.

-
- -
-
-parseFactor()[source]¶
-

Parse a factor in an multiplicative expression (a * b, a / b, a % b)

-

@return: the parsed factor -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseKeyValuePair(parent)[source]¶
-

Parse a key-value pair, and add it to the provided L{Mapping}.

-

@param parent: The mapping to add entries to. -@type parent: A L{Mapping} instance. -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseMapping(parent, suffix)[source]¶
-

Parse a mapping.

-

@param parent: The container to which the mapping will be added. -@type parent: A L{Container} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: a L{Mapping} instance representing the mapping. -@rtype: L{Mapping} -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseMappingBody(parent)[source]¶
-

Parse the internals of a mapping, and add entries to the provided -L{Mapping}.

-

@param parent: The mapping to add entries to. -@type parent: A L{Mapping} instance.

-
- -
-
-parseReference(type)[source]¶
-

Parse a reference.

-

@return: the parsed reference -@rtype: L{Reference} -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseScalar()[source]¶
-

Parse a scalar - a terminal value such as a string or number, or -an L{Expression} or L{Reference}.

-

@return: the parsed scalar -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseSequence(parent, suffix)[source]¶
-

Parse a sequence.

-

@param parent: The container to which the sequence will be added. -@type parent: A L{Container} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: a L{Sequence} instance representing the sequence. -@rtype: L{Sequence} -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseSuffix(ref)[source]¶
-

Parse a reference suffix.

-

@param ref: The reference of which this suffix is a part. -@type ref: L{Reference}. -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseTerm()[source]¶
-

Parse a term in an additive expression (a + b, a - b)

-

@return: the parsed term -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-parseValue(parent, suffix)[source]¶
-

Parse a value.

-

@param parent: The container to which the value will be added. -@type parent: A L{Container} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: The value -@rtype: any -@raise ConfigFormatError: if a syntax error is found.

-
- -
-
-setStream(stream)[source]¶
-

Set the stream to the specified value, and prepare to read from it.

-

@param stream: A stream from which to load the configuration. -@type stream: A stream (file-like object).

-
- -
- -
-
-exception src.pyconf.ConfigResolutionError[source]¶
-

Bases: src.pyconf.ConfigError

-

This is the base class of exceptions raised due to semantic errors in -configurations.

-
- -
-
-class src.pyconf.Container(parent)[source]¶
-

Bases: object

-

This internal class is the base class for mappings and sequences.

-

@ivar path: A string which describes how to get -to this instance from the root of the hierarchy.

-

Example:

-
a.list.of[1].or['more'].elements
-
-
-
-
-evaluate(item)[source]¶
-

Evaluate items which are instances of L{Reference} or L{Expression}.

-

L{Reference} instances are evaluated using L{Reference.resolve}, -and L{Expression} instances are evaluated using -L{Expression.evaluate}.

-

@param item: The item to be evaluated. -@type item: any -@return: If the item is an instance of L{Reference} or L{Expression}, -the evaluated value is returned, otherwise the item is returned -unchanged.

-
- -
-
-setPath(path)[source]¶
-

Set the path for this instance. -@param path: The path - a string which describes how to get -to this instance from the root of the hierarchy. -@type path: str

-
- -
-
-writeToStream(stream, indent, container)[source]¶
-

Write this instance to a stream at the specified indentation level.

-

Should be redefined in subclasses.

-

@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L{Container} -@raise NotImplementedError: If a subclass does not override this

-
- -
-
-writeValue(value, stream, indent)[source]¶
-
- -
- -
-
-class src.pyconf.Expression(op, lhs, rhs)[source]¶
-

Bases: object

-

This internal class implements a value which is obtained by evaluating an expression.

-
-
-evaluate(container)[source]¶
-

Evaluate this instance in the context of a container.

-

@param container: The container to evaluate in from. -@type container: L{Container} -@return: The evaluated value. -@rtype: any -@raise ConfigResolutionError: If evaluation fails. -@raise ZeroDivideError: If division by zero occurs. -@raise TypeError: If the operation is invalid, e.g. -subtracting one string from another.

-
- -
- -
-
-class src.pyconf.Mapping(parent=None)[source]¶
-

Bases: src.pyconf.Container

-

This internal class implements key-value mappings in configurations.

-
-
-addMapping(key, value, comment, setting=False)[source]¶
-

Add a key-value mapping with a comment.

-

@param key: The key for the mapping. -@type key: str -@param value: The value for the mapping. -@type value: any -@param comment: The comment for the key (can be None). -@type comment: str -@param setting: If True, ignore clashes. This is set -to true when called from L{__setattr__}. -@raise ConfigFormatError: If an existing key is seen -again and setting is False.

-
- -
-
-get(key, default=None)[source]¶
-

Allows a dictionary-style get operation.

-
- -
-
-iteritems()[source]¶
-
- -
-
-iterkeys()[source]¶
-
- -
-
-keys()[source]¶
-

Return the keys in a similar way to a dictionary.

-
- -
-
-writeToStream(stream, indent, container)[source]¶
-

Write this instance to a stream at the specified indentation level.

-

Should be redefined in subclasses.

-

@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L{Container}

-
- -
- -
-
-class src.pyconf.Reference(config, type, ident)[source]¶
-

Bases: object

-

This internal class implements a value which is a reference to another value.

-
-
-addElement(type, ident)[source]¶
-

Add an element to the reference.

-

@param type: The type of reference. -@type type: BACKTICK or DOLLAR -@param ident: The identifier which continues the reference. -@type ident: str

-
- -
-
-findConfig(container)[source]¶
-

Find the closest enclosing configuration to the specified container.

-

@param container: The container to start from. -@type container: L{Container} -@return: The closest enclosing configuration, or None. -@rtype: L{Config}

-
- -
-
-resolve(container)[source]¶
-

Resolve this instance in the context of a container.

-

@param container: The container to resolve from. -@type container: L{Container} -@return: The resolved value. -@rtype: any -@raise ConfigResolutionError: If resolution fails.

-
- -
- -
-
-class src.pyconf.Sequence(parent=None)[source]¶
-

Bases: src.pyconf.Container

-

This internal class implements a value which is a sequence of other values.

-
-
-class SeqIter(seq)[source]¶
-

Bases: object

-

This internal class implements an iterator for a L{Sequence} instance.

-
-
-next()[source]¶
-
- -
- -
-
-append(item, comment)[source]¶
-

Add an item to the sequence.

-

@param item: The item to add. -@type item: any -@param comment: A comment for the item. -@type comment: str

-
- -
-
-writeToStream(stream, indent, container)[source]¶
-

Write this instance to a stream at the specified indentation level.

-

Should be redefined in subclasses.

-

@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L{Container}

-
- -
- -
-
-src.pyconf.deepCopyMapping(inMapping)[source]¶
-
- -
-
-src.pyconf.defaultMergeResolve(map1, map2, key)[source]¶
-

A default resolver for merge conflicts. -Returns a string indicating what action to take to resolve the conflict.

-

@param map1: The map being merged into. -@type map1: L{Mapping}. -@param map2: The map being used as the merge operand. -@type map2: L{Mapping}. -@param key: The key in map2 (which also exists in map1). -@type key: str

-
-
@return: One of “merge”, “append”, “mismatch” or “overwrite”
-
indicating what action should be taken. This should -be appropriate to the objects being merged - e.g. -there is no point returning “merge” if the two objects -are instances of L{Sequence}.
-
-

@rtype: str

-
- -
-
-src.pyconf.defaultStreamOpener(name)[source]¶
-

This function returns a read-only stream, given its name. The name passed -in should correspond to an existing stream, otherwise an exception will be -raised.

-

This is the default value of L{streamOpener}; assign your own callable to -streamOpener to return streams based on names. For example, you could use -urllib2.urlopen().

-

@param name: The name of a stream, most commonly a file name. -@type name: str -@return: A stream with the specified name. -@rtype: A read-only stream (file-like object)

-
- -
-
-src.pyconf.isWord(s)[source]¶
-

See if a passed-in value is an identifier. If the value passed in is not a -string, False is returned. An identifier consists of alphanumerics or -underscore characters.

-

Examples:

-
isWord('a word') ->False
-isWord('award') -> True
-isWord(9) -> False
-isWord('a_b_c_') ->True
-
-
-

@note: isWord(‘9abc’) will return True - not exactly correct, but adequate -for the way it’s used here.

-

@param s: The name to be tested -@type s: any -@return: True if a word, else False -@rtype: bool

-
- -
-
-src.pyconf.makePath(prefix, suffix)[source]¶
-

Make a path from a prefix and suffix.

-

Examples: -makePath(‘’, ‘suffix’) -> ‘suffix’ -makePath(‘prefix’, ‘suffix’) -> ‘prefix.suffix’ -makePath(‘prefix’, ‘[1]’) -> ‘prefix[1]’

-

@param prefix: The prefix to use. If it evaluates as false, the suffix is returned. -@type prefix: str -@param suffix: The suffix to use. It is either an identifier or an index in brackets. -@type suffix: str -@return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index. -@rtype: str

-
- -
-
-src.pyconf.overwriteMergeResolve(map1, map2, key)[source]¶
-

An overwriting resolver for merge conflicts. Calls L{defaultMergeResolve}, -but where a “mismatch” is detected, returns “overwrite” instead.

-

@param map1: The map being merged into. -@type map1: L{Mapping}. -@param map2: The map being used as the merge operand. -@type map2: L{Mapping}. -@param key: The key in map2 (which also exists in map1). -@type key: str

-
- -
-
-

src.system module¶

-

In this file : all functions that do a system call, -like open a browser or an editor, or call a git command

-
-
-src.system.archive_extract(from_what, where, logger)[source]¶
-

Extracts sources from an archive.

- --- - - - - - - - -
Parameters:
    -
  • str (where) – The path to the archive.
  • -
  • str – The path where to extract.
  • -
  • Logger (logger) – The logger instance to use.
  • -
-
Returns:

True if the extraction is successful

-
Return type:

boolean

-
-
- -
-
-src.system.cvs_extract(protocol, user, server, base, tag, product, where, logger, checkout=False, environment=None)[source]¶
-

Extracts sources from a cvs repository.

- --- - - - - - - - -
Parameters:
    -
  • str (where) – The cvs protocol.
  • -
  • str – The user to be used.
  • -
  • str – The remote cvs server.
  • -
  • str –

    .

    -
  • -
  • str – The tag.
  • -
  • str – The product.
  • -
  • str – The path where to extract.
  • -
  • Logger (logger) – The logger instance to use.
  • -
  • boolean (checkout) – If true use checkout cvs.
  • -
  • src.environment.Environ (environment) – The environment to source when -extracting.
  • -
-
Returns:

True if the extraction is successful

-
Return type:

boolean

-
-
- -
-
-src.system.git_extract(from_what, tag, where, logger, environment=None)[source]¶
-

Extracts sources from a git repository.

- --- - - - - - - - -
Parameters:
    -
  • str (where) – The remote git repository.
  • -
  • str – The tag.
  • -
  • str – The path where to extract.
  • -
  • Logger (logger) – The logger instance to use.
  • -
  • src.environment.Environ (environment) – The environment to source when -extracting.
  • -
-
Returns:

True if the extraction is successful

-
Return type:

boolean

-
-
- -
-
-src.system.show_in_editor(editor, filePath, logger)[source]¶
-

open filePath using editor.

- --- - - - -
Parameters:
    -
  • str (filePath) – The editor to use.
  • -
  • str – The path to the file to open.
  • -
-
-
- -
-
-src.system.svn_extract(user, from_what, tag, where, logger, checkout=False, environment=None)[source]¶
-

Extracts sources from a svn repository.

- --- - - - - - - - -
Parameters:
    -
  • str (where) – The user to be used.
  • -
  • str – The remote git repository.
  • -
  • str – The tag.
  • -
  • str – The path where to extract.
  • -
  • Logger (logger) – The logger instance to use.
  • -
  • boolean (checkout) – If true use checkout svn.
  • -
  • src.environment.Environ (environment) – The environment to source when -extracting.
  • -
-
Returns:

True if the extraction is successful

-
Return type:

boolean

-
-
- -
-
-

src.template module¶

-
-
-class src.template.MyTemplate(template)[source]¶
-

Bases: string.Template

-
-
-delimiter = '\xc2\xa4'¶
-
- -
-
-pattern = <_sre.SRE_Pattern object>¶
-
- -
- -
-
-src.template.substitute(template_file, subst_dic)[source]¶
-
- -
-
-

src.test_module module¶

-
-
-class src.test_module.Test(config, logger, tmp_working_dir, testbase='', grids=None, sessions=None, launcher='', show_desktop=True)[source]¶
-
-
-generate_launching_commands()[source]¶
-
- -
-
-generate_script(listTest, script_path, ignoreList)[source]¶
-
- -
-
-get_test_timeout(test_name, default_value)[source]¶
-
- -
-
-get_tmp_dir()[source]¶
-
- -
-
-prepare_testbase(test_base_name)[source]¶
-
- -
-
-prepare_testbase_from_dir(testbase_name, testbase_dir)[source]¶
-
- -
-
-prepare_testbase_from_git(testbase_name, testbase_base, testbase_tag)[source]¶
-
- -
-
-prepare_testbase_from_svn(user, testbase_name, testbase_base)[source]¶
-
- -
-
-read_results(listTest, has_timed_out)[source]¶
-
- -
-
-run_all_tests()[source]¶
-
- -
-
-run_grid_tests()[source]¶
-
- -
-
-run_script(script_name)[source]¶
-
- -
-
-run_session_tests()[source]¶
-
- -
-
-run_testbase_tests()[source]¶
-
- -
-
-run_tests(listTest, ignoreList)[source]¶
-
- -
-
-search_known_errors(status, test_grid, test_session, test)[source]¶
-
- -
-
-write_test_margin(tab)[source]¶
-
- -
- -
-
-src.test_module.getTmpDirDEFAULT()[source]¶
-
- -
-
-

src.xmlManager module¶

-
-
-class src.xmlManager.ReadXmlFile(filePath)[source]¶
-

Bases: object

-

Class to manage reading of an xml log file

-
-
-getRootAttrib()[source]¶
-

Get the attibutes of the self.xmlroot

- --- - - - - - -
Returns:The attributes of the root node
Return type:dict
-
- -
-
-get_attrib(node_name)[source]¶
-

Get the attibutes of the node node_name in self.xmlroot

- --- - - - - - - - -
Parameters:str (node_name) – the name of the node
Returns:the attibutes of the node node_name in self.xmlroot
Return type:dict
-
- -
-
-get_node_text(node)[source]¶
-
-
Get the text of the first node that has name
-
that corresponds to the parameter node
-
- --- - - - - - - - -
Parameters:str (node) – the name of the node from which get the text
Returns:the text of the first node that has name -that corresponds to the parameter node
Return type:str
-
- -
- -
-
-class src.xmlManager.XmlLogFile(filePath, rootname, attrib={})[source]¶
-

Bases: object

-

Class to manage writing in salomeTools xml log file

-
-
-add_simple_node(node_name, text=None, attrib={})[source]¶
-

Add a node with some attibutes and text to the root node.

- --- - - - -
Parameters:
    -
  • str (text) – the name of the node to add
  • -
  • str – the text of the node
  • -
  • dict (attrib) – the dictionary containing the -attribute of the new node
  • -
-
-
- -
-
-append_node_attrib(node_name, attrib)[source]¶
-

Append a new attributes to the node that has node_name as name

- --- - - - -
Parameters:
    -
  • str (node_name) – The name of the node on which append text
  • -
  • dixt (attrib) – The attrib to append
  • -
-
-
- -
-
-append_node_text(node_name, text)[source]¶
-

Append a new text to the node that has node_name as name

- --- - - - -
Parameters:
    -
  • str (text) – The name of the node on which append text
  • -
  • str – The text to append
  • -
-
-
- -
-
-write_tree(stylesheet=None, file_path=None)[source]¶
-

Write the xml tree in the log file path. Add the stylesheet if asked.

- --- - - - -
Parameters:str (stylesheet) – The stylesheet to apply to the xml file
-
- -
- -
-
-src.xmlManager.add_simple_node(root_node, node_name, text=None, attrib={})[source]¶
-

Add a node with some attibutes and text to the root node.

- --- - - - -
Parameters:
    -
  • etree.Element (root_node) – the Etree element where to add the new node
  • -
  • str (text) – the name of the node to add
  • -
  • str – the text of the node
  • -
  • dict (attrib) – the dictionary containing the -attribute of the new node
  • -
-
-
- -
-
-src.xmlManager.append_node_attrib(root_node, attrib)[source]¶
-

Append a new attributes to the node that has node_name as name

- --- - - - -
Parameters:
    -
  • etree.Element (root_node) – the Etree element -where to append the new attibutes
  • -
  • dixt (attrib) – The attrib to append
  • -
-
-
- -
-
-src.xmlManager.find_node_by_attrib(xmlroot, name_node, key, value)[source]¶
-
-
Find the nfirst ode from xmlroot that has name name_node and that has in
-
its attributes {key : value}. Return the node
-
- --- - - - - - - - -
Parameters:
    -
  • etree.Element (xmlroot) – the Etree element where to search
  • -
  • str (value) – the name of node to search
  • -
  • str – the key to search
  • -
  • str – the value to search
  • -
-
Returns:

the found node

-
Return type:

xmlroot etree.Element

-
-
- -
-
-src.xmlManager.write_report(filename, xmlroot, stylesheet)[source]¶
-

Writes a report file from a XML tree.

- --- - - - -
Parameters:
    -
  • str (stylesheet) – The path to the file to create
  • -
  • etree.Element (xmlroot) – the Etree element to write to the file
  • -
  • str – The stylesheet to add to the begin of the file
  • -
-
-
- -
-
-

Module contents¶

-

initial imports and utilities methods for salomeTools

-
-
-class src.Path(path)[source]¶
-
-
-base()[source]¶
-
- -
-
-chmod(mode)[source]¶
-
- -
-
-copy(path, smart=False)[source]¶
-
- -
-
-copydir(dst, smart=False)[source]¶
-
- -
-
-copyfile(path)[source]¶
-
- -
- -
- -
-
-dir()[source]¶
-
- -
-
-exists()[source]¶
-
- -
-
-isdir()[source]¶
-
- -
-
-isfile()[source]¶
-
- -
- -
- -
-
-list()[source]¶
-
- -
-
-make(mode=None)[source]¶
-
- -
- -
- -
-
-rm()[source]¶
-
- -
-
-smartcopy(path)[source]¶
-
- -
- -
- -
- -
-
-exception src.SatException[source]¶
-

Bases: exceptions.Exception

-

rename Exception Class

-
- -
-
-src.activate_mesa_property(config)[source]¶
-

Add mesa property into application properties

- --- - - - -
Parameters:Config (config) – The global configuration. It must have an application!
-
- -
-
-src.check_config_has_application(config, details=None)[source]¶
-

check that the config has the key APPLICATION. Else raise an exception.

- --- - - - -
Parameters:class 'common.pyconf.Config' (config) – The config.
-
- -
-
-src.check_config_has_profile(config, details=None)[source]¶
-

check that the config has the key APPLICATION.profile. -else, raise an exception.

- --- - - - -
Parameters:class 'common.pyconf.Config' (config) – The config.
-
- -
-
-src.config_has_application(config)[source]¶
-
- -
-
-src.deepcopy_list(input_list)[source]¶
-

Do a deep copy of a list

- --- - - - - - - - -
Parameters:List (input_list) – The list to copy
Returns:The copy of the list
Return type:List
-
- -
-
-src.ensure_path_exists(p)[source]¶
-

Create a path if not existing

- --- - - - -
Parameters:str (p) – The path.
-
- -
-
-src.find_file_in_lpath(file_name, lpath, additional_dir='')[source]¶
-

Find in all the directories in lpath list the file that has the same name -as file_name. -If it is found -then return the full path of the file -else return False.

-

The additional_dir (optional) is the name of the directory to add to all -paths in lpath.

- --- - - - - - - - -
Parameters:
    -
  • str (additional_dir) – The file name to search
  • -
  • List (lpath) – The list of directories where to search
  • -
  • str – The name of the additional directory
  • -
-
Returns:

the full path of the file or False if not found

-
Return type:

str

-
-
- -
-
-src.get_base_path(config)[source]¶
-

Returns the path of the products base.

- --- - - - - - - - -
Parameters:Config (config) – The global Config instance.
Returns:The path of the products base.
Return type:str
-
- -
-
-src.get_cfg_param(config, param_name, default)[source]¶
-

eearch for param_name value in config. -if param_name is not in config -then return default, -else return the found value

- --- - - - - - - - -
Parameters:
    -
  • class 'common.pyconf.Config' (config) – The config.
  • -
  • str (default) – the name of the parameter to get the value
  • -
  • str – The value to return if param_name is not in config
  • -
-
Returns:

see initial description of the function

-
Return type:

str

-
-
- -
-
-src.get_launcher_name(config)[source]¶
-

Returns the name of salome launcher.

- --- - - - - - - - -
Parameters:Config (config) – The global Config instance.
Returns:The name of salome launcher.
Return type:str
-
- -
-
-src.get_log_path(config)[source]¶
-

Returns the path of the logs.

- --- - - - - - - - -
Parameters:Config (config) – The global Config instance.
Returns:The path of the logs.
Return type:str
-
- -
-
-src.get_property_in_product_cfg(product_cfg, pprty)[source]¶
-
- -
-
-src.get_salome_version(config)[source]¶
-
- -
-
-src.get_tmp_filename(cfg, name)[source]¶
-
- -
-
-src.handleRemoveReadonly(func, path, exc)[source]¶
-
- -
-
-src.merge_dicts(*dict_args)[source]¶
-

Given any number of dicts, shallow copy and merge into a new dict, -precedence goes to key value pairs in latter dicts.

-
- -
-
-src.only_numbers(str_num)[source]¶
-
- -
-
-src.parse_date(date)[source]¶
-

Transform YYYYMMDD_hhmmss into YYYY-MM-DD hh:mm:ss.

- --- - - - - - - - -
Parameters:str (date) – The date to transform
Returns:The date in the new format
Return type:str
-
- -
-
-src.print_info(logger, info)[source]¶
-

Prints the tuples that are in info variable in a formatted way.

- --- - - - -
Parameters:
    -
  • Logger (logger) – The logging instance to use for the prints.
  • -
  • list (info) – The list of tuples to display
  • -
-
-
- -
-
-src.read_config_from_a_file(filePath)[source]¶
-
- -
-
-src.remove_item_from_list(input_list, item)[source]¶
-

Remove all occurences of item from input_list

- --- - - - - - - - -
Parameters:List (input_list) – The list to modify
Returns:The without any item
Return type:List
-
- -
-
-src.replace_in_file(filein, strin, strout)[source]¶
-

Replace <strin> by <strout> in file <filein>

-
- -
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/application.html b/doc/build/html/commands/application.html deleted file mode 100644 index 0e987b8..0000000 --- a/doc/build/html/commands/application.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - Command application — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command application¶

-
-

Description¶

-

The application command creates a virtual SALOME application. -Virtual SALOME applications are used to start SALOME when distribution is needed.

-
-
-

Usage¶

-
    -
  • Create an application:

    -
    sat application <application>
    -
    -
    -

    Create the virtual application directory in the salomeTool application directory $APPLICATION.workdir.

    -
  • -
  • Give a name to the application:

    -
    sat application <application> --name <my_application_name>
    -
    -
    -

    Remark: this option overrides the name given in the virtual_app section of the configuration file $APPLICATION.virtual_app.name.

    -
  • -
  • Change the directory where the application is created:

    -
    sat application <application> --target <my_application_directory>
    -
    -
    -
  • -
  • Set a specific SALOME resources catalog (it will be used for the distribution of components on distant machines):

    -
    sat application <application> --catalog <path_to_catalog>
    -
    -
    -

    Note that the catalog specified will be copied to the application directory.

    -
  • -
  • Generate the catalog for a list of machines:

    -
    sat application <application> --gencat machine1,machine2,machine3
    -
    -
    -

    This will create a catalog by querying each machine through ssh protocol (memory, number of processor) with ssh.

    -
  • -
  • Generate a mesa application (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis):

    -
    sat launcher <application> --use_mesa
    -
    -
    -
  • -
-
-
-

Some useful configuration pathes¶

-

The virtual application can be configured with the virtual_app section of the configutation file.

-
    -
  • APPLICATION.virtual_app
      -
    • name : name of the launcher (to replace the default runAppli).
    • -
    • application_name : (optional) the name of the virtual application directory, if missing the default value is $name + _appli.
    • -
    -
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/clean.html b/doc/build/html/commands/clean.html deleted file mode 100644 index 61bdc22..0000000 --- a/doc/build/html/commands/clean.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - - Command clean — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command clean¶

-
-

Description¶

-

The clean command removes products in the source, build, or install directories of an application. Theses directories are usually named SOURCES, BUILD, INSTALL.

-

Use the options to define what directories you want to suppress and to set the list of products

-
-
-

Usage¶

-
    -
  • Clean all previously created build and install directories (example application as SALOME_xx):

    -
    # take care, is long time to restore, sometimes
    -sat clean SALOME-xx --build --install
    -
    -
    -
  • -
  • Clean previously created build and install directories, only for products with property is_salome_module:

    -
    sat clean SALOME-xxx --build --install \
    -                     --properties is_salome_module:yes
    -
    -
    -
  • -
-
-
-

Availables options¶

-
-
    -
  • –products : Products to clean.

    -
  • -
  • –properties :

    -
    -
    Filter the products by their properties.
    -
    Syntax: –properties <property>:<value>
    -
    -
  • -
  • –sources : Clean the product source directories.

    -
  • -
  • –build : Clean the product build directories.

    -
  • -
  • –install : Clean the product install directories.

    -
  • -
  • –all : Clean the product source, build and install directories.

    -
  • -
  • –sources_without_dev :

    -
    -
    Do not clean the products in development mode,
    -
    (they could have VCS commits pending).
    -
    -
  • -
-
-
-
-

Some useful configuration pathes¶

-

No specific configuration.

-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/compile.html b/doc/build/html/commands/compile.html deleted file mode 100644 index c3c5d05..0000000 --- a/doc/build/html/commands/compile.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - - - Command compile — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command compile¶

-
-

Description¶

-

The compile command allows compiling the products of a SALOME application.

-
-
-

Usage¶

-
    -
  • Compile a complete application:

    -
    sat compile <application>
    -
    -
    -
  • -
  • Compile only some products:

    -
    sat compile <application> --products <product1>,<product2> ...
    -
    -
    -
  • -
  • Use sat -t to duplicate the logs in the terminal (by default the log are stored and displayed with sat log command):

    -
    sat -t compile <application> --products <product1>
    -
    -
    -
  • -
  • Compile a module and its dependencies:

    -
    sat compile <application> --products med --with_fathers
    -
    -
    -
  • -
  • Compile a module and the modules depending on it (for example plugins):

    -
    sat compile <application> --products med --with_children
    -
    -
    -
  • -
  • Clean the build and install directories before starting compilation:

    -
    sat compile <application> --products GEOM  --clean_all
    -
    -
    -
    -

    Note

    -
    -
    a warning will be shown if option –products is missing
    -
    (as it will clean everything)
    -
    -
    -
  • -
  • Clean only the install directories before starting compilation:

    -
    sat compile <application> --clean_install
    -
    -
    -
  • -
  • Add options for make:

    -
    sat compile <application> --products <product> --make_flags <flags>
    -
    -
    -
  • -
  • Use the –check option to execute the unit tests after compilation:

    -
    sat compile <application> --check
    -
    -
    -
  • -
  • Remove the build directory after successful compilation (some build directory like qt are big):

    -
    sat compile <application> --products qt --clean_build_after
    -
    -
    -
  • -
  • Stop the compilation as soon as the compilation of a module fails:

    -
    sat compile <product> --stop_first_fail
    -
    -
    -
  • -
  • Do not compile, just show if products are installed or not, and where is the installation:

    -
    sat compile <application> --show
    -
    -
    -
  • -
-
-
-

Some useful configuration pathes¶

-

The way to compile a product is defined in the pyconf file configuration. -The main options are:

-
-
    -
  • build_source : the method used to build the product (cmake/autotools/script)
  • -
  • compil_script : the compilation script if build_source is equal to “script”
  • -
  • cmake_options : additional options for cmake.
  • -
  • nb_proc : number of jobs to use with make for this product.
  • -
-
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/config.html b/doc/build/html/commands/config.html deleted file mode 100644 index 3d94585..0000000 --- a/doc/build/html/commands/config.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - - - Command config — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command config¶

-
-

Description¶

-

The config command manages sat configuration. -It allows display, manipulation and operation on configuration files

-
-
-

Usage¶

-
    -
  • Edit the user personal configuration file $HOME/.salomeTools/SAT.pyconf. It is used to store the user personal choices, like the favorite editor, browser, pdf viewer:

    -
    sat config --edit
    -
    -
    -
  • -
  • List the available applications (they come from the sat projects defined in data/local.pyconf:

    -
    sat config --list
    -
    -
    -
  • -
  • Edit the configuration of an application:

    -
    sat config <application> --edit
    -
    -
    -
  • -
  • Copy an application configuration file into the user personal directory:

    -
    sat config <application> --copy [new_name]
    -
    -
    -
  • -
  • -
    Print the value of a configuration parameter.
    -
    Use the automatic completion to get recursively the parameter names.
    -
    Use –no_label option to get only the value, without label (useful in automatic scripts).
    -
    Examples (with SALOME-xx as SALOME-8.4.0 ):
    -
    -
    # sat config --value <parameter_path>
    -sat config --value .         # all the configuration
    -sat config --value LOCAL
    -sat config --value LOCAL.workdir
    -
    -# sat config <application> --value <parameter_path>
    -sat config SALOME-xx --value APPLICATION.workdir
    -sat config SALOME-xx --no_label --value APPLICATION.workdir
    -
    -
    -
  • -
  • -
    Print in one-line-by-value mode the value of a configuration parameter,
    -
    with its source expression, if any.
    -
    This is a debug mode, useful for developers.
    -
    Prints the parameter path, the source expression if any, and the final value:
    -
    -
    sat config SALOME-xx -g USER
    -
    -
    -
    -

    Note

    -

    And so, not only for fun, to get all expressions of configuration

    -
    sat config SALOME-xx -g . | grep -e "-->"
    -
    -
    -
    -
  • -
  • Print the patches that are applied:

    -
    sat config SALOME-xx --show_patchs
    -
    -
    -
  • -
  • Get information on a product configuration:

    -
  • -
-
# sat config <application> --info <product>
-sat config SALOME-xx --info KERNEL
-sat config SALOME-xx --info qt
-
-
-
-
-

Some useful configuration pathes¶

-

Exploring a current configuration.

-
    -
  • PATHS: To get list of directories where to find files.
  • -
  • USER: To get user preferences (editor, pdf viewer, web browser, default working dir).
  • -
-

sat commands:

-
sat config SALOME-xx -v PATHS
-sat config SALOME-xx -v USERS
-
-
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/doc.html b/doc/build/html/commands/doc.html deleted file mode 100644 index 2970d08..0000000 --- a/doc/build/html/commands/doc.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - Command doc — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command doc¶

-
-

Description¶

-

The doc command displays sat documentation.

-
-
-

Usage¶

-
    -
  • Show (in a web browser) the sat documentation in format xml/html:

    -
    sat doc --xml
    -
    -
    -
  • -
  • Show (in evince, for example) the (same) sat documentation in format pdf:

    -
    sat doc --pdf
    -
    -
    -
  • -
  • Edit and modify in your preference user editor the sources files (rst) of sat documentation:

    -
    sat doc --edit
    -
    -
    -
  • -
  • get information how to compile locally sat documentation (from the sources files):

    -
    sat doc --compile
    -
    -
    -
  • -
-
-
-

Some useful configuration pathes¶

-
    -
  • USER
      -
    • browser : The browser used to show the html files (firefox for example).
    • -
    • pdf_viewer : The viewer used to show the pdf files (evince for example).
    • -
    • editor : The editor used to edit ascii text files (pluma or gedit for example).
    • -
    -
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/environ.html b/doc/build/html/commands/environ.html deleted file mode 100644 index 7a32af2..0000000 --- a/doc/build/html/commands/environ.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - - - - Command environ — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command environ¶

-
-

Description¶

-

The environ command generates the environment files used -to run and compile your application (as SALOME is an example).

-
-

Note

-

these files are not required, -salomeTool set the environment himself, when compiling. -And so does the salome launcher.

-

These files are useful when someone wants to check the environment. -They could be used in debug mode to set the environment for gdb.

-
-

The configuration part at the end of this page explains how -to specify the environment used by sat (at build or run time), -and saved in some files by sat environ command.

-
-
-

Usage¶

-
    -
  • Create the shell environment files of the application:

    -
    sat environ <application>
    -
    -
    -
  • -
  • Create the environment files of the application for a given shell. -Options are bash, bat (for windows) and cfg (the configuration format used by SALOME):

    -
    sat environ <application> --shell [bash|cfg|all]
    -
    -
    -
  • -
  • Use a different prefix for the files (default is ‘env’):

    -
    # This will create file <prefix>_launch.sh, <prefix>_build.sh
    -sat environ <application> --prefix <prefix>
    -
    -
    -
  • -
  • Use a different target directory for the files:

    -
    # This will create file env_launch.sh, env_build.sh
    -# in the directory corresponding to <path>
    -sat environ <application> --target <path>
    -
    -
    -
  • -
  • Generate the environment files only with the given products:

    -
    # This will create the environment files only for the given products
    -# and their prerequisites.
    -# It is useful when you want to visualise which environment uses
    -# sat to compile a given product.
    -sat environ <application> --product <product1>,<product2>, ...
    -
    -
    -
  • -
-
-
-

Configuration¶

-

The specification of the environment can be done through several mechanisms.

-
    -
  1. For salome products (the products with the property is_SALOME_module as yes) the environment is set automatically by sat, in respect with SALOME requirements.
  2. -
  3. For other products, the environment is set with the use of the environ section within the pyconf file of the product. The user has two possibilities, either set directly the environment within the section, or specify a python script which wil be used to set the environment programmatically.
  4. -
-

Within the section, the user can define environment variables. He can also modify PATH variables, by appending or prepending directories. -In the following example, we prepend <install_dir>/lib to LD_LIBRARY_PATH (note the left first underscore), append <install_dir>/lib to PYTHONPATH (note the right last underscore), and set LAPACK_ROOT_DIR to <install_dir>:

-
environ :
-{
-  _LD_LIBRARY_PATH : $install_dir + $VARS.sep + "lib"
-  PYTHONPATH_ : $install_dir + $VARS.sep + "lib"
-  LAPACK_ROOT_DIR : $install_dir
-}
-
-
-

It is possible to distinguish the build environment from the launch environment: use a subsection called build or launch. In the example below, LD_LIBRARY_PATH and PYTHONPATH are only modified at run time, not at compile time:

-
environ :
-{
-  build :
-  {
-    LAPACK_ROOT_DIR : $install_dir
-  }
-  launch :
-  {
-    LAPACK_ROOT_DIR : $install_dir
-    _LD_LIBRARY_PATH : $install_dir + $VARS.sep + "lib"
-    PYTHONPATH_ : $install_dir + $VARS.sep + "lib"
-  }
-}
-
-
-
    -
  1. The last possibility is to set the environment with a python script. The script should be provided in the products/env_scripts directory of the sat project, and its name is specified in the environment section with the key environ.env_script:
  2. -
-
environ :
-{
-  env_script : 'lapack.py'
-}
-
-
-

Please note that the two modes are complementary and are both taken into account. -Most of the time, the first mode is sufficient.

-

The second mode can be used when the environment has to be set programmatically. -The developer implements a handle (as a python method) -which is called by sat to set the environment. -Here is an example:

-
#!/usr/bin/env python
-#-*- coding:utf-8 -*-
-
-import os.path
-import platform
-
-def set_env(env, prereq_dir, version):
-    env.set("TRUST_ROOT_DIR",prereq_dir)
-    env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
-    env.prepend('PATH', os.path.join(prereq_dir, 'include'))
-    env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib'))
-    return
-
-
-

SalomeTools defines four handles:

-
    -
  • set_env(env, prereq_dir, version) : used at build and run time.
  • -
  • set_env_launch(env, prereq_dir, version) : used only at run time (if defined!)
  • -
  • set_env_build(env, prereq_dir, version) : used only at build time (if defined!)
  • -
  • set_native_env(env) : used only for native products, at build and run time.
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/generate.html b/doc/build/html/commands/generate.html deleted file mode 100644 index 14f3566..0000000 --- a/doc/build/html/commands/generate.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - Command generate — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command generate¶

-
-

Description¶

-

The generate command generates and compile SALOME modules from cpp modules using YACSGEN.

-
-

Note

-

This command uses YACSGEN to generate the module. It needs to be specified with –yacsgen option, or defined in the product or by the environment variable $YACSGEN_ROOT_DIR.

-
-
-
-

Remarks¶

-
    -
  • This command will only apply on the CPP modules of the application, those who have both properties:

    -
    cpp : "yes"
    -generate : "yes"
    -
    -
    -
  • -
  • The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation)

    -
  • -
-
-
-

Usage¶

-
    -
  • Generate all the modules of a product:

    -
    sat generate <application>
    -
    -
    -
  • -
  • Generate only specific modules:

    -
    sat generate <application> --products <list_of_products>
    -
    -
    -

    Remark: modules which don’t have the generate property are ignored.

    -
  • -
  • Use a specific version of YACSGEN:

    -
    sat generate <application> --yacsgen <path_to_yacsgen>
    -
    -
    -
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/launcher.html b/doc/build/html/commands/launcher.html deleted file mode 100644 index 1b3aaf2..0000000 --- a/doc/build/html/commands/launcher.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - Command launcher — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command launcher¶

-
-

Description¶

-

The launcher command creates a SALOME launcher, a python script file to start SALOME.

-
-
-

Usage¶

-
    -
  • Create a launcher:

    -
    sat launcher <application>
    -
    -
    -

    Generate a launcher in the application directory, i.e $APPLICATION.workdir.

    -
  • -
  • Create a launcher with a given name (default name is APPLICATION.profile.launcher_name)

    -
    sat launcher <application> --name ZeLauncher
    -
    -
    -

    The launcher will be called ZeLauncher.

    -
  • -
  • Set a specific resources catalog:

    -
    sat launcher <application>  --catalog  <path of a salome resources catalog>
    -
    -
    -

    Note that the catalog specified will be copied to the profile directory.

    -
  • -
  • Generate the catalog for a list of machines:

    -
    sat launcher <application> --gencat <list of machines>
    -
    -
    -

    This will create a catalog by querying each machine (memory, number of processor) with ssh.

    -
  • -
  • Generate a mesa launcher (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis):

    -
    sat launcher <application> --use_mesa
    -
    -
    -
  • -
-
-
-

Configuration¶

-

Some useful configuration pathes:

-
    -
  • APPLICATION.profile
      -
    • product : the name of the profile product (the product in charge of holding the application stuff, like logos, splashscreen)
    • -
    • launcher_name : the name of the launcher.
    • -
    -
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/log.html b/doc/build/html/commands/log.html deleted file mode 100644 index 11da33c..0000000 --- a/doc/build/html/commands/log.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - Command log — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command log¶

-
-

Description¶

-

The log command displays sat log in a web browser or in a terminal.

-
-
-

Usage¶

-
    -
  • Show (in a web browser) the log of the commands corresponding to an application:

    -
    sat log <application>
    -
    -
    -
  • -
  • Show the log for commands that do not use any application:

    -
    sat log
    -
    -
    -
  • -
  • The –terminal (or -t) display the log directly in the terminal, through a CLI interactive menu:

    -
    sat log <application> --terminal
    -
    -
    -
  • -
  • The –last option displays only the last command:

    -
    sat log <application> --last
    -
    -
    -
  • -
  • To access the last compilation log in terminal mode, use –last_terminal option:

    -
    sat log <application> --last_terminal
    -
    -
    -
  • -
  • The –clean (int) option erases the n older log files and print the number of remaining log files:

    -
    sat log <application> --clean 50
    -
    -
    -
  • -
-
-
-

Some useful configuration pathes¶

-
    -
  • USER
      -
    • browser : The browser used to show the log (by default firefox).
    • -
    • log_dir : The directory used to store the log files.
    • -
    -
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/package.html b/doc/build/html/commands/package.html deleted file mode 100644 index 8ef7236..0000000 --- a/doc/build/html/commands/package.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - Command package — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command package¶

-
-

Description¶

-

The package command creates a SALOME archive (usually a compressed Tar file .tgz). -This tar file is used later to intall SALOME on other remote computer.

-

Depending on the selected options, the archive includes sources and binaries -of SALOME products and prerequisites.

-

Usually utility salomeTools is included in the archive.

-
-

Note

-

By default the package includes the sources of prerequisites and products. -To select a subset use the –without_property or –with_vcs options.

-
-
-
-

Usage¶

-
    -
  • Create a package for a product (example as SALOME_xx):

    -
    sat package SALOME_xx
    -
    -
    -

    This command will create an archive named SALOME_xx.tgz -in the working directory (USER.workDir). -If the archive already exists, do nothing.

    -
  • -
  • Create a package with a specific name:

    -
    sat package SALOME_xx --name YourSpecificName
    -
    -
    -
  • -
-
-

Note

-

By default, the archive is created in the working directory of the user (USER.workDir).

-

If the option –name is used with a path (relative or absolute) it will be used.

-

If the option –name is not used and binaries (prerequisites and products) -are included in the package, the OS architecture -will be appended to the name (example: SALOME_xx-CO7.tgz).

-

Examples:

-
# Creates SALOME_xx.tgz in $USER.workDir
-sat package SALOME_xx
-
-# Creates SALOME_xx_<arch>.tgz in $USER.workDir
-sat package SALOME_xx --binaries
-
-# Creates MySpecificName.tgz in $USER.workDir
-sat package SALOME_xx --name MySpecificName
-
-
-
-
    -
  • Force the creation of the archive (if it already exists):

    -
    sat package SALOME_xx --force
    -
    -
    -
  • -
  • Include the binaries in the archive (products and prerequisites):

    -
    sat package SALOME_xx --binaries
    -
    -
    -

    This command will create an archive named SALOME_xx _<arch>.tgz -where <arch> is the OS architecture of the machine.

    -
  • -
  • Do not delete Version Control System (VCS) informations from the configurations files of the embedded salomeTools:

    -
    sat package SALOME_xx --with_vcs
    -
    -
    -

    The version control systems known by this option are CVS, SVN and Git.

    -
  • -
-
-
-

Some useful configuration pathes¶

-

No specific configuration.

-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/commands/prepare.html b/doc/build/html/commands/prepare.html deleted file mode 100644 index ea6379f..0000000 --- a/doc/build/html/commands/prepare.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - Command prepare — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Command prepare¶

-
-

Description¶

-

The prepare command brings the sources of an application in the sources -application directory, in order to compile them with the compile command.

-

The sources can be prepared from VCS software (cvs, svn, git), an archive or a directory.

-
-

Warning

-

When sat prepares a product, it first removes the -existing directory, except if the development mode is activated. -When you are working on a product, you need to declare in -the application configuration this product in dev mode.

-
-
-
-

Remarks¶

-
-

VCS bases (git, svn, cvs)¶

-

The prepare command does not manage authentication on the cvs server. -For example, to prepare modules from a cvs server, you first need to login once.

-

To avoid typing a password for each product, -you may use a ssh key with passphrase, or store your password -(in .cvspass or .gitconfig files). -If you have security concerns, it is also possible to use -a bash agent and type your password only once.

-
-
-

Dev mode¶

-

By default prepare uses export mode: it creates an image -of the sources, corresponding to the tag or branch specified, -without any link to the VCS base. -To perform a checkout (svn, cvs) or a git clone (git), -you need to declare the product in dev mode in your application configuration: -edit the application configuration file (pyconf) and modify the product declaration:

-
sat config <application> -e
-# and edit the product section:
-#   <product> : {tag : "my_tag", dev : "yes", debug : "yes"}
-
-
-

The first time you will execute the sat prepare command, -your module will be downloaded in checkout mode -(inside the SOURCES directory of the application. -Then, you can develop in this repository, and finally push -them in the base when they are ready. -If you type during the development process by mistake -a sat prepare command, the sources in dev mode will -not be altered/removed (Unless you use -f option)

-
-
-
-

Usage¶

-
    -
  • Prepare the sources of a complete application in SOURCES directory (all products):

    -
    sat prepare <application>
    -
    -
    -
  • -
  • Prepare only some modules:

    -
    sat prepare <application>  --products <product1>,<product2> ...
    -
    -
    -
  • -
  • Use –force to force to prepare the products in development mode -(this will remove the sources and do a new clone/checkout):

    -
    sat prepare <application> --force
    -
    -
    -
  • -
  • Use –force_patch to force to apply patch to the products -in development mode (otherwise they are not applied):

    -
    sat prepare <application> --force_patch
    -
    -
    -
  • -
-
-
-

Some useful configuration pathes¶

-

Command sat prepare uses the pyconf file configuration of each product to know how to get the sources.

-
-

Note

-

to verify configuration of a product, and get name of this pyconf files configuration

-
sat config <application> --info <product>
-
-
-
-
    -
  • get_method: the method to use to prepare the module, possible values are cvs, git, archive, dir.
  • -
  • git_info : (used if get_method = git) information to prepare sources from git.
  • -
  • svn_info : (used if get_method = svn) information to prepare sources from cvs.
  • -
  • cvs_info : (used if get_method = cvs) information to prepare sources from cvs.
  • -
  • archive_info : (used if get_method = archive) the path to the archive.
  • -
  • dir_info : (used if get_method = dir) the directory with the sources.
  • -
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/configuration.html b/doc/build/html/configuration.html deleted file mode 100644 index 18c8654..0000000 --- a/doc/build/html/configuration.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - Configuration — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Configuration¶

-

salomeTools uses files to store its configuration parameters.

-

There are several configuration files which are loaded by salomeTools in a specific order. -When all the files are loaded a config object is created. -Then, this object is passed to all command scripts.

-
-

Syntax¶

-

The configuration files use a python-like structure format -(see config module for a complete description).

-
    -
  • {} define a dictionary,
  • -
  • [] define a list,
  • -
  • @ can be used to include a file,
  • -
  • $prefix reference to another parameter (ex: $PRODUCT.name),
  • -
  • # comments.
  • -
-
-

Note

-

in this documentation a reference to a configuration parameter will be noted XXX.YYY.

-
-
-
-

Description¶

-
-

VARS section¶

-
-
This section is dynamically created by salomeTools at run time.
-
It contains information about the environment: date, time, OS, architecture etc.
-
-
# to get the current setting
-sat config --value VARS
-
-
-
-
-

PRODUCTS section¶

-
-
This section is defined in the product file.
-
It contains instructions on how to build a version of SALOME (list of prerequisites-products and versions)
-
-
# to get the current setting
-sat config SALOME-xx --value PRODUCTS
-
-
-
-
-

APPLICATION section¶

-
-
This section is optional, it is also defined in the product file.
-
It gives additional parameters to create an application based on SALOME, as versions of products to use.
-
-
# to get the current setting
-sat config SALOME-xx --value APPLICATION
-
-
-
-
-

USER section¶

-

This section is defined by the user configuration file, -~/.salomeTools/salomeTools.pyconf.

-

The USER section defines some parameters (not exhaustive):

-
    -
  • workDir :

    -
    -
    -
    The working directory.
    -
    Each product will be usually installed here (in sub-directories).
    -
    -
    -
  • -
  • browser : The web browser to use (firefox).

    -
  • -
  • editor : The editor to use (vi, pluma).

    -
  • -
  • and other user preferences.

    -
  • -
-
# to get the current setting
-sat config SALOME-xx --value USER
-
-
-
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/genindex.html b/doc/build/html/genindex.html deleted file mode 100644 index 527afe9..0000000 --- a/doc/build/html/genindex.html +++ /dev/null @@ -1,1436 +0,0 @@ - - - - - - - - - Index — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- - -

Index

- -
- A - | B - | C - | D - | E - | F - | G - | H - | I - | K - | L - | M - | N - | O - | P - | Q - | R - | S - | T - | U - | W - | X - | Y - -
-

A

- - - -
- -

B

- - - -
- -

C

- - - -
- -

D

- - - -
- -

E

- - - -
- -

F

- - - -
- -

G

- - - -
- -

H

- - - -
- -

I

- - - -
- -

K

- - -
- -

L

- - - -
- -

M

- - - -
- -

N

- - - -
- -

O

- - - -
- -

P

- - - -
- -

Q

- - -
- -

R

- - - -
- -

S

- - - -
- -

T

- - - -
- -

U

- - - -
- -

W

- - - -
- -

X

- - - -
- -

Y

- - -
- - - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/index.html b/doc/build/html/index.html deleted file mode 100644 index 687e775..0000000 --- a/doc/build/html/index.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - Salome Tools — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
-
-

Salome Tools¶

-_images/sat_about.png -
-

Warning

-

This documentation is under construction.

-
-

The SalomeTools (sat) is a suite of commands -that can be used to perform operations on SALOME.

-

For example, sat allows you to compile SALOME’s codes -(prerequisites, products) -create application, run tests, create package, etc.

-

This utility code is a set of Python scripts files.

-

Find a pdf version of this documentation

- - -
-

Developer documentation¶

- -
-
-

Code documentation¶

-
- -
-
-
-

Release Notes¶

- -
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/installation_of_sat.html b/doc/build/html/installation_of_sat.html deleted file mode 100644 index d5977d2..0000000 --- a/doc/build/html/installation_of_sat.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - Installation — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Installation¶

-

Usually user could find (and use) command sat directly after a ‘detar’ installation of SALOME.

-
tar -xf .../SALOME_xx.tgz
-cd SALOME_xx
-ls -l sat      # sat -> salomeTools/sat
-
-
-

Python package (scripts of salomeTools) actually remains in directory salomeTools.

-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/objects.inv b/doc/build/html/objects.inv deleted file mode 100644 index 477227f..0000000 Binary files a/doc/build/html/objects.inv and /dev/null differ diff --git a/doc/build/html/py-modindex.html b/doc/build/html/py-modindex.html deleted file mode 100644 index 00dff51..0000000 --- a/doc/build/html/py-modindex.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - Python Module Index — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- - -

Python Module Index

- -
- s -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
- s
- src -
    - src.architecture -
    - src.colorama -
    - src.colorama.ansi -
    - src.colorama.ansitowin32 -
    - src.colorama.initialise -
    - src.colorama.win32 -
    - src.colorama.winterm -
    - src.compilation -
    - src.debug -
    - src.ElementTree -
    - src.environment -
    - src.fileEnviron -
    - src.fork -
    - src.logger -
    - src.options -
    - src.printcolors -
    - src.product -
    - src.pyconf -
    - src.system -
    - src.template -
    - src.test_module -
    - src.xmlManager -
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/release_notes/release_notes_5.0.0.html b/doc/build/html/release_notes/release_notes_5.0.0.html deleted file mode 100644 index 502b867..0000000 --- a/doc/build/html/release_notes/release_notes_5.0.0.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - Release notes — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Release notes¶

-

In construction.

-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/search.html b/doc/build/html/search.html deleted file mode 100644 index 6ddceb1..0000000 --- a/doc/build/html/search.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - Search — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Search

-
- -

- Please activate JavaScript to enable the search - functionality. -

-
-

- From here you can search these documents. Enter your search - words into the box below and click "search". Note that the search - function will automatically search for all of the words. Pages - containing fewer words won't appear in the result list. -

-
- - - -
- -
- -
- -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/searchindex.js b/doc/build/html/searchindex.js deleted file mode 100644 index 711cdcd..0000000 --- a/doc/build/html/searchindex.js +++ /dev/null @@ -1 +0,0 @@ -Search.setIndex({docnames:["commands/apidoc/modules","commands/apidoc/src","commands/apidoc/src.colorama","commands/application","commands/clean","commands/compile","commands/config","commands/doc","commands/environ","commands/generate","commands/launcher","commands/log","commands/package","commands/prepare","configuration","index","installation_of_sat","release_notes/release_notes_5.0.0","usage_of_sat","write_command"],envversion:52,filenames:["commands/apidoc/modules.rst","commands/apidoc/src.rst","commands/apidoc/src.colorama.rst","commands/application.rst","commands/clean.rst","commands/compile.rst","commands/config.rst","commands/doc.rst","commands/environ.rst","commands/generate.rst","commands/launcher.rst","commands/log.rst","commands/package.rst","commands/prepare.rst","configuration.rst","index.rst","installation_of_sat.rst","release_notes/release_notes_5.0.0.rst","usage_of_sat.rst","write_command.rst"],objects:{"":{src:[1,0,0,"-"]},"src.ElementTree":{Comment:[1,1,1,""],Element:[1,1,1,""],ElementTree:[1,2,1,""],PI:[1,1,1,""],ProcessingInstruction:[1,1,1,""],QName:[1,2,1,""],SubElement:[1,1,1,""],TreeBuilder:[1,2,1,""],XML:[1,1,1,""],XMLTreeBuilder:[1,2,1,""],dump:[1,1,1,""],fromstring:[1,1,1,""],iselement:[1,1,1,""],iterparse:[1,2,1,""],parse:[1,1,1,""],tostring:[1,1,1,""]},"src.ElementTree.ElementTree":{find:[1,3,1,""],findall:[1,3,1,""],findtext:[1,3,1,""],getiterator:[1,3,1,""],getroot:[1,3,1,""],parse:[1,3,1,""],write:[1,3,1,""]},"src.ElementTree.TreeBuilder":{close:[1,3,1,""],data:[1,3,1,""],end:[1,3,1,""],start:[1,3,1,""]},"src.ElementTree.XMLTreeBuilder":{close:[1,3,1,""],doctype:[1,3,1,""],feed:[1,3,1,""]},"src.ElementTree.iterparse":{next:[1,3,1,""]},"src.Path":{base:[1,3,1,""],chmod:[1,3,1,""],copy:[1,3,1,""],copydir:[1,3,1,""],copyfile:[1,3,1,""],copylink:[1,3,1,""],dir:[1,3,1,""],exists:[1,3,1,""],isdir:[1,3,1,""],isfile:[1,3,1,""],islink:[1,3,1,""],list:[1,3,1,""],make:[1,3,1,""],readlink:[1,3,1,""],rm:[1,3,1,""],smartcopy:[1,3,1,""],symlink:[1,3,1,""]},"src.architecture":{get_distrib_version:[1,1,1,""],get_distribution:[1,1,1,""],get_nb_proc:[1,1,1,""],get_python_version:[1,1,1,""],get_user:[1,1,1,""],is_windows:[1,1,1,""]},"src.colorama":{ansi:[2,0,0,"-"],ansitowin32:[2,0,0,"-"],initialise:[2,0,0,"-"],win32:[2,0,0,"-"],winterm:[2,0,0,"-"]},"src.colorama.ansi":{AnsiBack:[2,2,1,""],AnsiCodes:[2,2,1,""],AnsiCursor:[2,2,1,""],AnsiFore:[2,2,1,""],AnsiStyle:[2,2,1,""],clear_line:[2,1,1,""],clear_screen:[2,1,1,""],code_to_chars:[2,1,1,""],set_title:[2,1,1,""]},"src.colorama.ansi.AnsiBack":{BLACK:[2,5,1,""],BLUE:[2,5,1,""],CYAN:[2,5,1,""],GREEN:[2,5,1,""],LIGHTBLACK_EX:[2,5,1,""],LIGHTBLUE_EX:[2,5,1,""],LIGHTCYAN_EX:[2,5,1,""],LIGHTGREEN_EX:[2,5,1,""],LIGHTMAGENTA_EX:[2,5,1,""],LIGHTRED_EX:[2,5,1,""],LIGHTWHITE_EX:[2,5,1,""],LIGHTYELLOW_EX:[2,5,1,""],MAGENTA:[2,5,1,""],RED:[2,5,1,""],RESET:[2,5,1,""],WHITE:[2,5,1,""],YELLOW:[2,5,1,""]},"src.colorama.ansi.AnsiCursor":{BACK:[2,3,1,""],DOWN:[2,3,1,""],FORWARD:[2,3,1,""],POS:[2,3,1,""],UP:[2,3,1,""]},"src.colorama.ansi.AnsiFore":{BLACK:[2,5,1,""],BLUE:[2,5,1,""],CYAN:[2,5,1,""],GREEN:[2,5,1,""],LIGHTBLACK_EX:[2,5,1,""],LIGHTBLUE_EX:[2,5,1,""],LIGHTCYAN_EX:[2,5,1,""],LIGHTGREEN_EX:[2,5,1,""],LIGHTMAGENTA_EX:[2,5,1,""],LIGHTRED_EX:[2,5,1,""],LIGHTWHITE_EX:[2,5,1,""],LIGHTYELLOW_EX:[2,5,1,""],MAGENTA:[2,5,1,""],RED:[2,5,1,""],RESET:[2,5,1,""],WHITE:[2,5,1,""],YELLOW:[2,5,1,""]},"src.colorama.ansi.AnsiStyle":{BRIGHT:[2,5,1,""],DIM:[2,5,1,""],NORMAL:[2,5,1,""],RESET_ALL:[2,5,1,""]},"src.colorama.ansitowin32":{AnsiToWin32:[2,2,1,""],StreamWrapper:[2,2,1,""],is_a_tty:[2,1,1,""],is_stream_closed:[2,1,1,""]},"src.colorama.ansitowin32.AnsiToWin32":{ANSI_CSI_RE:[2,5,1,""],ANSI_OSC_RE:[2,5,1,""],call_win32:[2,3,1,""],convert_ansi:[2,3,1,""],convert_osc:[2,3,1,""],extract_params:[2,3,1,""],get_win32_calls:[2,3,1,""],reset_all:[2,3,1,""],should_wrap:[2,3,1,""],write:[2,3,1,""],write_and_convert:[2,3,1,""],write_plain_text:[2,3,1,""]},"src.colorama.ansitowin32.StreamWrapper":{write:[2,3,1,""]},"src.colorama.initialise":{colorama_text:[2,1,1,""],deinit:[2,1,1,""],init:[2,1,1,""],reinit:[2,1,1,""],reset_all:[2,1,1,""],wrap_stream:[2,1,1,""]},"src.colorama.win32":{SetConsoleTextAttribute:[2,1,1,""],winapi_test:[2,1,1,""]},"src.colorama.winterm":{WinColor:[2,2,1,""],WinStyle:[2,2,1,""],WinTerm:[2,2,1,""]},"src.colorama.winterm.WinColor":{BLACK:[2,5,1,""],BLUE:[2,5,1,""],CYAN:[2,5,1,""],GREEN:[2,5,1,""],GREY:[2,5,1,""],MAGENTA:[2,5,1,""],RED:[2,5,1,""],YELLOW:[2,5,1,""]},"src.colorama.winterm.WinStyle":{BRIGHT:[2,5,1,""],BRIGHT_BACKGROUND:[2,5,1,""],NORMAL:[2,5,1,""]},"src.colorama.winterm.WinTerm":{back:[2,3,1,""],cursor_adjust:[2,3,1,""],erase_line:[2,3,1,""],erase_screen:[2,3,1,""],fore:[2,3,1,""],get_attrs:[2,3,1,""],get_position:[2,3,1,""],reset_all:[2,3,1,""],set_attrs:[2,3,1,""],set_console:[2,3,1,""],set_cursor_position:[2,3,1,""],set_title:[2,3,1,""],style:[2,3,1,""]},"src.compilation":{Builder:[1,2,1,""]},"src.compilation.Builder":{build_configure:[1,3,1,""],check:[1,3,1,""],cmake:[1,3,1,""],complete_environment:[1,3,1,""],configure:[1,3,1,""],do_batch_script_build:[1,3,1,""],do_default_build:[1,3,1,""],do_python_script_build:[1,3,1,""],do_script_build:[1,3,1,""],hack_libtool:[1,3,1,""],install:[1,3,1,""],log:[1,3,1,""],log_command:[1,3,1,""],make:[1,3,1,""],prepare:[1,3,1,""],put_txt_log_in_appli_log_dir:[1,3,1,""],wmake:[1,3,1,""]},"src.debug":{InStream:[1,2,1,""],OutStream:[1,2,1,""],format_color_exception:[1,1,1,""],format_exception:[1,1,1,""],getLocalEnv:[1,1,1,""],getStrConfigDbg:[1,1,1,""],getStrConfigStd:[1,1,1,""],indent:[1,1,1,""],isTypeConfig:[1,1,1,""],pop_debug:[1,1,1,""],push_debug:[1,1,1,""],saveConfigDbg:[1,1,1,""],saveConfigStd:[1,1,1,""],tofix:[1,1,1,""],write:[1,1,1,""]},"src.debug.OutStream":{close:[1,3,1,""]},"src.environment":{Environ:[1,2,1,""],FileEnvWriter:[1,2,1,""],SalomeEnviron:[1,2,1,""],Shell:[1,2,1,""],load_environment:[1,1,1,""]},"src.environment.Environ":{append:[1,3,1,""],append_value:[1,3,1,""],command_value:[1,3,1,""],get:[1,3,1,""],is_defined:[1,3,1,""],prepend:[1,3,1,""],prepend_value:[1,3,1,""],set:[1,3,1,""]},"src.environment.FileEnvWriter":{write_cfgForPy_file:[1,3,1,""],write_env_file:[1,3,1,""]},"src.environment.SalomeEnviron":{add_comment:[1,3,1,""],add_line:[1,3,1,""],add_warning:[1,3,1,""],append:[1,3,1,""],dump:[1,3,1,""],finish:[1,3,1,""],get:[1,3,1,""],get_names:[1,3,1,""],is_defined:[1,3,1,""],load_cfg_environment:[1,3,1,""],prepend:[1,3,1,""],run_env_script:[1,3,1,""],run_simple_env_script:[1,3,1,""],set:[1,3,1,""],set_a_product:[1,3,1,""],set_application_env:[1,3,1,""],set_cpp_env:[1,3,1,""],set_full_environ:[1,3,1,""],set_products:[1,3,1,""],set_python_libdirs:[1,3,1,""],set_salome_generic_product_env:[1,3,1,""],set_salome_minimal_product_env:[1,3,1,""]},"src.fileEnviron":{BashFileEnviron:[1,2,1,""],BatFileEnviron:[1,2,1,""],ContextFileEnviron:[1,2,1,""],FileEnviron:[1,2,1,""],LauncherFileEnviron:[1,2,1,""],ScreenEnviron:[1,2,1,""],get_file_environ:[1,1,1,""],special_path_separator:[1,1,1,""]},"src.fileEnviron.BashFileEnviron":{command_value:[1,3,1,""],finish:[1,3,1,""],set:[1,3,1,""]},"src.fileEnviron.BatFileEnviron":{add_comment:[1,3,1,""],command_value:[1,3,1,""],finish:[1,3,1,""],get:[1,3,1,""],set:[1,3,1,""]},"src.fileEnviron.ContextFileEnviron":{add_echo:[1,3,1,""],add_warning:[1,3,1,""],append_value:[1,3,1,""],command_value:[1,3,1,""],finish:[1,3,1,""],get:[1,3,1,""],prepend_value:[1,3,1,""],set:[1,3,1,""]},"src.fileEnviron.FileEnviron":{add_comment:[1,3,1,""],add_echo:[1,3,1,""],add_line:[1,3,1,""],add_warning:[1,3,1,""],append:[1,3,1,""],append_value:[1,3,1,""],command_value:[1,3,1,""],finish:[1,3,1,""],get:[1,3,1,""],is_defined:[1,3,1,""],prepend:[1,3,1,""],prepend_value:[1,3,1,""],set:[1,3,1,""]},"src.fileEnviron.LauncherFileEnviron":{add:[1,3,1,""],add_comment:[1,3,1,""],add_echo:[1,3,1,""],add_line:[1,3,1,""],add_warning:[1,3,1,""],append:[1,3,1,""],append_value:[1,3,1,""],change_to_launcher:[1,3,1,""],command_value:[1,3,1,""],finish:[1,3,1,""],get:[1,3,1,""],is_defined:[1,3,1,""],prepend:[1,3,1,""],prepend_value:[1,3,1,""],set:[1,3,1,""]},"src.fileEnviron.ScreenEnviron":{add_comment:[1,3,1,""],add_echo:[1,3,1,""],add_line:[1,3,1,""],add_warning:[1,3,1,""],append:[1,3,1,""],command_value:[1,3,1,""],get:[1,3,1,""],is_defined:[1,3,1,""],prepend:[1,3,1,""],run_env_script:[1,3,1,""],set:[1,3,1,""],write:[1,3,1,""]},"src.fork":{batch:[1,1,1,""],batch_salome:[1,1,1,""],launch_command:[1,1,1,""],show_progress:[1,1,1,""],write_back:[1,1,1,""]},"src.logger":{Logger:[1,2,1,""],date_to_datetime:[1,1,1,""],getCurrentLogger:[1,1,1,""],getDefaultLogger:[1,1,1,""],getUnittestLogger:[1,1,1,""],isCurrentLoggerUnittest:[1,1,1,""],list_log_file:[1,1,1,""],sendMessageToCurrentLogger:[1,1,1,""],setCurrentLogger:[1,1,1,""],show_command_log:[1,1,1,""],timedelta_total_seconds:[1,1,1,""],update_hat_xml:[1,1,1,""]},"src.logger.Logger":{add_link:[1,3,1,""],end_write:[1,3,1,""],error:[1,3,1,""],flush:[1,3,1,""],put_initial_xml_fields:[1,3,1,""],write:[1,3,1,""]},"src.options":{OptResult:[1,2,1,""],Options:[1,2,1,""]},"src.options.Options":{add_option:[1,3,1,""],debug_write:[1,3,1,""],filterLevel:[1,3,1,""],filterList2:[1,3,1,""],getDetailOption:[1,3,1,""],get_help:[1,3,1,""],indent:[1,3,1,""],parse_args:[1,3,1,""]},"src.printcolors":{cleancolor:[1,1,1,""],print_color_map:[1,1,1,""],print_color_range:[1,1,1,""],print_value:[1,1,1,""],printc:[1,1,1,""],printcError:[1,1,1,""],printcHeader:[1,1,1,""],printcHighlight:[1,1,1,""],printcInfo:[1,1,1,""],printcLabel:[1,1,1,""],printcSuccess:[1,1,1,""],printcWarning:[1,1,1,""]},"src.product":{check_config_exists:[1,1,1,""],check_installation:[1,1,1,""],check_source:[1,1,1,""],get_base_install_dir:[1,1,1,""],get_install_dir:[1,1,1,""],get_product_components:[1,1,1,""],get_product_config:[1,1,1,""],get_product_dependencies:[1,1,1,""],get_product_section:[1,1,1,""],get_products_infos:[1,1,1,""],product_compiles:[1,1,1,""],product_has_env_script:[1,1,1,""],product_has_logo:[1,1,1,""],product_has_patches:[1,1,1,""],product_has_salome_gui:[1,1,1,""],product_has_script:[1,1,1,""],product_is_autotools:[1,1,1,""],product_is_cmake:[1,1,1,""],product_is_cpp:[1,1,1,""],product_is_debug:[1,1,1,""],product_is_dev:[1,1,1,""],product_is_fixed:[1,1,1,""],product_is_generated:[1,1,1,""],product_is_mpi:[1,1,1,""],product_is_native:[1,1,1,""],product_is_salome:[1,1,1,""],product_is_smesh_plugin:[1,1,1,""],product_is_vcs:[1,1,1,""],product_is_verbose:[1,1,1,""]},"src.pyconf":{Config:[1,2,1,""],ConfigError:[1,4,1,""],ConfigFormatError:[1,4,1,""],ConfigInputStream:[1,2,1,""],ConfigList:[1,2,1,""],ConfigMerger:[1,2,1,""],ConfigOutputStream:[1,2,1,""],ConfigReader:[1,2,1,""],ConfigResolutionError:[1,4,1,""],Container:[1,2,1,""],Expression:[1,2,1,""],Mapping:[1,2,1,""],Reference:[1,2,1,""],Sequence:[1,2,1,""],deepCopyMapping:[1,1,1,""],defaultMergeResolve:[1,1,1,""],defaultStreamOpener:[1,1,1,""],isWord:[1,1,1,""],makePath:[1,1,1,""],overwriteMergeResolve:[1,1,1,""]},"src.pyconf.Config":{Namespace:[1,2,1,""],addNamespace:[1,3,1,""],getByPath:[1,3,1,""],load:[1,3,1,""],removeNamespace:[1,3,1,""]},"src.pyconf.ConfigInputStream":{close:[1,3,1,""],read:[1,3,1,""],readline:[1,3,1,""]},"src.pyconf.ConfigList":{getByPath:[1,3,1,""]},"src.pyconf.ConfigMerger":{handleMismatch:[1,3,1,""],merge:[1,3,1,""],mergeMapping:[1,3,1,""],mergeSequence:[1,3,1,""],overwriteKeys:[1,3,1,""]},"src.pyconf.ConfigOutputStream":{close:[1,3,1,""],flush:[1,3,1,""],write:[1,3,1,""]},"src.pyconf.ConfigReader":{getChar:[1,3,1,""],getToken:[1,3,1,""],load:[1,3,1,""],location:[1,3,1,""],match:[1,3,1,""],parseFactor:[1,3,1,""],parseKeyValuePair:[1,3,1,""],parseMapping:[1,3,1,""],parseMappingBody:[1,3,1,""],parseReference:[1,3,1,""],parseScalar:[1,3,1,""],parseSequence:[1,3,1,""],parseSuffix:[1,3,1,""],parseTerm:[1,3,1,""],parseValue:[1,3,1,""],setStream:[1,3,1,""]},"src.pyconf.Container":{evaluate:[1,3,1,""],setPath:[1,3,1,""],writeToStream:[1,3,1,""],writeValue:[1,3,1,""]},"src.pyconf.Expression":{evaluate:[1,3,1,""]},"src.pyconf.Mapping":{addMapping:[1,3,1,""],get:[1,3,1,""],iteritems:[1,3,1,""],iterkeys:[1,3,1,""],keys:[1,3,1,""],writeToStream:[1,3,1,""]},"src.pyconf.Reference":{addElement:[1,3,1,""],findConfig:[1,3,1,""],resolve:[1,3,1,""]},"src.pyconf.Sequence":{SeqIter:[1,2,1,""],append:[1,3,1,""],writeToStream:[1,3,1,""]},"src.pyconf.Sequence.SeqIter":{next:[1,3,1,""]},"src.system":{archive_extract:[1,1,1,""],cvs_extract:[1,1,1,""],git_extract:[1,1,1,""],show_in_editor:[1,1,1,""],svn_extract:[1,1,1,""]},"src.template":{MyTemplate:[1,2,1,""],substitute:[1,1,1,""]},"src.template.MyTemplate":{delimiter:[1,5,1,""],pattern:[1,5,1,""]},"src.test_module":{Test:[1,2,1,""],getTmpDirDEFAULT:[1,1,1,""]},"src.test_module.Test":{generate_launching_commands:[1,3,1,""],generate_script:[1,3,1,""],get_test_timeout:[1,3,1,""],get_tmp_dir:[1,3,1,""],prepare_testbase:[1,3,1,""],prepare_testbase_from_dir:[1,3,1,""],prepare_testbase_from_git:[1,3,1,""],prepare_testbase_from_svn:[1,3,1,""],read_results:[1,3,1,""],run_all_tests:[1,3,1,""],run_grid_tests:[1,3,1,""],run_script:[1,3,1,""],run_session_tests:[1,3,1,""],run_testbase_tests:[1,3,1,""],run_tests:[1,3,1,""],search_known_errors:[1,3,1,""],write_test_margin:[1,3,1,""]},"src.xmlManager":{ReadXmlFile:[1,2,1,""],XmlLogFile:[1,2,1,""],add_simple_node:[1,1,1,""],append_node_attrib:[1,1,1,""],find_node_by_attrib:[1,1,1,""],write_report:[1,1,1,""]},"src.xmlManager.ReadXmlFile":{getRootAttrib:[1,3,1,""],get_attrib:[1,3,1,""],get_node_text:[1,3,1,""]},"src.xmlManager.XmlLogFile":{add_simple_node:[1,3,1,""],append_node_attrib:[1,3,1,""],append_node_text:[1,3,1,""],write_tree:[1,3,1,""]},src:{ElementTree:[1,0,0,"-"],Path:[1,2,1,""],SatException:[1,4,1,""],activate_mesa_property:[1,1,1,""],architecture:[1,0,0,"-"],check_config_has_application:[1,1,1,""],check_config_has_profile:[1,1,1,""],colorama:[2,0,0,"-"],compilation:[1,0,0,"-"],config_has_application:[1,1,1,""],debug:[1,0,0,"-"],deepcopy_list:[1,1,1,""],ensure_path_exists:[1,1,1,""],environment:[1,0,0,"-"],fileEnviron:[1,0,0,"-"],find_file_in_lpath:[1,1,1,""],fork:[1,0,0,"-"],get_base_path:[1,1,1,""],get_cfg_param:[1,1,1,""],get_launcher_name:[1,1,1,""],get_log_path:[1,1,1,""],get_property_in_product_cfg:[1,1,1,""],get_salome_version:[1,1,1,""],get_tmp_filename:[1,1,1,""],handleRemoveReadonly:[1,1,1,""],logger:[1,0,0,"-"],merge_dicts:[1,1,1,""],only_numbers:[1,1,1,""],options:[1,0,0,"-"],parse_date:[1,1,1,""],print_info:[1,1,1,""],printcolors:[1,0,0,"-"],product:[1,0,0,"-"],pyconf:[1,0,0,"-"],read_config_from_a_file:[1,1,1,""],remove_item_from_list:[1,1,1,""],replace_in_file:[1,1,1,""],system:[1,0,0,"-"],template:[1,0,0,"-"],test_module:[1,0,0,"-"],xmlManager:[1,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","function","Python function"],"2":["py","class","Python class"],"3":["py","method","Python method"],"4":["py","exception","Python exception"],"5":["py","attribute","Python attribute"]},objtypes:{"0":"py:module","1":"py:function","2":"py:class","3":"py:method","4":"py:exception","5":"py:attribute"},terms:{"0x36fa5f0":[],"0x37b8f90":[],"0x37f8420":[],"0x44e4620":[],"0x4986ff0":[],"16be":1,"16le":1,"9abc":1,"boolean":[1,19],"case":1,"char":1,"class":[1,2,19],"default":[1,3,5,6,8,10,11,12,13,18,19],"export":13,"final":[1,6,13],"float":1,"function":[1,2,19],"import":[1,8,19],"int":[1,11],"long":[1,4],"new":[1,13,19],"return":[1,8,19],"short":1,"true":[1,2],"try":1,"var":[1,8,19],And:[1,6,8],But:19,CVS:12,For:[1,8,13,15,19],Has:1,One:1,POS:2,The:[1,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19],Then:[13,14],There:14,These:8,Theses:4,Use:[3,4,5,6,8,9,10,13],Used:1,Useful:18,VCS:[4,12],__init__:[],__save__:1,__setattr__:1,_appli:3,_blank:1,_build:8,_debug:1,_developp:1,_launch:8,_ld_library_path:8,_sre:[1,2],_user:1,a_b_c_:1,abool:1,about:[1,14],absolut:12,access:[1,2,11],account:8,act:[1,2],action:1,activ:[1,13],activate_mesa_properti:1,actual:[1,2,16],add:[1,5,15],add_com:1,add_echo:1,add_lin:1,add_link:1,add_opt:[1,19],add_simple_nod:1,add_warn:1,added:1,addel:1,adding:19,addit:[1,5,14],additional_dir:1,additional_env:1,addmap:1,addnamespac:1,adequ:1,adot:1,advanc:1,affect:2,afil:1,after:[1,5,16],again:1,agent:13,aim:1,alevel:1,algorithm:19,all:[1,2,4,6,8,9,13,14,18,19],all_in_termin:1,allow:[1,5,6,9,15,18],alphanumer:1,alreadi:[12,19],also:[1,8,13,14,19],alter:13,amethodtodebug:1,amount:1,ani:[1,2,6,11,13],anoth:[1,14],ansi:[0,1],ansi_csi_r:2,ansi_escape_cod:2,ansi_osc_r:2,ansiback:2,ansicod:2,ansicursor:2,ansifor:2,ansistyl:2,ansitowin32:[0,1],apart:2,api:1,append:[1,8,12],append_node_attrib:1,append_node_text:1,append_valu:1,appli:[1,6,9,13],applic:[1,4,5,6,8,9,10,11,13,15,19],application_nam:3,appropri:1,arch:12,architectur:[0,12,14],archiv:[1,12,13],archive_extract:1,archive_info:13,arg:[1,2,19],arglist:1,argument:[1,19],ascii:[1,7],ask:1,assign:1,assum:1,astr:1,astream:1,atitl:1,attibut:1,attr:[1,2],attrib:1,attribut:[1,2],authent:13,author:1,automat:[6,8],autoreset:2,autotool:[1,5],avail:6,avari:1,avoid:13,award:1,back:2,backtick:1,base:[1,2,14],bash:[1,8,13],bashfileenviron:1,bat:[1,8],batch:1,batch_salom:1,batfileenviron:1,becaus:1,been:[1,2],befor:[1,5],begin:1,behavior:19,being:1,belong:1,below:8,between:[1,19],bienvenu:1,big:5,bigger:1,bin:8,binari:12,black:2,blogmatrix:1,blue:2,bom:1,bonjour:19,bool:1,both:[1,8,9],bracket:1,branch:13,bright:2,bright_background:2,bring:[9,13],browser:[1,6,7,11,14],buf:1,build:[1,4,5,8,14],build_conf_opt:1,build_configur:1,build_sourc:5,builder:1,built:1,call:[1,2,8,10,19],call_win32:2,callabl:1,can:[1,3,8,13,14,15,19],cannot:1,car:1,care:4,carri:1,catalog:[3,10],cfg:[1,8,19],cfg_env:1,cfgforpi:1,chang:[1,3,18,19],change_to_launch:1,charact:[1,2],charg:10,check:[1,5,8],check_config_exist:1,check_config_has_appl:1,check_config_has_profil:1,check_instal:1,check_sourc:1,check_src:1,checkout:[1,13],chmod:1,choic:6,circumst:1,clash:1,classic:1,clean:[1,5,11,15],clean_al:[5,18],clean_build_aft:5,clean_instal:5,cleancolor:1,clear_lin:2,clear_screen:2,cli:[11,18],cli_:19,client:1,clone:13,close:1,closest:1,cmake:[1,5],cmake_opt:5,cmd:1,co7:12,code:[1,2,8],code_to_char:2,color:[1,2],colorama:[0,1],colorama_text:2,column:1,com:1,come:6,command:[1,2,14,16,18],command_nam:1,command_opt:18,command_r:1,command_valu:1,comment:[1,14],commentari:1,commit:4,common:1,commonli:1,compat:1,compil:[0,7,8,9,11,13,15],compil_script:5,complementari:8,complet:[5,6,13,14],complete_environ:1,compon:[1,3,9],componon:9,compress:12,comput:[1,9,12],concaten:1,concern:13,config:[1,13,14,15,18],config_has_appl:1,configerror:1,configformaterror:1,configinputstream:1,configlist:1,configmerg:1,configoutputstream:1,configread:1,configresolutionerror:1,configur:[1,15,19],configure_opt:1,configut:3,conflict:1,conform:9,consist:1,consol:1,construct:[1,15,17],contain:[1,14,19],content:0,context:[1,18],contextfileenviron:1,continu:1,control:12,conveni:1,convert:2,convert_ansi:2,convert_osc:2,copi:[1,3,6,10,18],copydir:1,copyfil:1,copylink:1,copyright:1,corba:9,correct:1,correl:1,correspond:[1,8,11,13],could:[1,4,8,16],cpp:[1,9],creat:[1,3,4,8,10,12,13,14,15],creation:12,critic:1,current:[1,6,14,18,19],cursor_adjust:2,cvs:1,cvs_extract:1,cvs_info:13,cvspass:13,cwd:1,cyan:2,dai:1,data:[1,6,19],date:[1,14],date_to_datetim:1,datetim:1,david:1,dbg:1,debug:[0,6,8,13],debug_writ:1,decid:1,declar:13,deep:1,deepcopy_list:1,deepcopymap:1,def:[1,8,19],default_valu:1,defaultlogg:1,defaultmergeresolv:1,defaultstreamopen:1,defin:[1,4,5,6,8,9,14,19],definit:1,deinit:2,delai:1,delaiapp:1,deleg:2,delet:12,delimit:1,delta:1,depend:[1,5,12],deriv:1,describ:1,descript:[1,19],design:1,destnam:1,detail:1,detar:16,detect:1,determin:1,dev:1,develop:[1,4,6,8,13,19],dict:1,dict_arg:1,dictionari:[1,14],differ:8,dim:2,dir:[1,6,13],dir_info:13,directli:[8,11,16],directori:[1,3,4,5,6,8,10,11,12,13,14,16,18,19],dirpath:1,displai:[1,5,6,7,11,19],distant:3,distinguish:8,distrib:1,distribut:[1,3,9],divis:1,dixt:1,do_batch_script_build:1,do_default_build:1,do_python_script_build:1,do_script_build:1,doc:15,doctyp:1,document:[7,9,14,19],doe:[1,8,13],dollar:1,don:9,done:[8,18],dot:1,dove:1,down:2,download:[1,13],drive:1,dst:1,due:1,dump:1,duplic:5,dure:13,dynam:14,each:[1,3,10,13,14],earlier:1,earliest:1,echo:1,edit:[6,7,13],editor:[1,6,7,14],eearch:1,either:[1,8],eleg:1,elem:1,element:1,element_factori:1,elementtre:0,els:[1,19],embed:12,empti:1,enable_simple_env_script:1,enclos:1,encod:1,end:[1,2,8],end_writ:1,ensur:1,ensure_path_exist:1,entri:1,env:8,env_build:8,env_info:1,env_launch:8,env_script:8,environ:[0,9,14,15],equal:5,eras:11,erase_lin:2,erase_screen:2,error:1,etc:[1,14,15],etre:1,eval:1,evalu:1,event:1,everyth:5,evinc:7,exactli:1,exampl:[1,4,5,6,7,8,12,13,15,18],exc:1,except:[1,13,18],execut:[1,5,13,18],exhaust:[14,18],exist:[1,12,13,18],exot:1,expect:1,explain:8,explicitli:1,explor:6,express:[1,6],extens:[1,19],extra:1,extract:1,extract_param:2,fact:19,factor:1,factori:1,fail:[1,5],fals:[1,2],far:1,favorit:6,feed:1,field:1,file:[1,3,5,6,7,8,10,11,12,13,14,15,19],file_nam:1,file_path:1,fileenviron:0,fileenvwrit:1,filein:1,filenam:1,filepath:1,filter:[1,4],filterlevel:1,filterlist2:1,fin:1,find:[1,6,15,16],find_file_in_lpath:1,find_node_by_attrib:1,findal:1,findconfig:1,findtext:1,finish:1,firefox:[7,11,14],first:[1,8,13,19],fix:1,flag:5,flush:1,fmt:1,follow:[1,8,19],for_packag:1,forbuild:1,forc:[1,12,13],force_patch:13,fore:2,forget:1,fork:0,form:1,format:[1,7,8,14],format_color_except:1,format_except:1,forward:[2,3,10],found:1,four:8,french:19,from:[1,2,6,7,8,9,12,13,19],from_what:1,fromstr:1,full:1,full_launched_command:1,fun:6,func:1,futur:1,gdb:8,gedit:7,gencat:[3,10],gener:[1,2,3,8,10,15,18],generate_launching_command:1,generate_script:1,generic_opt:18,geom:5,get:[1,6,7,13,14,19],get_attr:2,get_attrib:1,get_base_install_dir:1,get_base_path:1,get_cfg_param:1,get_distrib_vers:1,get_distribut:1,get_file_environ:1,get_help:1,get_install_dir:1,get_launcher_nam:1,get_log_path:1,get_method:13,get_nam:1,get_nb_proc:1,get_node_text:1,get_posit:2,get_product_compon:1,get_product_config:1,get_product_depend:1,get_product_sect:1,get_products_info:1,get_property_in_product_cfg:1,get_python_vers:1,get_salome_vers:1,get_test_timeout:1,get_tmp_dir:1,get_tmp_filenam:1,get_us:1,get_win32_cal:2,getbypath:1,getchar:1,getcurrentlogg:1,getdefaultlogg:1,getdetailopt:1,getiter:1,getlocalenv:1,getroot:1,getrootattrib:1,getstrconfigdbg:1,getstrconfigstd:1,gettmpdir:1,gettmpdirdefault:1,gettoken:1,getunittestlogg:1,git:[1,12],git_extract:1,git_info:13,gitconfig:13,give:[1,3,14,19],given:[1,2,3,8,10],global:1,goe:1,green:2,grei:2,grep:6,grid:1,gui:1,hack_libtool:1,had:1,handl:[1,2,8],handlemismatch:1,handleremovereadonli:1,hard:1,harri:1,has:[1,2,8,19],has_salome_hui:1,has_timed_out:1,hat:1,have:[1,3,4,9,10,13],header:1,help:[1,19],helpstr:1,here:[1,8,14,19],hierarchi:1,highlight:1,himself:8,hold:10,home:6,hour:1,how:[1,7,8,13,14],html:[1,7],http:[1,2],hxx2salom:9,ident:1,identifi:1,ignor:[1,9],ignorelist:1,imag:13,implement:[1,2,8],includ:[1,8,12,14],indent:1,index:1,indic:1,indirect:1,info:[1,6,13],inform:[1,6,7,12,13,14],init:[1,2],initi:1,initialis:[0,1],inmap:1,input:1,input_list:1,insid:13,instal:[1,4,5,14,15,18],install_dir:8,instanc:[1,2,19],instanti:1,instead:1,instream:1,instruct:[1,14],intal:12,interact:11,interfac:[1,18],intern:1,invalid:1,ioerror:1,iostream:1,is_a_tti:2,is_defin:1,is_salome_modul:[4,8],is_stream_clos:2,is_window:1,iscurrentloggerunittest:1,isdir:1,isel:1,isfil:1,islink:1,issu:2,istypeconfig:1,isword:1,item:1,iter:1,iteritem:1,iterkei:1,iterpars:1,its:[1,5,6,8,14],ivar:1,jane:1,job:5,join:8,just:[1,5],keep:1,kei:[1,8,13],kernel:[1,6,18],killsalom:1,know:[1,13],known:12,kwarg:2,kwd:2,label:[1,6],lanch:1,lapack:8,lapack_root_dir:8,last:[1,8,11],last_termin:11,later:12,latter:1,launch:[1,8],launch_command:1,launcher:[1,3,8,15],launcher_nam:10,launcherfileenviron:1,layer:9,ld_library_path:8,left:8,level:[1,18,19],lhs:1,lib:8,librari:1,light:2,lightblack_ex:2,lightblue_ex:2,lightcyan_ex:2,lightgreen_ex:2,lightmagenta_ex:2,lightred_ex:2,lightwhite_ex:2,lightyellow_ex:2,like:[1,2,3,5,6,10,14],limit:1,line:[1,6,18],link:[1,13],list:[1,3,4,6,10,14],list_log_fil:1,list_of_product:9,listtest:1,llvm:[3,10],load:[1,14],load_cfg_environ:1,load_environ:1,local:[6,7],locat:1,log:[1,5,15,19],log_command:1,log_dir:11,log_file_nam:1,logdir:1,logfilepath:1,logger:0,login:13,logo:[1,10],lome:15,longnam:1,lost:1,lpath:1,lproduct:1,machin:[1,3,9,10,12],machine1:3,machine2:3,machine3:3,magenta:2,mai:13,main:5,make:[1,5],make_flag:5,make_opt:1,makepath:1,manag:[1,6,13],manipul:[1,6],map1:1,map2:1,map:1,match:1,max:1,mechan:[1,8],med:5,memori:[3,10],menu:11,merg:1,merge:1,merge_dict:1,mergemap:1,mergesequ:1,mesa:[1,3,10],messag:[1,19],method:[1,2,5,8,13,19],micro_command:1,minim:1,minut:1,mismatch:1,miss:[3,5],mistak:13,mode:[1,2,4,6,8,11,18],model:19,modifi:[1,7,8,13],modul:[0,3,5,9,10,13,14,15],mon:1,mond:19,more:[1,18],most:[1,8,19],msg:1,multi:1,multilin:1,multipl:1,must:[1,19],my_application_directori:3,my_application_nam:3,my_tag:13,mycommand:19,mydebug:1,myoption:19,myspecificnam:12,mytempl:1,name:[1,3,4,6,8,10,12,13,14,18,19],name_nod:1,namespac:1,nativ:[1,8],nb_line:1,nb_proc:[1,5],need:[1,2,3,9,13],new_nam:6,next:1,nfirst:1,no_label:6,node:1,node_nam:1,non:2,none:[1,2],nor:2,normal:[1,2],note:[1,3,8,10,14],noth:[1,12],notimplementederror:1,notion:1,notshowncommand:1,number:[1,3,5,10,11],number_of_proc:1,obj1:1,obj2:1,object:[1,2,14],obsolesc:1,obtain:1,obvious:[],occur:1,ode:1,old:1,older:11,on_stderr:2,onc:13,one:[1,6],onli:[1,3,4,5,6,8,9,10,11,13,18],only_numb:1,ool:15,open:1,openggl:[3,10],openmpi:1,oper:[1,6,15],operand:1,opt_nb_proc:1,option:[0,2,3,5,6,8,9,10,11,12,13,14,19],optionali:1,optiontyp:1,optresult:1,order:[1,13,14,19],org:2,other:[1,8,12,14],otherwis:[1,13],our:2,out:1,out_dir:1,output:[1,2],output_verbose_level:1,outstream:1,overrid:[1,3],overwrit:1,overwritekei:1,overwritemergeresolv:1,overwritten:1,own:1,packag:[0,15,16],page:8,pair:1,param:[1,2],param_nam:1,paramet:[1,6,14,19],parameter_path:6,paramstr:2,paravi:[3,10],parent:1,parma:1,pars:[1,19],parse_arg:[1,19],parse_d:1,parseargu:1,parsefactor:1,parsekeyvaluepair:1,parsemap:1,parsemappingbodi:1,parser:[1,19],parserefer:1,parsescalar:1,parsesequ:1,parsesuffix:1,parseterm:1,parsevalu:1,part:[1,3,8,10],particular:1,pass:[1,14,19],passphras:13,password:13,patch:[1,6,13],path:[1,8,10],path_to_catalog:3,path_to_yacsgen:9,pattern:1,pdf:[6,7,15],pdf_viewer:7,pend:4,pendant:1,perform:[13,15],person:6,phase:1,platform:[2,8],pleas:[8,9],plugin:[1,5],pluma:[7,14],point:[1,19],pop_debug:1,popul:1,posit:2,possibl:[1,8,13,19],potenti:1,pprty:1,preced:1,prefer:[6,7,14],prefix:[1,8,14],prepar:[1,15,19],prepare_testbas:1,prepare_testbase_from_dir:1,prepare_testbase_from_git:1,prepare_testbase_from_svn:1,prepend:[1,8],prepend_valu:1,prereq_dir:8,prerequisit:[8,12,14,15,18],presenc:1,preset:1,pretti:1,previou:1,previous:4,print:[1,2,6,11],print_color_map:1,print_color_rang:1,print_help:[],print_info:1,print_valu:1,printc:1,printcerror:1,printchead:1,printchighlight:1,printcinfo:1,printclabel:1,printcolor:0,printcsuccess:1,printcwarn:1,problem:[1,3,10],procedur:1,process:13,processinginstruct:1,processor:[1,3,10],prod_dir:1,prod_info:1,produc:1,product1:[5,8,13],product2:[5,8,13],product:[0,4,5,6,8,9,10,12,13,15,19],product_cfg:1,product_compil:1,product_has_env_script:1,product_has_logo:1,product_has_patch:1,product_has_salome_gui:1,product_has_script:1,product_info:1,product_is_autotool:1,product_is_cmak:1,product_is_cpp:1,product_is_debug:1,product_is_dev:1,product_is_fix:1,product_is_gener:1,product_is_mpi:1,product_is_n:1,product_is_salom:1,product_is_sampl:[],product_is_smesh_plugin:1,product_is_vc:1,product_is_verbos:1,product_nam:1,profil:[1,10],program:1,programmat:8,progress:1,project:[6,8],properti:[1,4,8,9],protocol:[1,3],provid:[1,8,19],proxi:2,pubid:1,push:13,push_debug:1,put:1,put_initial_xml_field:1,put_txt_log_in_appli_log_dir:1,pv_plugin_path:1,pwd:1,pyconf:[0,5,6,8,13,14,19],python:[1,8,10,14,15,16,19],python_config:1,pythonpath:8,pythonpath_:8,qname:1,queri:[3,10],rais:[1,18],rang:1,raw:1,read:1,read_config_from_a_fil:1,read_result:1,reader:1,readi:13,readlin:1,readlink:1,readxmlfil:1,recurs:[1,6],red:[1,2],redefin:1,redirect:1,ref:1,refer:[1,9,14],reflect:1,regard:1,regular:1,reinit:[1,2],rel:[1,12],relai:1,remain:[11,16],remainderarg:1,remark:3,remor:9,remot:[1,12],remov:[1,4,5,13],remove_item_from_list:1,removenamespac:1,renam:1,renint:1,replac:[1,3],replace_in_fil:1,report:1,repositori:[1,13],repres:1,represent:1,request:2,requir:[1,2,8,9],reserv:1,reset:2,reset_al:2,resolut:1,resolv:1,resourc:[3,10],respect:8,restor:[1,4],result:1,retriev:1,rhs:1,right:[1,8],root:[1,19],root_nod:1,rootnam:1,rst:7,rtype:1,run:[1,8,14,15,19],run_all_test:1,run_env_script:1,run_grid_test:1,run_script:1,run_session_test:1,run_simple_env_script:1,run_test:1,run_testbase_test:1,runappli:3,runner:19,ruud:1,sajip:1,salom:[1,3,4,5,6,8,9,10,12,14,16],salome_modul:1,salome_session_serv:1,salome_xx:[4,12,16,18],salome_xx_:12,salomecontext:1,salomeenviron:1,salometool:[1,3,6,8,12,14,15,16],same:[1,7],sampl:18,sat:[1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19],satexcept:1,save:8,saveconfigdbg:1,saveconfigstd:1,scalar:1,screenenviron:1,screenonli:1,script:[1,5,6,8,10,14,15,16],script_nam:1,script_path:1,search:1,search_known_error:1,second:[1,8,19],section:[1,3,8,13],secur:13,see:[1,2,14,18],seen:1,select:12,self:1,semant:1,send:1,sendmessagetocurrentlogg:1,sep:[1,8],separ:1,seq1:1,seq2:1,seq:1,seqit:1,sequenc:[1,2],server:[1,13],servic:19,session:1,set:[1,3,4,8,10,14,15,19],set_a_product:1,set_application_env:1,set_attr:2,set_consol:2,set_cpp_env:1,set_cursor_posit:2,set_env:[1,8],set_env_build:8,set_env_launch:8,set_full_environ:1,set_native_env:[1,8],set_product:1,set_python_libdir:1,set_salome_generic_product_env:1,set_salome_minimal_product_env:1,set_titl:2,setconsoletextattribut:2,setcurrentlogg:1,setpath:1,setstream:1,sever:[8,14],shallow:1,shell:[1,8],shortcut:1,shortnam:1,should:[1,8,9],should_wrap:2,show:[1,5,7,11],show_command_log:1,show_desktop:1,show_in_editor:1,show_patch:6,show_progress:1,show_warn:1,showinfo:1,shown:[1,5],sign:1,silent_sysstd:1,similar:1,simpl:[1,18,19],sinc:1,site:1,size:1,smaller:1,smart:1,smartcopi:1,smesh:1,softwar:13,some:[1,8,10,14,19],someon:8,sometim:4,sommeil:1,soon:5,sourc:[1,2,4,6,7,12,13],sources_without_dev:4,special_path_separ:1,specif:[1,3,4,8,9,10,12,14,18],specifi:[1,3,8,9,10,13],splashscreen:10,src:19,src_root:1,sre_pattern:[1,2],ssh:[3,10,13],stack:[1,18],start:[1,2,3,5,10],statu:1,stderr:1,stdout:[1,2],step:1,stop:5,stop_first_fail:5,store:[1,5,6,11,13,14],str:1,str_num:1,stream:[1,2],streamopen:1,streamorfil:1,streamwrapp:2,strin:1,string:1,stringio:1,strip:2,strout:1,structur:14,stuff:[1,10],style:[1,2],stylesheet:1,sub:[1,14],subclass:1,subel:1,submodul:0,subpackag:0,subsect:8,subset:12,subst_dic:1,substitut:1,subtract:1,success:[1,5],successfulli:1,suffici:8,suffix:1,suit:15,suitabl:1,support:1,supposedli:1,suppress:4,svn:[1,12],svn_extract:1,svn_info:13,symlink:1,syntax:[1,4],sys:1,system:[0,12],tab:1,tabl:1,tag:[1,13],take:[1,4],taken:[1,8],tar:[12,16],target:[1,3,8],tcllibpath:1,templat:0,template_fil:1,temporari:1,term:1,termin:[1,2,5,11,19],test:[1,5,15],test_base_nam:1,test_config:1,test_grid:1,test_modul:0,test_nam:1,test_sess:1,testbas:1,testbase_bas:1,testbase_dir:1,testbase_nam:1,testbase_tag:1,text:[1,2,7,18],text_or_uri:1,tgz:[12,16],thank:1,thei:[4,6,8,13],them:[2,13],thi:[1,2,3,5,6,8,9,10,12,13,14,15,19],thing:19,those:9,through:[3,8,10,11],thrown:1,time:[1,4,8,13,14],timedelta:1,timedelta_total_second:1,tip:1,titl:[1,2],tklibpath:1,tmp_working_dir:1,tofix:1,token:1,token_typ:1,token_valu:1,top:1,tostr:1,total_second:1,tout:19,trace:[1,18],traceback:1,transform:1,transpar:2,tree:1,treebuild:1,trust_root_dir:8,tty:2,tupl:1,turn:1,tutori:1,two:[1,8],txt:1,type:[1,13],typeerror:1,unabl:1,unchang:1,unconditionali:[1,18],under:[1,15],underscor:[1,8],unicod:1,unit:5,unittestlogg:1,unless:[2,13],updat:1,update_hat_xml:1,updatehatxml:1,urllib2:1,urlopen:1,usag:[1,15],use:[1,3,5,8,10,11,12,13,14,16],use_mesa:[3,10],used:[1,3,5,6,7,8,11,12,13,14,15],useful:[8,10,19],user:[1,6,7,8,11,12,16,18],usernam:1,uses:[1,8,9,13,14],using:[1,2,9],usr:8,usual:[4,9,12,14,16,18],utf:[1,8],util:[1,12,15],valid:1,valu:[1,2,3,4,6,13,14],variabl:[1,8,9,19],vcs:1,verbos:[1,19],verifi:[1,13],version:[1,8,9,12,14,15],via:1,viewer:[6,7],vinai:1,virtual:[1,3],virtual_app:3,visualis:8,wai:[1,5,19],want:[1,4,8,19],warn:[1,5],web:[6,7,11,14],welcom:1,welkom:1,well:1,were:1,what:[1,4],when:[1,3,8,13,14,19],whenev:1,where:[1,3,5,6,12],which:[1,2,8,9,14,19],white:2,who:9,wiki:2,wikipedia:2,wil:8,win32:[0,1],winapi_test:2,wincolor:2,window:[1,2,8],winstyl:2,winterm:[0,1],with_children:5,with_commerci:1,with_fath:5,with_install_dir:1,with_vc:12,within:8,without:[1,6,13],without_properti:12,wmake:1,word:1,work:[1,6,12,13,14],workdir:[1,3,6,10,12,14,18,19],world:19,would:1,wrap:2,wrap_stream:2,writabl:1,write:[1,2,19],write_and_convert:2,write_back:1,write_cfgforpy_fil:1,write_env_fil:1,write_plain_text:2,write_report:1,write_test_margin:1,write_tre:1,writetostream:1,writevalu:1,written:19,www:1,xa4:1,xc2:1,xml:[1,7,19],xmllogfil:1,xmlmanag:0,xmlroot:1,xmltreebuild:1,xxx:[4,14],xxx_root_dir:1,xxx_src_dir:1,yac:1,yacsgen:[1,9],yacsgen_root_dir:9,year:1,yellow:2,yes:[1,4,8,9,13],yet:[1,18],yield:1,you:[1,3,4,8,10,13,15,19],your:[1,7,8,13,18,19],yourspecificnam:12,yve:1,yyi:14,yyyi:1,yyyymmdd_hhmmss:1,yyyymmdd_hhmmss_namecmd:1,zelaunch:10,zero:1,zerodivideerror:1},titles:["src","src package","src.colorama package","Command application","Command clean","Command compile","Command config","Command doc","Command environ","Command generate","Command launcher","Command log","Command package","Command prepare","Configuration","Salome Tools","Installation","Release notes","Usage of SAlomeTools","Add a user custom command"],titleterms:{"var":14,VCS:13,access:19,add:19,ansi:2,ansitowin32:2,applic:[3,14],architectur:1,avail:[4,18],base:13,basic:19,build:18,clean:4,code:15,colorama:2,command:[3,4,5,6,7,8,9,10,11,12,13,15,19],compil:[1,5,18],config:[6,19],configur:[3,4,5,6,7,8,10,11,12,13,14],content:[1,2],custom:19,cvs:13,debug:[1,18],descript:[3,4,5,6,7,8,9,10,11,12,13,14],dev:13,develop:15,doc:7,document:15,elementtre:1,environ:[1,8],exampl:19,fileenviron:1,fork:1,gener:9,get:18,git:13,hello:19,help:18,howto:19,initialis:2,instal:16,introduct:19,launcher:10,list:[15,18],log:11,logger:[1,19],mode:13,modul:[1,2],note:[15,17],option:[1,4,18],other:19,packag:[1,2,12],path:[3,4,5,6,7,11,12,13],prepar:[13,18],printcolor:1,product:[1,14,18],pyconf:1,quick:15,releas:[15,17],remark:[9,13],requir:19,salom:[15,18],salometool:[18,19],sat:18,section:14,some:[3,4,5,6,7,11,12,13],sourc:18,src:[0,1,2],start:15,submodul:[1,2],subpackag:1,svn:13,syntax:14,system:1,templat:1,test_modul:1,tool:15,usag:[3,4,5,6,7,8,9,10,11,12,13,18],useful:[3,4,5,6,7,11,12,13],user:[14,19],verbos:18,win32:2,winterm:2,xmlmanag:1}}) \ No newline at end of file diff --git a/doc/build/html/usage_of_sat.html b/doc/build/html/usage_of_sat.html deleted file mode 100644 index 2ebe121..0000000 --- a/doc/build/html/usage_of_sat.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - Usage of SAlomeTools — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Usage of SAlomeTools¶

-
-

Usage¶

-

sat usage is a Command Line Interface (CLI).

-
sat [generic_options] [command] [product] [command_options]
-
-
-
-

Options of sat¶

-

Useful not exhaustive generic options of sat CLI.

-
-

–help or -h¶

-

Get help as simple text.

-
sat --help          # get the list of existing commands
-sat --help compile  # get the help on a specific command 'compile'
-
-
-
-
-

–debug or -g¶

-

Execution in debug mode allows to see more trace and stack if an exception is raised.

-
-
-

–verbose or -v¶

-

Change verbosity level (default is 3).

-
# for product 'SALOME_xx' for example
-# execute compile command in debug mode with trace level 4
-sat -g -v 4 compile SALOME_xx
-
-
-
-
-
-
-

Build a SALOME product¶

-
-

Get the list of available products¶

-

To get the list of the current available products in your context:

-
sat config --list
-
-
-
-
-

Prepare sources of a product¶

-

To prepare (get) all the sources of a product (SALOME_xx for example):

-
sat prepare SALOME_xx
-
-
-
-
The sources are usually copied in directories
-
$USER.workDir + SALOME_xx… + SOURCES + $PRODUCT.name
-
-
-
-

Compile SALOME¶

-

To compile products:

-
# compile all prerequisites/products
-sat compile SALOME_xx
-
-# compile only 2 products (KERNEL and SAMPLES), if not done yet
-sat compile SALOME_xx --products KERNEL,SAMPLES
-
-# compile only 2 products, unconditionaly
-sat compile SALOME_xx ---products SAMPLES --clean_all
-
-
-
-
The products are usually build in the directories
-
$USER.workDir + SALOME_xx… + BUILD + $PRODUCT.name
-

-
The products are usually installed in the directories
-
$USER.workDir + SALOME_xx… + INSTALL + $PRODUCT.name
-
-
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/html/write_command.html b/doc/build/html/write_command.html deleted file mode 100644 index ce276e2..0000000 --- a/doc/build/html/write_command.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - Add a user custom command — salomeTools 5.0.0dev documentation - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

Add a user custom command¶

-
-

Introduction¶

-
-

Note

-

This documentation is for Python developers.

-
-

The salomeTools product provides a simple way to develop commands. -The first thing to do is to add a file with .py extension in the commands directory of salomeTools.

-

Here are the basic requirements that must be followed in this file in order to add a command.

-
-
-

Basic requirements¶

-

By adding a file mycommand.py in the commands directory, salomeTools will define a new command named mycommand.

-

In mycommand.py, there must be the following method:

-
def run(args, runner, logger):
-    # your algorithm ...
-    pass
-
-
-

In fact, at this point, the command will already be functional. -But there are some useful services provided by salomeTools :

-
    -
  • You can give some options to your command:
  • -
-
import src
-
-# Define all possible option for mycommand command :  'sat mycommand <options>'
-parser = src.options.Options()
-parser.add_option('m', 'myoption', \
-                  'boolean', 'myoption', \
-                  'My option changes the behavior of my command.')
-
-def run(args, runner, logger):
-    # Parse the options
-    (options, args) = parser.parse_args(args)
-    # algorithm
-
-
-
    -
  • You can add a description method that will display a message when the user will call the help:
  • -
-
 import src
-
- # Define all possible option for mycommand command : 'sat mycommand <options>'
- parser = src.options.Options()
- parser.add_option('m', 'myoption', \
-                   'boolean', 'myoption', \
-                   'My option changes the behavior of my command.')
-
- def description():
-     return _("The help of mycommand.")
-
- def run(args, runner, logger):
-     # Parse the options
-     (options, args) = parser.parse_args(args)
-     # algorithm
-
-
-
-
-

HowTo access salomeTools config and other commands¶

-

The runner variable is an python instance of Sat class. -It gives access to runner.cfg which is the data model defined from all -configuration pyconf files of salomeTools -For example, runner.cfg.APPLICATION.workdir -contains the root directory of the current application.

-

The runner variable gives also access to other commands of salomeTools:

-
# as CLI_ 'sat prepare ...'
-runner.prepare(runner.cfg.VARS.application)
-
-
-
-
-

HowTo logger¶

-

The logger variable is an instance of the Logger class. -It gives access to the write method.

-

When this method is called, the message passed as parameter -will be displayed in the terminal and written in an xml log file.

-
logger.write("My message", 3) # 3 as default
-
-
-

The second argument defines the level of verbosity -that is wanted for this message. -It has to be between 1 and 5 (the most verbose level).

-
-
-

HELLO example¶

-

Here is a hello command, file commands/hello.py:

-
import src
-
-"""
-hello.py
-Define all possible options for hello command:
-sat hello <options>
-"""
-
-parser = src.options.Options()
-parser.add_option('f', 'french', 'boolean', 'french', "french set hello message in french.")
-
-def description():
-    return _("The help of hello.")
-
-def run(args, runner, logger):
-    # Parse the options
-    (options, args) = parser.parse_args(args)
-    # algorithm
-    if not options.french:
-        logger.write('HELLO! WORLD!\n')
-    else:
-        logger.write('Bonjour tout le monde!\n')
-
-
-

A first call of hello:

-
# Get the help of hello:
-./sat --help hello
-
-# To get bonjour
-./sat hello --french
-Bonjour tout le monde!
-
-# To get hello
-./sat hello
-HELLO! WORLD!
-
-# To get the log
-./sat log
-
-
-
-
- - -
-
-
- -
-
- - - - - - - \ No newline at end of file diff --git a/doc/build/latex/Makefile b/doc/build/latex/Makefile deleted file mode 100644 index c561680..0000000 --- a/doc/build/latex/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -# Makefile for Sphinx LaTeX output - -ALLDOCS = $(basename $(wildcard *.tex)) -ALLPDF = $(addsuffix .pdf,$(ALLDOCS)) -ALLDVI = $(addsuffix .dvi,$(ALLDOCS)) -ALLXDV = -ALLPS = $(addsuffix .ps,$(ALLDOCS)) -ALLIMGS = $(wildcard *.png *.gif *.jpg *.jpeg) - -# Prefix for archive names -ARCHIVEPREFIX = -# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file) -export LATEXOPTS = -# Additional latexmk options -LATEXMKOPTS = -# format: pdf or dvi (used only by archive targets) -FMT = pdf - -LATEX = latexmk -dvi -PDFLATEX = latexmk -pdf -dvi- -ps- - - -%.png %.gif %.jpg %.jpeg: FORCE_MAKE - extractbb '$@' - -%.dvi: %.tex FORCE_MAKE - $(LATEX) $(LATEXMKOPTS) '$<' - -%.ps: %.dvi - dvips '$<' - -%.pdf: %.tex FORCE_MAKE - $(PDFLATEX) $(LATEXMKOPTS) '$<' - -all: $(ALLPDF) - -all-dvi: $(ALLDVI) - -all-ps: $(ALLPS) - -all-pdf: $(ALLPDF) - -zip: all-$(FMT) - mkdir $(ARCHIVEPREFIX)docs-$(FMT) - cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT) - zip -q -r -9 $(ARCHIVEPREFIX)docs-$(FMT).zip $(ARCHIVEPREFIX)docs-$(FMT) - rm -r $(ARCHIVEPREFIX)docs-$(FMT) - -tar: all-$(FMT) - mkdir $(ARCHIVEPREFIX)docs-$(FMT) - cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT) - tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT) - rm -r $(ARCHIVEPREFIX)docs-$(FMT) - -gz: tar - gzip -9 < $(ARCHIVEPREFIX)docs-$(FMT).tar > $(ARCHIVEPREFIX)docs-$(FMT).tar.gz - -bz2: tar - bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar - -xz: tar - xz -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar - -clean: - rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz $(ALLPDF) $(ALLDVI) $(ALLXDV) *.fls *.fdb_latexmk - -.PHONY: all all-pdf all-dvi all-ps clean zip tar gz bz2 xz -.PHONY: FORCE_MAKE \ No newline at end of file diff --git a/doc/build/latex/fncychap.sty b/doc/build/latex/fncychap.sty deleted file mode 100644 index 9a56c04..0000000 --- a/doc/build/latex/fncychap.sty +++ /dev/null @@ -1,683 +0,0 @@ -%%% Copyright Ulf A. Lindgren -%%% -%%% Note Premission is granted to modify this file under -%%% the condition that it is saved using another -%%% file and package name. -%%% -%%% Revision 1.1 (1997) -%%% -%%% Jan. 8th Modified package name base date option -%%% Jan. 22th Modified FmN and FmTi for error in book.cls -%%% \MakeUppercase{#}->{\MakeUppercase#} -%%% Apr. 6th Modified Lenny option to prevent undesired -%%% skip of line. -%%% Nov. 8th Fixed \@chapapp for AMS -%%% -%%% Revision 1.2 (1998) -%%% -%%% Feb. 11th Fixed appendix problem related to Bjarne -%%% Aug. 11th Fixed problem related to 11pt and 12pt -%%% suggested by Tomas Lundberg. THANKS! -%%% -%%% Revision 1.3 (2004) -%%% Sep. 20th problem with frontmatter, mainmatter and -%%% backmatter, pointed out by Lapo Mori -%%% -%%% Revision 1.31 (2004) -%%% Sep. 21th problem with the Rejne definition streched text -%%% caused ugly gaps in the vrule aligned with the title -%%% text. Kindly pointed out to me by Hendri Adriaens -%%% -%%% Revision 1.32 (2005) -%%% Jun. 23th compatibility problem with the KOMA class 'scrbook.cls' -%%% a remedy is a redefinition of '\@schapter' in -%%% line with that used in KOMA. The problem was pointed -%%% out to me by Mikkel Holm Olsen -%%% -%%% Revision 1.33 (2005) -%%% Aug. 9th misspelled ``TWELV'' corrected, the error was pointed -%%% out to me by George Pearson -%%% -%%% Revision 1.34 (2007) -%%% Added an alternative to Lenny provided by Peter -%%% Osborne (2005-11-28) -%%% Corrected front, main and back matter, based on input -%%% from Bas van Gils (2006-04-24) -%%% Jul. 30th Added Bjornstrup option provided by Jean-Marc -%%% Francois (2007-01-05). -%%% Reverted to \MakeUppercase{#} see rev 1.1, solved -%%% problem with MakeUppercase and MakeLowercase pointed -%%% out by Marco Feuerstein (2007-06-06) - - -%%% Last modified Jul. 2007 - -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{fncychap} - [2007/07/30 v1.34 - LaTeX package (Revised chapters)] - -%%%% For conditional inclusion of color -\newif\ifusecolor -\usecolorfalse - - - -%%%% DEFINITION OF Chapapp variables -\newcommand{\CNV}{\huge\bfseries} -\newcommand{\ChNameVar}[1]{\renewcommand{\CNV}{#1}} - - -%%%% DEFINITION OF TheChapter variables -\newcommand{\CNoV}{\huge\bfseries} -\newcommand{\ChNumVar}[1]{\renewcommand{\CNoV}{#1}} - -\newif\ifUCN -\UCNfalse -\newif\ifLCN -\LCNfalse -\def\ChNameLowerCase{\LCNtrue\UCNfalse} -\def\ChNameUpperCase{\UCNtrue\LCNfalse} -\def\ChNameAsIs{\UCNfalse\LCNfalse} - -%%%%% Fix for AMSBook 971008 - -\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{} - - -%%%%% Fix for Bjarne and appendix 980211 - -\newif\ifinapp -\inappfalse -\renewcommand\appendix{\par - \setcounter{chapter}{0}% - \setcounter{section}{0}% - \inapptrue% - \renewcommand\@chapapp{\appendixname}% - \renewcommand\thechapter{\@Alph\c@chapter}} - -%%%%% Fix for frontmatter, mainmatter, and backmatter 040920 - -\@ifundefined{@mainmatter}{\newif\if@mainmatter \@mainmattertrue}{} - -%%%%% - - - -\newcommand{\FmN}[1]{% -\ifUCN - {\MakeUppercase{#1}}\LCNfalse -\else - \ifLCN - {\MakeLowercase{#1}}\UCNfalse - \else #1 - \fi -\fi} - - -%%%% DEFINITION OF Title variables -\newcommand{\CTV}{\Huge\bfseries} -\newcommand{\ChTitleVar}[1]{\renewcommand{\CTV}{#1}} - -%%%% DEFINITION OF the basic rule width -\newlength{\RW} -\setlength{\RW}{1pt} -\newcommand{\ChRuleWidth}[1]{\setlength{\RW}{#1}} - -\newif\ifUCT -\UCTfalse -\newif\ifLCT -\LCTfalse -\def\ChTitleLowerCase{\LCTtrue\UCTfalse} -\def\ChTitleUpperCase{\UCTtrue\LCTfalse} -\def\ChTitleAsIs{\UCTfalse\LCTfalse} -\newcommand{\FmTi}[1]{% -\ifUCT - {\MakeUppercase{#1}}\LCTfalse -\else - \ifLCT - {\MakeLowercase{#1}}\UCTfalse - \else {#1} - \fi -\fi} - - - -\newlength{\mylen} -\newlength{\myhi} -\newlength{\px} -\newlength{\py} -\newlength{\pyy} -\newlength{\pxx} - - -\def\mghrulefill#1{\leavevmode\leaders\hrule\@height #1\hfill\kern\z@} - -\newcommand{\DOCH}{% - \CNV\FmN{\@chapapp}\space \CNoV\thechapter - \par\nobreak - \vskip 20\p@ - } -\newcommand{\DOTI}[1]{% - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@ - } -\newcommand{\DOTIS}[1]{% - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@ - } - -%%%%%% SONNY DEF - -\DeclareOption{Sonny}{% - \ChNameVar{\Large\sf} - \ChNumVar{\Huge} - \ChTitleVar{\Large\sf} - \ChRuleWidth{0.5pt} - \ChNameUpperCase - \renewcommand{\DOCH}{% - \raggedleft - \CNV\FmN{\@chapapp}\space \CNoV\thechapter - \par\nobreak - \vskip 40\p@} - \renewcommand{\DOTI}[1]{% - \CTV\raggedleft\mghrulefill{\RW}\par\nobreak - \vskip 5\p@ - \CTV\FmTi{#1}\par\nobreak - \mghrulefill{\RW}\par\nobreak - \vskip 40\p@} - \renewcommand{\DOTIS}[1]{% - \CTV\raggedleft\mghrulefill{\RW}\par\nobreak - \vskip 5\p@ - \CTV\FmTi{#1}\par\nobreak - \mghrulefill{\RW}\par\nobreak - \vskip 40\p@} -} - -%%%%%% LENNY DEF - -\DeclareOption{Lenny}{% - - \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont} - \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont} - \ChTitleVar{\Huge\bfseries\rm} - \ChRuleWidth{1pt} - \renewcommand{\DOCH}{% - \settowidth{\px}{\CNV\FmN{\@chapapp}} - \addtolength{\px}{2pt} - \settoheight{\py}{\CNV\FmN{\@chapapp}} - \addtolength{\py}{1pt} - - \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter} - \addtolength{\mylen}{1pt} - \settowidth{\pxx}{\CNoV\thechapter} - \addtolength{\pxx}{-1pt} - - \settoheight{\pyy}{\CNoV\thechapter} - \addtolength{\pyy}{-2pt} - \setlength{\myhi}{\pyy} - \addtolength{\myhi}{-1\py} - \par - \parbox[b]{\textwidth}{% - \rule[\py]{\RW}{\myhi}% - \hskip -\RW% - \rule[\pyy]{\px}{\RW}% - \hskip -\px% - \raggedright% - \CNV\FmN{\@chapapp}\space\CNoV\thechapter% - \hskip1pt% - \mghrulefill{\RW}% - \rule{\RW}{\pyy}\par\nobreak% - \vskip -\baselineskip% - \vskip -\pyy% - \hskip \mylen% - \mghrulefill{\RW}\par\nobreak% - \vskip \pyy}% - \vskip 20\p@} - - - \renewcommand{\DOTI}[1]{% - \raggedright - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@} - - \renewcommand{\DOTIS}[1]{% - \raggedright - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@} - } - -%%%%%% Peter Osbornes' version of LENNY DEF - -\DeclareOption{PetersLenny}{% - -% five new lengths -\newlength{\bl} % bottom left : orig \space -\setlength{\bl}{6pt} -\newcommand{\BL}[1]{\setlength{\bl}{#1}} -\newlength{\br} % bottom right : orig 1pt -\setlength{\br}{1pt} -\newcommand{\BR}[1]{\setlength{\br}{#1}} -\newlength{\tl} % top left : orig 2pt -\setlength{\tl}{2pt} -\newcommand{\TL}[1]{\setlength{\tl}{#1}} -\newlength{\trr} % top right :orig 1pt -\setlength{\trr}{1pt} -\newcommand{\TR}[1]{\setlength{\trr}{#1}} -\newlength{\blrule} % top right :orig 1pt -\setlength{\trr}{0pt} -\newcommand{\BLrule}[1]{\setlength{\blrule}{#1}} - - - \ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont} - \ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont} - \ChTitleVar{\Huge\bfseries\rm} - \ChRuleWidth{1pt} -\renewcommand{\DOCH}{% - - -%%%%%%% tweaks for 1--9 and A--Z -\ifcase\c@chapter\relax% -\or\BL{-3pt}\TL{-4pt}\BR{0pt}\TR{-6pt}%1 -\or\BL{0pt}\TL{-4pt}\BR{2pt}\TR{-4pt}%2 -\or\BL{0pt}\TL{-4pt}\BR{2pt}\TR{-4pt}%3 -\or\BL{0pt}\TL{5pt}\BR{2pt}\TR{-4pt}%4 -\or\BL{0pt}\TL{3pt}\BR{2pt}\TR{-4pt}%5 -\or\BL{-1pt}\TL{0pt}\BR{2pt}\TR{-2pt}%6 -\or\BL{0pt}\TL{-3pt}\BR{2pt}\TR{-2pt}%7 -\or\BL{0pt}\TL{-3pt}\BR{2pt}\TR{-2pt}%8 -\or\BL{0pt}\TL{-3pt}\BR{-4pt}\TR{-2pt}%9 -\or\BL{-3pt}\TL{-3pt}\BR{2pt}\TR{-7pt}%10 -\or\BL{-6pt}\TL{-6pt}\BR{0pt}\TR{-9pt}%11 -\or\BL{-6pt}\TL{-6pt}\BR{2pt}\TR{-7pt}%12 -\or\BL{-5pt}\TL{-5pt}\BR{0pt}\TR{-9pt}%13 -\or\BL{-6pt}\TL{-6pt}\BR{0pt}\TR{-9pt}%14 -\or\BL{-3pt}\TL{-3pt}\BR{3pt}\TR{-6pt}%15 -\or\BL{-3pt}\TL{-3pt}\BR{3pt}\TR{-6pt}%16 -\or\BL{-5pt}\TL{-3pt}\BR{-8pt}\TR{-6pt}%17 -\or\BL{-5pt}\TL{-5pt}\BR{0pt}\TR{-9pt}%18 -\or\BL{-3pt}\TL{-3pt}\BR{-6pt}\TR{-9pt}%19 -\or\BL{0pt}\TL{0pt}\BR{0pt}\TR{-5pt}%20 -\fi - -\ifinapp\ifcase\c@chapter\relax% -\or\BL{0pt}\TL{14pt}\BR{5pt}\TR{-19pt}%A -\or\BL{0pt}\TL{-5pt}\BR{-3pt}\TR{-8pt}%B -\or\BL{-3pt}\TL{-2pt}\BR{1pt}\TR{-6pt}\BLrule{0pt}%C -\or\BL{0pt}\TL{-5pt}\BR{-3pt}\TR{-8pt}\BLrule{0pt}%D -\or\BL{0pt}\TL{-5pt}\BR{2pt}\TR{-3pt}%E -\or\BL{0pt}\TL{-5pt}\BR{-10pt}\TR{-1pt}%F -\or\BL{-3pt}\TL{0pt}\BR{0pt}\TR{-7pt}%G -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%H -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%I -\or\BL{2pt}\TL{0pt}\BR{-3pt}\TR{1pt}%J -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%K -\or\BL{0pt}\TL{-5pt}\BR{2pt}\TR{-19pt}%L -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}%M -\or\BL{0pt}\TL{-5pt}\BR{-2pt}\TR{-1pt}%N -\or\BL{-3pt}\TL{-2pt}\BR{-3pt}\TR{-11pt}%O -\or\BL{0pt}\TL{-5pt}\BR{-9pt}\TR{-3pt}%P -\or\BL{-3pt}\TL{-2pt}\BR{-3pt}\TR{-11pt}%Q -\or\BL{0pt}\TL{-5pt}\BR{4pt}\TR{-8pt}%R -\or\BL{-2pt}\TL{-2pt}\BR{-2pt}\TR{-7pt}%S -\or\BL{-3pt}\TL{0pt}\BR{-5pt}\TR{4pt}\BLrule{8pt}%T -\or\BL{-7pt}\TL{-11pt}\BR{-5pt}\TR{-7pt}\BLrule{0pt}%U -\or\BL{-14pt}\TL{-5pt}\BR{-14pt}\TR{-1pt}\BLrule{14pt}%V -\or\BL{-10pt}\TL{-9pt}\BR{-13pt}\TR{-3pt}\BLrule{7pt}%W -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}\BLrule{0pt}%X -\or\BL{-6pt}\TL{-4pt}\BR{-7pt}\TR{1pt}\BLrule{7pt}%Y -\or\BL{0pt}\TL{-5pt}\BR{3pt}\TR{-1pt}\BLrule{0pt}%Z -\fi\fi -%%%%%%% - \settowidth{\px}{\CNV\FmN{\@chapapp}} - \addtolength{\px}{\tl} %MOD change 2pt to \tl - \settoheight{\py}{\CNV\FmN{\@chapapp}} - \addtolength{\py}{1pt} - - \settowidth{\mylen}{\CNV\FmN{\@chapapp}\space\CNoV\thechapter} - \addtolength{\mylen}{\trr}% MOD change 1pt to \tr - \settowidth{\pxx}{\CNoV\thechapter} - \addtolength{\pxx}{-1pt} - - \settoheight{\pyy}{\CNoV\thechapter} - \addtolength{\pyy}{-2pt} - \setlength{\myhi}{\pyy} - \addtolength{\myhi}{-1\py} - \par - \parbox[b]{\textwidth}{% - \rule[\py]{\RW}{\myhi}% - \hskip -\RW% - \rule[\pyy]{\px}{\RW}% - \hskip -\px% - \raggedright% - \CNV\FmN{\@chapapp}\rule{\blrule}{\RW}\hskip\bl\CNoV\thechapter%MOD -% \CNV\FmN{\@chapapp}\space\CNoV\thechapter %ORIGINAL - \hskip\br% %MOD 1pt to \br - \mghrulefill{\RW}% - \rule{\RW}{\pyy}\par\nobreak% - \vskip -\baselineskip% - \vskip -\pyy% - \hskip \mylen% - \mghrulefill{\RW}\par\nobreak% - \vskip \pyy}% - \vskip 20\p@} - - - \renewcommand{\DOTI}[1]{% - \raggedright - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@} - - \renewcommand{\DOTIS}[1]{% - \raggedright - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@} - } - - -% - - -%%%%%% BJORNSTRUP DEF - -\DeclareOption{Bjornstrup}{% - \usecolortrue - % pzc (Zapf Chancelery) is nice. ppl (Palatino) is cool too. - \ChNumVar{\fontsize{76}{80}\usefont{OT1}{pzc}{m}{n}\selectfont} - \ChTitleVar{\raggedleft\Large\sffamily\bfseries} - - \setlength{\myhi}{10pt} % Space between grey box border and text - \setlength{\mylen}{\textwidth} - \addtolength{\mylen}{-2\myhi} - \renewcommand{\DOCH}{% - \settowidth{\py}{\CNoV\thechapter} - \addtolength{\py}{-10pt} % Amount of space by which the -% % number is shifted right - \fboxsep=0pt% - \colorbox[gray]{.85}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}% - \kern-\py\raise20pt% - \hbox{\color[gray]{.5}\CNoV\thechapter}\\% - } - - \renewcommand{\DOTI}[1]{% - \nointerlineskip\raggedright% - \fboxsep=\myhi% - \vskip-1ex% - \colorbox[gray]{.85}{\parbox[t]{\mylen}{\CTV\FmTi{#1}}}\par\nobreak% - \vskip 40\p@% - } - - \renewcommand{\DOTIS}[1]{% - \fboxsep=0pt - \colorbox[gray]{.85}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\% - \nointerlineskip\raggedright% - \fboxsep=\myhi% - \colorbox[gray]{.85}{\parbox[t]{\mylen}{\CTV\FmTi{#1}}}\par\nobreak% - \vskip 40\p@% - } -} - - -%%%%%%% GLENN DEF - - -\DeclareOption{Glenn}{% - \ChNameVar{\bfseries\Large\sf} - \ChNumVar{\Huge} - \ChTitleVar{\bfseries\Large\rm} - \ChRuleWidth{1pt} - \ChNameUpperCase - \ChTitleUpperCase - \renewcommand{\DOCH}{% - \settoheight{\myhi}{\CTV\FmTi{Test}} - \setlength{\py}{\baselineskip} - \addtolength{\py}{\RW} - \addtolength{\py}{\myhi} - \setlength{\pyy}{\py} - \addtolength{\pyy}{-1\RW} - - \raggedright - \CNV\FmN{\@chapapp}\space\CNoV\thechapter - \hskip 3pt\mghrulefill{\RW}\rule[-1\pyy]{2\RW}{\py}\par\nobreak} - - \renewcommand{\DOTI}[1]{% - \addtolength{\pyy}{-4pt} - \settoheight{\myhi}{\CTV\FmTi{#1}} - \addtolength{\myhi}{\py} - \addtolength{\myhi}{-1\RW} - \vskip -1\pyy - \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt - \raggedleft\CTV\FmTi{#1}\par\nobreak - \vskip 80\p@} - -\newlength{\backskip} - \renewcommand{\DOTIS}[1]{% -% \setlength{\py}{10pt} -% \setlength{\pyy}{\py} -% \addtolength{\pyy}{\RW} -% \setlength{\myhi}{\baselineskip} -% \addtolength{\myhi}{\pyy} -% \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak -% \addtolength{}{} -%\vskip -1\baselineskip -% \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 2pt -% \raggedleft\CTV\FmTi{#1}\par\nobreak -% \vskip 60\p@} -%% Fix suggested by Tomas Lundberg - \setlength{\py}{25pt} % eller vad man vill - \setlength{\pyy}{\py} - \setlength{\backskip}{\py} - \addtolength{\backskip}{2pt} - \addtolength{\pyy}{\RW} - \setlength{\myhi}{\baselineskip} - \addtolength{\myhi}{\pyy} - \mghrulefill{\RW}\rule[-1\py]{2\RW}{\pyy}\par\nobreak - \vskip -1\backskip - \rule{2\RW}{\myhi}\mghrulefill{\RW}\hskip 3pt % - \raggedleft\CTV\FmTi{#1}\par\nobreak - \vskip 40\p@} - } - -%%%%%%% CONNY DEF - -\DeclareOption{Conny}{% - \ChNameUpperCase - \ChTitleUpperCase - \ChNameVar{\centering\Huge\rm\bfseries} - \ChNumVar{\Huge} - \ChTitleVar{\centering\Huge\rm} - \ChRuleWidth{2pt} - - \renewcommand{\DOCH}{% - \mghrulefill{3\RW}\par\nobreak - \vskip -0.5\baselineskip - \mghrulefill{\RW}\par\nobreak - \CNV\FmN{\@chapapp}\space \CNoV\thechapter - \par\nobreak - \vskip -0.5\baselineskip - } - \renewcommand{\DOTI}[1]{% - \mghrulefill{\RW}\par\nobreak - \CTV\FmTi{#1}\par\nobreak - \vskip 60\p@ - } - \renewcommand{\DOTIS}[1]{% - \mghrulefill{\RW}\par\nobreak - \CTV\FmTi{#1}\par\nobreak - \vskip 60\p@ - } - } - -%%%%%%% REJNE DEF - -\DeclareOption{Rejne}{% - - \ChNameUpperCase - \ChTitleUpperCase - \ChNameVar{\centering\Large\rm} - \ChNumVar{\Huge} - \ChTitleVar{\centering\Huge\rm} - \ChRuleWidth{1pt} - \renewcommand{\DOCH}{% - \settoheight{\py}{\CNoV\thechapter} - \parskip=0pt plus 1pt % Set parskip to default, just in case v1.31 - \addtolength{\py}{-1pt} - \CNV\FmN{\@chapapp}\par\nobreak - \vskip 20\p@ - \setlength{\myhi}{2\baselineskip} - \setlength{\px}{\myhi} - \addtolength{\px}{-1\RW} - \rule[-1\px]{\RW}{\myhi}\mghrulefill{\RW}\hskip - 10pt\raisebox{-0.5\py}{\CNoV\thechapter}\hskip 10pt\mghrulefill{\RW}\rule[-1\px]{\RW}{\myhi}\par\nobreak - \vskip -3\p@% Added -2pt vskip to correct for streched text v1.31 - } - \renewcommand{\DOTI}[1]{% - \setlength{\mylen}{\textwidth} - \parskip=0pt plus 1pt % Set parskip to default, just in case v1.31 - \addtolength{\mylen}{-2\RW} - {\vrule width\RW}\parbox{\mylen}{\CTV\FmTi{#1}}{\vrule width\RW}\par\nobreak% - \vskip -3pt\rule{\RW}{2\baselineskip}\mghrulefill{\RW}\rule{\RW}{2\baselineskip}% - \vskip 60\p@% Added -2pt in vskip to correct for streched text v1.31 - } - \renewcommand{\DOTIS}[1]{% - \setlength{\py}{\fboxrule} - \setlength{\fboxrule}{\RW} - \setlength{\mylen}{\textwidth} - \addtolength{\mylen}{-2\RW} - \fbox{\parbox{\mylen}{\vskip 2\baselineskip\CTV\FmTi{#1}\par\nobreak\vskip \baselineskip}} - \setlength{\fboxrule}{\py} - \vskip 60\p@ - } - } - - -%%%%%%% BJARNE DEF - -\DeclareOption{Bjarne}{% - \ChNameUpperCase - \ChTitleUpperCase - \ChNameVar{\raggedleft\normalsize\rm} - \ChNumVar{\raggedleft \bfseries\Large} - \ChTitleVar{\raggedleft \Large\rm} - \ChRuleWidth{1pt} - - -%% Note thechapter -> c@chapter fix appendix bug -%% Fixed misspelled 12 - - \newcounter{AlphaCnt} - \newcounter{AlphaDecCnt} - \newcommand{\AlphaNo}{% - \ifcase\number\theAlphaCnt - \ifnum\c@chapter=0 - ZERO\else{}\fi - \or ONE\or TWO\or THREE\or FOUR\or FIVE - \or SIX\or SEVEN\or EIGHT\or NINE\or TEN - \or ELEVEN\or TWELVE\or THIRTEEN\or FOURTEEN\or FIFTEEN - \or SIXTEEN\or SEVENTEEN\or EIGHTEEN\or NINETEEN\fi -} - - \newcommand{\AlphaDecNo}{% - \setcounter{AlphaDecCnt}{0} - \@whilenum\number\theAlphaCnt>0\do - {\addtocounter{AlphaCnt}{-10} - \addtocounter{AlphaDecCnt}{1}} - \ifnum\number\theAlphaCnt=0 - \else - \addtocounter{AlphaDecCnt}{-1} - \addtocounter{AlphaCnt}{10} - \fi - - - \ifcase\number\theAlphaDecCnt\or TEN\or TWENTY\or THIRTY\or - FORTY\or FIFTY\or SIXTY\or SEVENTY\or EIGHTY\or NINETY\fi - } - \newcommand{\TheAlphaChapter}{% - - \ifinapp - \thechapter - \else - \setcounter{AlphaCnt}{\c@chapter} - \ifnum\c@chapter<20 - \AlphaNo - \else - \AlphaDecNo\AlphaNo - \fi - \fi - } - \renewcommand{\DOCH}{% - \mghrulefill{\RW}\par\nobreak - \CNV\FmN{\@chapapp}\par\nobreak - \CNoV\TheAlphaChapter\par\nobreak - \vskip -1\baselineskip\vskip 5pt\mghrulefill{\RW}\par\nobreak - \vskip 20\p@ - } - \renewcommand{\DOTI}[1]{% - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@ - } - \renewcommand{\DOTIS}[1]{% - \CTV\FmTi{#1}\par\nobreak - \vskip 40\p@ - } -} - -\DeclareOption*{% - \PackageWarning{fancychapter}{unknown style option} - } - -\ProcessOptions* \relax - -\ifusecolor - \RequirePackage{color} -\fi -\def\@makechapterhead#1{% - \vspace*{50\p@}% - {\parindent \z@ \raggedright \normalfont - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter%%%%% Fix for frontmatter, mainmatter, and backmatter 040920 - \DOCH - \fi - \fi - \interlinepenalty\@M - \if@mainmatter%%%%% Fix for frontmatter, mainmatter, and backmatter 060424 - \DOTI{#1}% - \else% - \DOTIS{#1}% - \fi - }} - - -%%% Begin: To avoid problem with scrbook.cls (fncychap version 1.32) - -%%OUT: -%\def\@schapter#1{\if@twocolumn -% \@topnewpage[\@makeschapterhead{#1}]% -% \else -% \@makeschapterhead{#1}% -% \@afterheading -% \fi} - -%%IN: -\def\@schapter#1{% -\if@twocolumn% - \@makeschapterhead{#1}% -\else% - \@makeschapterhead{#1}% - \@afterheading% -\fi} - -%%% End: To avoid problem with scrbook.cls (fncychap version 1.32) - -\def\@makeschapterhead#1{% - \vspace*{50\p@}% - {\parindent \z@ \raggedright - \normalfont - \interlinepenalty\@M - \DOTIS{#1} - \vskip 40\p@ - }} - -\endinput - - diff --git a/doc/build/latex/footnotehyper-sphinx.sty b/doc/build/latex/footnotehyper-sphinx.sty deleted file mode 100644 index 5995f01..0000000 --- a/doc/build/latex/footnotehyper-sphinx.sty +++ /dev/null @@ -1,269 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{footnotehyper-sphinx}% - [2017/10/27 v1.7 hyperref aware footnote.sty for sphinx (JFB)] -%% -%% Package: footnotehyper-sphinx -%% Version: based on footnotehyper.sty 2017/03/07 v1.0 -%% as available at http://www.ctan.org/pkg/footnotehyper -%% License: the one applying to Sphinx -%% -%% Refer to the PDF documentation at http://www.ctan.org/pkg/footnotehyper for -%% the code comments. -%% -%% Differences: -%% 1. a partial tabulary compatibility layer added (enough for Sphinx mark-up), -%% 2. use of \spx@opt@BeforeFootnote from sphinx.sty, -%% 3. use of \sphinxunactivateextrasandspace from sphinx.sty, -%% 4. macro definition \sphinxfootnotemark, -%% 5. macro definition \sphinxlongtablepatch -%% 6. replaced an \undefined by \@undefined -\DeclareOption*{\PackageWarning{footnotehyper-sphinx}{Option `\CurrentOption' is unknown}}% -\ProcessOptions\relax -\newbox\FNH@notes -\newdimen\FNH@width -\let\FNH@colwidth\columnwidth -\newif\ifFNH@savingnotes -\AtBeginDocument {% - \let\FNH@latex@footnote \footnote - \let\FNH@latex@footnotetext\footnotetext - \let\FNH@H@@footnotetext \@footnotetext - \newenvironment{savenotes} - {\FNH@savenotes\ignorespaces}{\FNH@spewnotes\ignorespacesafterend}% - \let\spewnotes \FNH@spewnotes - \let\footnote \FNH@footnote - \let\footnotetext \FNH@footnotetext - \let\endfootnote \FNH@endfntext - \let\endfootnotetext\FNH@endfntext - \@ifpackageloaded{hyperref} - {\ifHy@hyperfootnotes - \let\FNH@H@@footnotetext\H@@footnotetext - \else - \let\FNH@hyper@fntext\FNH@nohyp@fntext - \fi}% - {\let\FNH@hyper@fntext\FNH@nohyp@fntext}% -}% -\def\FNH@hyper@fntext{\FNH@fntext\FNH@hyper@fntext@i}% -\def\FNH@nohyp@fntext{\FNH@fntext\FNH@nohyp@fntext@i}% -\def\FNH@fntext #1{% - \ifx\ifmeasuring@\@undefined - \expandafter\@secondoftwo\else\expandafter\@firstofone\fi -% these two lines modified for Sphinx (tabulary compatibility): - {\ifmeasuring@\expandafter\@gobbletwo\else\expandafter\@firstofone\fi}% - {\ifx\equation$\expandafter\@gobbletwo\fi #1}%$ -}% -\long\def\FNH@hyper@fntext@i#1{% - \global\setbox\FNH@notes\vbox - {\unvbox\FNH@notes - \FNH@startnote - \@makefntext - {\rule\z@\footnotesep\ignorespaces - \ifHy@nesting\expandafter\ltx@firstoftwo - \else\expandafter\ltx@secondoftwo - \fi - {\expandafter\hyper@@anchor\expandafter{\Hy@footnote@currentHref}{#1}}% - {\Hy@raisedlink - {\expandafter\hyper@@anchor\expandafter{\Hy@footnote@currentHref}% - {\relax}}% - \let\@currentHref\Hy@footnote@currentHref - \let\@currentlabelname\@empty - #1}% - \@finalstrut\strutbox - }% - \FNH@endnote - }% -}% -\long\def\FNH@nohyp@fntext@i#1{% - \global\setbox\FNH@notes\vbox - {\unvbox\FNH@notes - \FNH@startnote - \@makefntext{\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% - \FNH@endnote - }% -}% -\def\FNH@startnote{% - \hsize\FNH@colwidth - \interlinepenalty\interfootnotelinepenalty - \reset@font\footnotesize - \floatingpenalty\@MM - \@parboxrestore - \protected@edef\@currentlabel{\csname p@\@mpfn\endcsname\@thefnmark}% - \color@begingroup -}% -\def\FNH@endnote{\color@endgroup}% -\def\FNH@savenotes{% - \begingroup - \ifFNH@savingnotes\else - \FNH@savingnotestrue - \let\@footnotetext \FNH@hyper@fntext - \let\@mpfootnotetext \FNH@hyper@fntext - \let\H@@mpfootnotetext\FNH@nohyp@fntext - \FNH@width\columnwidth - \let\FNH@colwidth\FNH@width - \global\setbox\FNH@notes\box\voidb@x - \let\FNH@thempfn\thempfn - \let\FNH@mpfn\@mpfn - \ifx\@minipagerestore\relax\let\@minipagerestore\@empty\fi - \expandafter\def\expandafter\@minipagerestore\expandafter{% - \@minipagerestore - \let\thempfn\FNH@thempfn - \let\@mpfn\FNH@mpfn - }% - \fi -}% -\def\FNH@spewnotes {% - \endgroup - \ifFNH@savingnotes\else - \ifvoid\FNH@notes\else - \begingroup - \let\@makefntext\@empty - \let\@finalstrut\@gobble - \let\rule\@gobbletwo - \FNH@H@@footnotetext{\unvbox\FNH@notes}% - \endgroup - \fi - \fi -}% -\def\FNH@footnote@envname {footnote}% -\def\FNH@footnotetext@envname{footnotetext}% -\def\FNH@footnote{% -% this line added for Sphinx: - \spx@opt@BeforeFootnote - \ifx\@currenvir\FNH@footnote@envname - \expandafter\FNH@footnoteenv - \else - \expandafter\FNH@latex@footnote - \fi -}% -\def\FNH@footnoteenv{% -% this line added for Sphinx (footnotes in parsed literal blocks): - \catcode13=5 \sphinxunactivateextrasandspace - \@ifnextchar[% - \FNH@footnoteenv@i %] - {\stepcounter\@mpfn - \protected@xdef\@thefnmark{\thempfn}% - \@footnotemark - \def\FNH@endfntext@fntext{\@footnotetext}% - \FNH@startfntext}% -}% -\def\FNH@footnoteenv@i[#1]{% - \begingroup - \csname c@\@mpfn\endcsname #1\relax - \unrestored@protected@xdef\@thefnmark{\thempfn}% - \endgroup - \@footnotemark - \def\FNH@endfntext@fntext{\@footnotetext}% - \FNH@startfntext -}% -\def\FNH@footnotetext{% - \ifx\@currenvir\FNH@footnotetext@envname - \expandafter\FNH@footnotetextenv - \else - \expandafter\FNH@latex@footnotetext - \fi -}% -\def\FNH@footnotetextenv{% - \@ifnextchar[% - \FNH@footnotetextenv@i %] - {\protected@xdef\@thefnmark{\thempfn}% - \def\FNH@endfntext@fntext{\@footnotetext}% - \FNH@startfntext}% -}% -\def\FNH@footnotetextenv@i[#1]{% - \begingroup - \csname c@\@mpfn\endcsname #1\relax - \unrestored@protected@xdef\@thefnmark{\thempfn}% - \endgroup - \ifFNH@savingnotes - \def\FNH@endfntext@fntext{\FNH@nohyp@fntext}% - \else - \def\FNH@endfntext@fntext{\FNH@H@@footnotetext}% - \fi - \FNH@startfntext -}% -\def\FNH@startfntext{% - \setbox\z@\vbox\bgroup - \FNH@startnote - \FNH@prefntext - \rule\z@\footnotesep\ignorespaces -}% -\def\FNH@endfntext {% - \@finalstrut\strutbox - \FNH@postfntext - \FNH@endnote - \egroup - \begingroup - \let\@makefntext\@empty\let\@finalstrut\@gobble\let\rule\@gobbletwo - \FNH@endfntext@fntext {\unvbox\z@}% - \endgroup -}% -\AtBeginDocument{% - \let\FNH@@makefntext\@makefntext - \ifx\@makefntextFB\@undefined - \expandafter\@gobble\else\expandafter\@firstofone\fi - {\ifFBFrenchFootnotes \let\FNH@@makefntext\@makefntextFB \else - \let\FNH@@makefntext\@makefntextORI\fi}% - \expandafter\FNH@check@a\FNH@@makefntext{1.2!3?4,}% - \FNH@@@1.2!3?4,\FNH@@@\relax -}% -\long\def\FNH@check@a #11.2!3?4,#2\FNH@@@#3{% - \ifx\relax#3\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi - \FNH@bad@makefntext@alert - {\def\FNH@prefntext{#1}\def\FNH@postfntext{#2}\FNH@check@b}% -}% -\def\FNH@check@b #1\relax{% - \expandafter\expandafter\expandafter\FNH@check@c - \expandafter\meaning\expandafter\FNH@prefntext - \meaning\FNH@postfntext1.2!3?4,\FNH@check@c\relax -}% -\def\FNH@check@c #11.2!3?4,#2#3\relax{% - \ifx\FNH@check@c#2\expandafter\@gobble\fi\FNH@bad@makefntext@alert -}% -% slight reformulation for Sphinx -\def\FNH@bad@makefntext@alert{% - \PackageWarningNoLine{footnotehyper-sphinx}% - {Footnotes will be sub-optimal, sorry. This is due to the document class or^^J - some package modifying macro \string\@makefntext.^^J - You can try to report this incompatibility at^^J - https://github.com/sphinx-doc/sphinx with this info:}% - \typeout{\meaning\@makefntext}% - \let\FNH@prefntext\@empty\let\FNH@postfntext\@empty -}% -% this macro from original footnote.sty is not used anymore by Sphinx -% but for simplicity sake let's just keep it as is -\def\makesavenoteenv{\@ifnextchar[\FNH@msne@ii\FNH@msne@i}%] -\def\FNH@msne@i #1{% - \expandafter\let\csname FNH$#1\expandafter\endcsname %$ - \csname #1\endcsname - \expandafter\let\csname endFNH$#1\expandafter\endcsname %$ - \csname end#1\endcsname - \FNH@msne@ii[#1]{FNH$#1}%$ -}% -\def\FNH@msne@ii[#1]#2{% - \expandafter\edef\csname#1\endcsname{% - \noexpand\savenotes - \expandafter\noexpand\csname#2\endcsname - }% - \expandafter\edef\csname end#1\endcsname{% - \expandafter\noexpand\csname end#2\endcsname - \noexpand\expandafter - \noexpand\spewnotes - \noexpand\if@endpe\noexpand\@endpetrue\noexpand\fi - }% -}% -% end of footnotehyper 2017/02/16 v0.99 -% some extras for Sphinx : -% \sphinxfootnotemark: usable in section titles and silently removed from TOCs. -\def\sphinxfootnotemark [#1]% - {\ifx\thepage\relax\else\protect\spx@opt@BeforeFootnote - \protect\footnotemark[#1]\fi}% -\AtBeginDocument{% - % let hyperref less complain - \pdfstringdefDisableCommands{\def\sphinxfootnotemark [#1]{}}% - % to obtain hyperlinked footnotes in longtable environment we must replace - % hyperref's patch of longtable's patch of \@footnotetext by our own - \let\LT@p@ftntext\FNH@hyper@fntext - % this *requires* longtable to be used always wrapped in savenotes environment -}% -\endinput -%% -%% End of file `footnotehyper-sphinx.sty'. diff --git a/doc/build/latex/latexmkjarc b/doc/build/latex/latexmkjarc deleted file mode 100644 index 39ea47f..0000000 --- a/doc/build/latex/latexmkjarc +++ /dev/null @@ -1,7 +0,0 @@ -$latex = 'platex ' . $ENV{'LATEXOPTS'} . ' -kanji=utf8 %O %S'; -$dvipdf = 'dvipdfmx %O -o %D %S'; -$makeindex = 'rm -f %D; mendex -U -f -d %B.dic -s python.ist %S || echo "mendex exited with error code $? (ignoring)" && : >> %D'; -add_cus_dep( "glo", "gls", 0, "makeglo" ); -sub makeglo { - return system( "mendex -J -f -s gglo.ist -o '$_[0].gls' '$_[0].glo'" ); -} diff --git a/doc/build/latex/latexmkrc b/doc/build/latex/latexmkrc deleted file mode 100644 index bba17fa..0000000 --- a/doc/build/latex/latexmkrc +++ /dev/null @@ -1,9 +0,0 @@ -$latex = 'latex ' . $ENV{'LATEXOPTS'} . ' %O %S'; -$pdflatex = 'pdflatex ' . $ENV{'LATEXOPTS'} . ' %O %S'; -$lualatex = 'lualatex ' . $ENV{'LATEXOPTS'} . ' %O %S'; -$xelatex = 'xelatex --no-pdf ' . $ENV{'LATEXOPTS'} . ' %O %S'; -$makeindex = 'makeindex -s python.ist %O -o %D %S'; -add_cus_dep( "glo", "gls", 0, "makeglo" ); -sub makeglo { - return system( "makeindex -s gglo.ist -o '$_[0].gls' '$_[0].glo'" ); -} \ No newline at end of file diff --git a/doc/build/latex/python.ist b/doc/build/latex/python.ist deleted file mode 100644 index 687d26c..0000000 --- a/doc/build/latex/python.ist +++ /dev/null @@ -1,13 +0,0 @@ -line_max 100 -headings_flag 1 -heading_prefix " \\bigletter " - -preamble "\\begin{sphinxtheindex} -\\def\\bigletter#1{{\\Large\\sffamily#1}\\nopagebreak\\vspace{1mm}} - -" - -postamble "\n\n\\end{sphinxtheindex}\n" - -symhead_positive "{Symbols}" -numhead_positive "{Numbers}" diff --git a/doc/build/latex/salomeTools.aux b/doc/build/latex/salomeTools.aux deleted file mode 100644 index 2fc3f50..0000000 --- a/doc/build/latex/salomeTools.aux +++ /dev/null @@ -1,807 +0,0 @@ -\relax -\providecommand\hyper@newdestlabel[2]{} -\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument} -\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined -\global\let\oldcontentsline\contentsline -\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} -\global\let\oldnewlabel\newlabel -\gdef\newlabel#1#2{\newlabelxx{#1}#2} -\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} -\AtEndDocument{\ifx\hyper@anchor\@undefined -\let\contentsline\oldcontentsline -\let\newlabel\oldnewlabel -\fi} -\fi} -\global\let\hyper@last\relax -\gdef\HyperFirstAtBeginDocument#1{#1} -\providecommand\HyField@AuxAddToFields[1]{} -\providecommand\HyField@AuxAddToCoFields[2]{} -\babel@aux{english}{} -\newlabel{index::doc}{{}{1}{}{section*.2}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {1}Quick start}{3}{chapter.1}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\newlabel{index:quick-start}{{1}{3}{Quick start}{chapter.1}{}} -\newlabel{index:salome-tools}{{1}{3}{Quick start}{chapter.1}{}} -\@writefile{toc}{\contentsline {section}{\numberline {1.1}Installation}{3}{section.1.1}} -\newlabel{installation_of_sat:installation}{{1.1}{3}{Installation}{section.1.1}{}} -\newlabel{installation_of_sat::doc}{{1.1}{3}{Installation}{section.1.1}{}} -\@writefile{toc}{\contentsline {section}{\numberline {1.2}Configuration}{3}{section.1.2}} -\newlabel{configuration:configuration}{{1.2}{3}{Configuration}{section.1.2}{}} -\newlabel{configuration::doc}{{1.2}{3}{Configuration}{section.1.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {1.2.1}Syntax}{3}{subsection.1.2.1}} -\newlabel{configuration:syntax}{{1.2.1}{3}{Syntax}{subsection.1.2.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {1.2.2}Description}{3}{subsection.1.2.2}} -\newlabel{configuration:description}{{1.2.2}{3}{Description}{subsection.1.2.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{VARS section}{3}{subsubsection*.3}} -\newlabel{configuration:vars-section}{{1.2.2}{3}{VARS section}{subsubsection*.3}{}} -\newlabel{configuration:id1}{{1.2.2}{3}{VARS section}{subsubsection*.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{PRODUCTS section}{4}{subsubsection*.4}} -\newlabel{configuration:products-section}{{1.2.2}{4}{PRODUCTS section}{subsubsection*.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{APPLICATION section}{4}{subsubsection*.5}} -\newlabel{configuration:application-section}{{1.2.2}{4}{APPLICATION section}{subsubsection*.5}{}} -\@writefile{toc}{\contentsline {subsubsection}{USER section}{4}{subsubsection*.6}} -\newlabel{configuration:user-section}{{1.2.2}{4}{USER section}{subsubsection*.6}{}} -\newlabel{configuration:id2}{{1.2.2}{4}{USER section}{subsubsection*.6}{}} -\@writefile{toc}{\contentsline {section}{\numberline {1.3}Usage of SAlomeTools}{5}{section.1.3}} -\newlabel{usage_of_sat:svn}{{1.3}{5}{Usage of SAlomeTools}{section.1.3}{}} -\newlabel{usage_of_sat:usage-of-salometools}{{1.3}{5}{Usage of SAlomeTools}{section.1.3}{}} -\newlabel{usage_of_sat::doc}{{1.3}{5}{Usage of SAlomeTools}{section.1.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {1.3.1}Usage}{5}{subsection.1.3.1}} -\newlabel{usage_of_sat:usage}{{1.3.1}{5}{Usage}{subsection.1.3.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{Options of sat}{5}{subsubsection*.7}} -\newlabel{usage_of_sat:options-of-sat}{{1.3.1}{5}{Options of sat}{subsubsection*.7}{}} -\@writefile{toc}{\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}help or -h}}{5}{paragraph*.8}} -\newlabel{usage_of_sat:help-or-h}{{1.3.1}{5}{\sphinxstyleemphasis {\textendash {}help or -h}}{paragraph*.8}{}} -\@writefile{toc}{\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}debug or -g}}{5}{paragraph*.9}} -\newlabel{usage_of_sat:debug-or-g}{{1.3.1}{5}{\sphinxstyleemphasis {\textendash {}debug or -g}}{paragraph*.9}{}} -\@writefile{toc}{\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}verbose or -v}}{5}{paragraph*.10}} -\newlabel{usage_of_sat:verbose-or-v}{{1.3.1}{5}{\sphinxstyleemphasis {\textendash {}verbose or -v}}{paragraph*.10}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {1.3.2}Build a SALOME product}{5}{subsection.1.3.2}} -\newlabel{usage_of_sat:build-a-salome-product}{{1.3.2}{5}{Build a SALOME product}{subsection.1.3.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{Get the list of available products}{5}{subsubsection*.11}} -\newlabel{usage_of_sat:get-the-list-of-available-products}{{1.3.2}{5}{Get the list of available products}{subsubsection*.11}{}} -\@writefile{toc}{\contentsline {subsubsection}{Prepare sources of a product}{5}{subsubsection*.12}} -\newlabel{usage_of_sat:prepare-sources-of-a-product}{{1.3.2}{5}{Prepare sources of a product}{subsubsection*.12}{}} -\@writefile{toc}{\contentsline {subsubsection}{Compile SALOME}{6}{subsubsection*.13}} -\newlabel{usage_of_sat:compile-salome}{{1.3.2}{6}{Compile SALOME}{subsubsection*.13}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {2}List of Commands}{7}{chapter.2}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\newlabel{index:list-of-commands}{{2}{7}{List of Commands}{chapter.2}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.1}Command doc}{8}{section.2.1}} -\newlabel{commands/doc:svn}{{2.1}{8}{Command doc}{section.2.1}{}} -\newlabel{commands/doc::doc}{{2.1}{8}{Command doc}{section.2.1}{}} -\newlabel{commands/doc:command-doc}{{2.1}{8}{Command doc}{section.2.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.1}Description}{8}{subsection.2.1.1}} -\newlabel{commands/doc:description}{{2.1.1}{8}{Description}{subsection.2.1.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.2}Usage}{8}{subsection.2.1.2}} -\newlabel{commands/doc:usage}{{2.1.2}{8}{Usage}{subsection.2.1.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.3}Some useful configuration pathes}{8}{subsection.2.1.3}} -\newlabel{commands/doc:some-useful-configuration-pathes}{{2.1.3}{8}{Some useful configuration pathes}{subsection.2.1.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.2}Command config}{9}{section.2.2}} -\newlabel{commands/config:svn}{{2.2}{9}{Command config}{section.2.2}{}} -\newlabel{commands/config:command-config}{{2.2}{9}{Command config}{section.2.2}{}} -\newlabel{commands/config::doc}{{2.2}{9}{Command config}{section.2.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.1}Description}{9}{subsection.2.2.1}} -\newlabel{commands/config:description}{{2.2.1}{9}{Description}{subsection.2.2.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.2}Usage}{9}{subsection.2.2.2}} -\newlabel{commands/config:usage}{{2.2.2}{9}{Usage}{subsection.2.2.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.3}Some useful configuration pathes}{10}{subsection.2.2.3}} -\newlabel{commands/config:some-useful-configuration-pathes}{{2.2.3}{10}{Some useful configuration pathes}{subsection.2.2.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.3}Command prepare}{11}{section.2.3}} -\newlabel{commands/prepare:svn}{{2.3}{11}{Command prepare}{section.2.3}{}} -\newlabel{commands/prepare:command-prepare}{{2.3}{11}{Command prepare}{section.2.3}{}} -\newlabel{commands/prepare::doc}{{2.3}{11}{Command prepare}{section.2.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.1}Description}{11}{subsection.2.3.1}} -\newlabel{commands/prepare:description}{{2.3.1}{11}{Description}{subsection.2.3.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.2}Remarks}{11}{subsection.2.3.2}} -\newlabel{commands/prepare:remarks}{{2.3.2}{11}{Remarks}{subsection.2.3.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{VCS bases (git, svn, cvs)}{11}{subsubsection*.14}} -\newlabel{commands/prepare:vcs-bases-git-svn-cvs}{{2.3.2}{11}{VCS bases (git, svn, cvs)}{subsubsection*.14}{}} -\@writefile{toc}{\contentsline {subsubsection}{Dev mode}{11}{subsubsection*.15}} -\newlabel{commands/prepare:dev-mode}{{2.3.2}{11}{Dev mode}{subsubsection*.15}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.3}Usage}{11}{subsection.2.3.3}} -\newlabel{commands/prepare:usage}{{2.3.3}{11}{Usage}{subsection.2.3.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.4}Some useful configuration pathes}{12}{subsection.2.3.4}} -\newlabel{commands/prepare:some-useful-configuration-pathes}{{2.3.4}{12}{Some useful configuration pathes}{subsection.2.3.4}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.4}Command compile}{13}{section.2.4}} -\newlabel{commands/compile:svn}{{2.4}{13}{Command compile}{section.2.4}{}} -\newlabel{commands/compile:command-compile}{{2.4}{13}{Command compile}{section.2.4}{}} -\newlabel{commands/compile::doc}{{2.4}{13}{Command compile}{section.2.4}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.4.1}Description}{13}{subsection.2.4.1}} -\newlabel{commands/compile:description}{{2.4.1}{13}{Description}{subsection.2.4.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.4.2}Usage}{13}{subsection.2.4.2}} -\newlabel{commands/compile:usage}{{2.4.2}{13}{Usage}{subsection.2.4.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.4.3}Some useful configuration pathes}{14}{subsection.2.4.3}} -\newlabel{commands/compile:some-useful-configuration-pathes}{{2.4.3}{14}{Some useful configuration pathes}{subsection.2.4.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.5}Command launcher}{15}{section.2.5}} -\newlabel{commands/launcher:svn}{{2.5}{15}{Command launcher}{section.2.5}{}} -\newlabel{commands/launcher:command-launcher}{{2.5}{15}{Command launcher}{section.2.5}{}} -\newlabel{commands/launcher::doc}{{2.5}{15}{Command launcher}{section.2.5}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.5.1}Description}{15}{subsection.2.5.1}} -\newlabel{commands/launcher:description}{{2.5.1}{15}{Description}{subsection.2.5.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.5.2}Usage}{15}{subsection.2.5.2}} -\newlabel{commands/launcher:usage}{{2.5.2}{15}{Usage}{subsection.2.5.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.5.3}Configuration}{15}{subsection.2.5.3}} -\newlabel{commands/launcher:configuration}{{2.5.3}{15}{Configuration}{subsection.2.5.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.6}Command application}{16}{section.2.6}} -\newlabel{commands/application:svn}{{2.6}{16}{Command application}{section.2.6}{}} -\newlabel{commands/application::doc}{{2.6}{16}{Command application}{section.2.6}{}} -\newlabel{commands/application:command-application}{{2.6}{16}{Command application}{section.2.6}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.6.1}Description}{16}{subsection.2.6.1}} -\newlabel{commands/application:description}{{2.6.1}{16}{Description}{subsection.2.6.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.6.2}Usage}{16}{subsection.2.6.2}} -\newlabel{commands/application:usage}{{2.6.2}{16}{Usage}{subsection.2.6.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.6.3}Some useful configuration pathes}{16}{subsection.2.6.3}} -\newlabel{commands/application:some-useful-configuration-pathes}{{2.6.3}{16}{Some useful configuration pathes}{subsection.2.6.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.7}Command log}{17}{section.2.7}} -\newlabel{commands/log:svn}{{2.7}{17}{Command log}{section.2.7}{}} -\newlabel{commands/log:command-log}{{2.7}{17}{Command log}{section.2.7}{}} -\newlabel{commands/log::doc}{{2.7}{17}{Command log}{section.2.7}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.7.1}Description}{17}{subsection.2.7.1}} -\newlabel{commands/log:description}{{2.7.1}{17}{Description}{subsection.2.7.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.7.2}Usage}{17}{subsection.2.7.2}} -\newlabel{commands/log:usage}{{2.7.2}{17}{Usage}{subsection.2.7.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.7.3}Some useful configuration pathes}{17}{subsection.2.7.3}} -\newlabel{commands/log:some-useful-configuration-pathes}{{2.7.3}{17}{Some useful configuration pathes}{subsection.2.7.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.8}Command environ}{18}{section.2.8}} -\newlabel{commands/environ:svn}{{2.8}{18}{Command environ}{section.2.8}{}} -\newlabel{commands/environ:command-environ}{{2.8}{18}{Command environ}{section.2.8}{}} -\newlabel{commands/environ::doc}{{2.8}{18}{Command environ}{section.2.8}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.8.1}Description}{18}{subsection.2.8.1}} -\newlabel{commands/environ:description}{{2.8.1}{18}{Description}{subsection.2.8.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.8.2}Usage}{18}{subsection.2.8.2}} -\newlabel{commands/environ:usage}{{2.8.2}{18}{Usage}{subsection.2.8.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.8.3}Configuration}{18}{subsection.2.8.3}} -\newlabel{commands/environ:configuration}{{2.8.3}{18}{Configuration}{subsection.2.8.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.9}Command clean}{21}{section.2.9}} -\newlabel{commands/clean:svn}{{2.9}{21}{Command clean}{section.2.9}{}} -\newlabel{commands/clean:command-clean}{{2.9}{21}{Command clean}{section.2.9}{}} -\newlabel{commands/clean::doc}{{2.9}{21}{Command clean}{section.2.9}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.9.1}Description}{21}{subsection.2.9.1}} -\newlabel{commands/clean:description}{{2.9.1}{21}{Description}{subsection.2.9.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.9.2}Usage}{21}{subsection.2.9.2}} -\newlabel{commands/clean:usage}{{2.9.2}{21}{Usage}{subsection.2.9.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.9.3}Availables options}{21}{subsection.2.9.3}} -\newlabel{commands/clean:availables-options}{{2.9.3}{21}{Availables options}{subsection.2.9.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.9.4}Some useful configuration pathes}{21}{subsection.2.9.4}} -\newlabel{commands/clean:some-useful-configuration-pathes}{{2.9.4}{21}{Some useful configuration pathes}{subsection.2.9.4}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.10}Command package}{22}{section.2.10}} -\newlabel{commands/package:svn}{{2.10}{22}{Command package}{section.2.10}{}} -\newlabel{commands/package:command-package}{{2.10}{22}{Command package}{section.2.10}{}} -\newlabel{commands/package::doc}{{2.10}{22}{Command package}{section.2.10}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.10.1}Description}{22}{subsection.2.10.1}} -\newlabel{commands/package:description}{{2.10.1}{22}{Description}{subsection.2.10.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.10.2}Usage}{22}{subsection.2.10.2}} -\newlabel{commands/package:usage}{{2.10.2}{22}{Usage}{subsection.2.10.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.10.3}Some useful configuration pathes}{23}{subsection.2.10.3}} -\newlabel{commands/package:some-useful-configuration-pathes}{{2.10.3}{23}{Some useful configuration pathes}{subsection.2.10.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {2.11}Command generate}{24}{section.2.11}} -\newlabel{commands/generate:svn}{{2.11}{24}{Command generate}{section.2.11}{}} -\newlabel{commands/generate:command-generate}{{2.11}{24}{Command generate}{section.2.11}{}} -\newlabel{commands/generate::doc}{{2.11}{24}{Command generate}{section.2.11}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.11.1}Description}{24}{subsection.2.11.1}} -\newlabel{commands/generate:description}{{2.11.1}{24}{Description}{subsection.2.11.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.11.2}Remarks}{24}{subsection.2.11.2}} -\newlabel{commands/generate:remarks}{{2.11.2}{24}{Remarks}{subsection.2.11.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {2.11.3}Usage}{24}{subsection.2.11.3}} -\newlabel{commands/generate:usage}{{2.11.3}{24}{Usage}{subsection.2.11.3}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {3}Developer documentation}{25}{chapter.3}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\newlabel{index:developer-documentation}{{3}{25}{Developer documentation}{chapter.3}{}} -\@writefile{toc}{\contentsline {section}{\numberline {3.1}Add a user custom command}{26}{section.3.1}} -\newlabel{write_command:svn}{{3.1}{26}{Add a user custom command}{section.3.1}{}} -\newlabel{write_command:add-a-user-custom-command}{{3.1}{26}{Add a user custom command}{section.3.1}{}} -\newlabel{write_command::doc}{{3.1}{26}{Add a user custom command}{section.3.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.1}Introduction}{26}{subsection.3.1.1}} -\newlabel{write_command:introduction}{{3.1.1}{26}{Introduction}{subsection.3.1.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.2}Basic requirements}{26}{subsection.3.1.2}} -\newlabel{write_command:basic-requirements}{{3.1.2}{26}{Basic requirements}{subsection.3.1.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.3}HowTo access salomeTools config and other commands}{27}{subsection.3.1.3}} -\newlabel{write_command:howto-access-salometools-config-and-other-commands}{{3.1.3}{27}{HowTo access salomeTools config and other commands}{subsection.3.1.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.4}HowTo logger}{27}{subsection.3.1.4}} -\newlabel{write_command:howto-logger}{{3.1.4}{27}{HowTo logger}{subsection.3.1.4}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.5}HELLO example}{27}{subsection.3.1.5}} -\newlabel{write_command:hello-example}{{3.1.5}{27}{HELLO example}{subsection.3.1.5}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {4}Code documentation}{29}{chapter.4}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\newlabel{index:code-documentation}{{4}{29}{Code documentation}{chapter.4}{}} -\@writefile{toc}{\contentsline {section}{\numberline {4.1}src}{29}{section.4.1}} -\newlabel{commands/apidoc/modules:src}{{4.1}{29}{src}{section.4.1}{}} -\newlabel{commands/apidoc/modules::doc}{{4.1}{29}{src}{section.4.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.1.1}src package}{29}{subsection.4.1.1}} -\newlabel{commands/apidoc/src::doc}{{4.1.1}{29}{src package}{subsection.4.1.1}{}} -\newlabel{commands/apidoc/src:src-package}{{4.1.1}{29}{src package}{subsection.4.1.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{Subpackages}{29}{subsubsection*.16}} -\newlabel{commands/apidoc/src:subpackages}{{4.1.1}{29}{Subpackages}{subsubsection*.16}{}} -\@writefile{toc}{\contentsline {paragraph}{src.colorama package}{29}{paragraph*.17}} -\newlabel{commands/apidoc/src.colorama:src-colorama-package}{{4.1.1}{29}{src.colorama package}{paragraph*.17}{}} -\newlabel{commands/apidoc/src.colorama::doc}{{4.1.1}{29}{src.colorama package}{paragraph*.17}{}} -\@writefile{toc}{\contentsline {subparagraph}{Submodules}{29}{subparagraph*.18}} -\newlabel{commands/apidoc/src.colorama:submodules}{{4.1.1}{29}{Submodules}{subparagraph*.18}{}} -\@writefile{toc}{\contentsline {subparagraph}{src.colorama.ansi module}{29}{subparagraph*.19}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama.ansi}{{4.1.1}{29}{src.colorama.ansi module}{subparagraph*.19}{}} -\newlabel{commands/apidoc/src.colorama:src-colorama-ansi-module}{{4.1.1}{29}{src.colorama.ansi module}{subparagraph*.19}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack}{{4.1.1}{29}{src.colorama.ansi module}{section*.20}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLACK}{{4.1.1}{29}{src.colorama.ansi module}{section*.21}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLUE}{{4.1.1}{29}{src.colorama.ansi module}{section*.22}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.CYAN}{{4.1.1}{29}{src.colorama.ansi module}{section*.23}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.GREEN}{{4.1.1}{29}{src.colorama.ansi module}{section*.24}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLACK_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.25}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLUE_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.26}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTCYAN_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.27}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTGREEN_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.28}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTMAGENTA_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.29}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTRED_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.30}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTWHITE_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.31}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTYELLOW_EX}{{4.1.1}{29}{src.colorama.ansi module}{section*.32}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.MAGENTA}{{4.1.1}{29}{src.colorama.ansi module}{section*.33}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RED}{{4.1.1}{29}{src.colorama.ansi module}{section*.34}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RESET}{{4.1.1}{29}{src.colorama.ansi module}{section*.35}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.WHITE}{{4.1.1}{29}{src.colorama.ansi module}{section*.36}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.YELLOW}{{4.1.1}{29}{src.colorama.ansi module}{section*.37}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}{{4.1.1}{29}{src.colorama.ansi module}{section*.38}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor}{{4.1.1}{30}{src.colorama.ansi module}{section*.39}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.BACK}{{4.1.1}{30}{src.colorama.ansi module}{section*.40}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.DOWN}{{4.1.1}{30}{src.colorama.ansi module}{section*.41}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.FORWARD}{{4.1.1}{30}{src.colorama.ansi module}{section*.42}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.POS}{{4.1.1}{30}{src.colorama.ansi module}{section*.43}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.UP}{{4.1.1}{30}{src.colorama.ansi module}{section*.44}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore}{{4.1.1}{30}{src.colorama.ansi module}{section*.45}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLACK}{{4.1.1}{30}{src.colorama.ansi module}{section*.46}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLUE}{{4.1.1}{30}{src.colorama.ansi module}{section*.47}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.CYAN}{{4.1.1}{30}{src.colorama.ansi module}{section*.48}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.GREEN}{{4.1.1}{30}{src.colorama.ansi module}{section*.49}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLACK_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.50}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLUE_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.51}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTCYAN_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.52}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTGREEN_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.53}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTMAGENTA_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.54}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTRED_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.55}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTWHITE_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.56}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTYELLOW_EX}{{4.1.1}{30}{src.colorama.ansi module}{section*.57}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.MAGENTA}{{4.1.1}{30}{src.colorama.ansi module}{section*.58}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RED}{{4.1.1}{30}{src.colorama.ansi module}{section*.59}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RESET}{{4.1.1}{30}{src.colorama.ansi module}{section*.60}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.WHITE}{{4.1.1}{30}{src.colorama.ansi module}{section*.61}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.YELLOW}{{4.1.1}{30}{src.colorama.ansi module}{section*.62}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle}{{4.1.1}{30}{src.colorama.ansi module}{section*.63}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.BRIGHT}{{4.1.1}{30}{src.colorama.ansi module}{section*.64}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.DIM}{{4.1.1}{30}{src.colorama.ansi module}{section*.65}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.NORMAL}{{4.1.1}{30}{src.colorama.ansi module}{section*.66}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.RESET_ALL}{{4.1.1}{30}{src.colorama.ansi module}{section*.67}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.clear_line}{{4.1.1}{30}{src.colorama.ansi module}{section*.68}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.clear_screen}{{4.1.1}{30}{src.colorama.ansi module}{section*.69}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.code_to_chars}{{4.1.1}{30}{src.colorama.ansi module}{section*.70}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansi.set_title}{{4.1.1}{30}{src.colorama.ansi module}{section*.71}{}} -\@writefile{toc}{\contentsline {subparagraph}{src.colorama.ansitowin32 module}{31}{subparagraph*.72}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama.ansitowin32}{{4.1.1}{31}{src.colorama.ansitowin32 module}{subparagraph*.72}{}} -\newlabel{commands/apidoc/src.colorama:src-colorama-ansitowin32-module}{{4.1.1}{31}{src.colorama.ansitowin32 module}{subparagraph*.72}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.73}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.74}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_OSC_RE}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.75}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.call_win32}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.76}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_ansi}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.77}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_osc}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.78}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.extract_params}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.79}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.get_win32_calls}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.80}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.reset_all}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.81}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.should_wrap}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.82}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.83}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_and_convert}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.84}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_plain_text}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.85}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.86}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper.write}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.87}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_a_tty}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.88}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_stream_closed}{{4.1.1}{31}{src.colorama.ansitowin32 module}{section*.89}{}} -\@writefile{toc}{\contentsline {subparagraph}{src.colorama.initialise module}{31}{subparagraph*.90}} -\newlabel{commands/apidoc/src.colorama:src-colorama-initialise-module}{{4.1.1}{31}{src.colorama.initialise module}{subparagraph*.90}{}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama.initialise}{{4.1.1}{31}{src.colorama.initialise module}{subparagraph*.90}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.colorama_text}{{4.1.1}{31}{src.colorama.initialise module}{section*.91}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.deinit}{{4.1.1}{31}{src.colorama.initialise module}{section*.92}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.init}{{4.1.1}{31}{src.colorama.initialise module}{section*.93}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.reinit}{{4.1.1}{31}{src.colorama.initialise module}{section*.94}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.reset_all}{{4.1.1}{31}{src.colorama.initialise module}{section*.95}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.initialise.wrap_stream}{{4.1.1}{31}{src.colorama.initialise module}{section*.96}{}} -\@writefile{toc}{\contentsline {subparagraph}{src.colorama.win32 module}{32}{subparagraph*.97}} -\newlabel{commands/apidoc/src.colorama:src-colorama-win32-module}{{4.1.1}{32}{src.colorama.win32 module}{subparagraph*.97}{}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama.win32}{{4.1.1}{32}{src.colorama.win32 module}{subparagraph*.97}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.win32.SetConsoleTextAttribute}{{4.1.1}{32}{src.colorama.win32 module}{section*.98}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.win32.winapi_test}{{4.1.1}{32}{src.colorama.win32 module}{section*.99}{}} -\@writefile{toc}{\contentsline {subparagraph}{src.colorama.winterm module}{32}{subparagraph*.100}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama.winterm}{{4.1.1}{32}{src.colorama.winterm module}{subparagraph*.100}{}} -\newlabel{commands/apidoc/src.colorama:src-colorama-winterm-module}{{4.1.1}{32}{src.colorama.winterm module}{subparagraph*.100}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor}{{4.1.1}{32}{src.colorama.winterm module}{section*.101}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLACK}{{4.1.1}{32}{src.colorama.winterm module}{section*.102}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLUE}{{4.1.1}{32}{src.colorama.winterm module}{section*.103}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.CYAN}{{4.1.1}{32}{src.colorama.winterm module}{section*.104}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREEN}{{4.1.1}{32}{src.colorama.winterm module}{section*.105}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREY}{{4.1.1}{32}{src.colorama.winterm module}{section*.106}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.MAGENTA}{{4.1.1}{32}{src.colorama.winterm module}{section*.107}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.RED}{{4.1.1}{32}{src.colorama.winterm module}{section*.108}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.YELLOW}{{4.1.1}{32}{src.colorama.winterm module}{section*.109}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle}{{4.1.1}{32}{src.colorama.winterm module}{section*.110}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT}{{4.1.1}{32}{src.colorama.winterm module}{section*.111}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT_BACKGROUND}{{4.1.1}{32}{src.colorama.winterm module}{section*.112}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.NORMAL}{{4.1.1}{32}{src.colorama.winterm module}{section*.113}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm}{{4.1.1}{32}{src.colorama.winterm module}{section*.114}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.back}{{4.1.1}{32}{src.colorama.winterm module}{section*.115}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.cursor_adjust}{{4.1.1}{32}{src.colorama.winterm module}{section*.116}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_line}{{4.1.1}{32}{src.colorama.winterm module}{section*.117}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_screen}{{4.1.1}{32}{src.colorama.winterm module}{section*.118}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.fore}{{4.1.1}{32}{src.colorama.winterm module}{section*.119}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_attrs}{{4.1.1}{32}{src.colorama.winterm module}{section*.120}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_position}{{4.1.1}{32}{src.colorama.winterm module}{section*.121}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.reset_all}{{4.1.1}{32}{src.colorama.winterm module}{section*.122}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_attrs}{{4.1.1}{32}{src.colorama.winterm module}{section*.123}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_console}{{4.1.1}{32}{src.colorama.winterm module}{section*.124}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_cursor_position}{{4.1.1}{32}{src.colorama.winterm module}{section*.125}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_title}{{4.1.1}{32}{src.colorama.winterm module}{section*.126}{}} -\newlabel{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.style}{{4.1.1}{32}{src.colorama.winterm module}{section*.127}{}} -\@writefile{toc}{\contentsline {subparagraph}{Module contents}{33}{subparagraph*.128}} -\newlabel{commands/apidoc/src.colorama:module-src.colorama}{{4.1.1}{33}{Module contents}{subparagraph*.128}{}} -\newlabel{commands/apidoc/src.colorama:module-contents}{{4.1.1}{33}{Module contents}{subparagraph*.128}{}} -\@writefile{toc}{\contentsline {subsubsection}{Submodules}{33}{subsubsection*.129}} -\newlabel{commands/apidoc/src:submodules}{{4.1.1}{33}{Submodules}{subsubsection*.129}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.ElementTree module}{33}{subsubsection*.130}} -\newlabel{commands/apidoc/src:src-elementtree-module}{{4.1.1}{33}{src.ElementTree module}{subsubsection*.130}{}} -\newlabel{commands/apidoc/src:module-src.ElementTree}{{4.1.1}{33}{src.ElementTree module}{subsubsection*.130}{}} -\newlabel{commands/apidoc/src:src.ElementTree.Comment}{{4.1.1}{33}{src.ElementTree module}{section*.131}{}} -\newlabel{commands/apidoc/src:src.ElementTree.dump}{{4.1.1}{33}{src.ElementTree module}{section*.132}{}} -\newlabel{commands/apidoc/src:src.ElementTree.Element}{{4.1.1}{33}{src.ElementTree module}{section*.133}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree}{{4.1.1}{33}{src.ElementTree module}{section*.134}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.find}{{4.1.1}{33}{src.ElementTree module}{section*.135}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.findall}{{4.1.1}{33}{src.ElementTree module}{section*.136}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.findtext}{{4.1.1}{33}{src.ElementTree module}{section*.137}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.getiterator}{{4.1.1}{33}{src.ElementTree module}{section*.138}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.getroot}{{4.1.1}{33}{src.ElementTree module}{section*.139}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.parse}{{4.1.1}{33}{src.ElementTree module}{section*.140}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ElementTree.write}{{4.1.1}{33}{src.ElementTree module}{section*.141}{}} -\newlabel{commands/apidoc/src:src.ElementTree.fromstring}{{4.1.1}{33}{src.ElementTree module}{section*.142}{}} -\newlabel{commands/apidoc/src:src.ElementTree.iselement}{{4.1.1}{33}{src.ElementTree module}{section*.143}{}} -\newlabel{commands/apidoc/src:src.ElementTree.iterparse}{{4.1.1}{33}{src.ElementTree module}{section*.144}{}} -\newlabel{commands/apidoc/src:src.ElementTree.iterparse.next}{{4.1.1}{33}{src.ElementTree module}{section*.145}{}} -\newlabel{commands/apidoc/src:src.ElementTree.parse}{{4.1.1}{33}{src.ElementTree module}{section*.146}{}} -\newlabel{commands/apidoc/src:src.ElementTree.PI}{{4.1.1}{33}{src.ElementTree module}{section*.147}{}} -\newlabel{commands/apidoc/src:src.ElementTree.ProcessingInstruction}{{4.1.1}{33}{src.ElementTree module}{section*.148}{}} -\newlabel{commands/apidoc/src:src.ElementTree.QName}{{4.1.1}{33}{src.ElementTree module}{section*.149}{}} -\newlabel{commands/apidoc/src:src.ElementTree.SubElement}{{4.1.1}{33}{src.ElementTree module}{section*.150}{}} -\newlabel{commands/apidoc/src:src.ElementTree.tostring}{{4.1.1}{33}{src.ElementTree module}{section*.151}{}} -\newlabel{commands/apidoc/src:src.ElementTree.TreeBuilder}{{4.1.1}{33}{src.ElementTree module}{section*.152}{}} -\newlabel{commands/apidoc/src:src.ElementTree.TreeBuilder.close}{{4.1.1}{33}{src.ElementTree module}{section*.153}{}} -\newlabel{commands/apidoc/src:src.ElementTree.TreeBuilder.data}{{4.1.1}{33}{src.ElementTree module}{section*.154}{}} -\newlabel{commands/apidoc/src:src.ElementTree.TreeBuilder.end}{{4.1.1}{33}{src.ElementTree module}{section*.155}{}} -\newlabel{commands/apidoc/src:src.ElementTree.TreeBuilder.start}{{4.1.1}{33}{src.ElementTree module}{section*.156}{}} -\newlabel{commands/apidoc/src:src.ElementTree.XML}{{4.1.1}{33}{src.ElementTree module}{section*.157}{}} -\newlabel{commands/apidoc/src:src.ElementTree.XMLTreeBuilder}{{4.1.1}{33}{src.ElementTree module}{section*.158}{}} -\newlabel{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.close}{{4.1.1}{33}{src.ElementTree module}{section*.159}{}} -\newlabel{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.doctype}{{4.1.1}{33}{src.ElementTree module}{section*.160}{}} -\newlabel{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.feed}{{4.1.1}{33}{src.ElementTree module}{section*.161}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.architecture module}{34}{subsubsection*.162}} -\newlabel{commands/apidoc/src:module-src.architecture}{{4.1.1}{34}{src.architecture module}{subsubsection*.162}{}} -\newlabel{commands/apidoc/src:src-architecture-module}{{4.1.1}{34}{src.architecture module}{subsubsection*.162}{}} -\newlabel{commands/apidoc/src:src.architecture.get_distrib_version}{{4.1.1}{34}{src.architecture module}{section*.163}{}} -\newlabel{commands/apidoc/src:src.architecture.get_distribution}{{4.1.1}{34}{src.architecture module}{section*.164}{}} -\newlabel{commands/apidoc/src:src.architecture.get_nb_proc}{{4.1.1}{34}{src.architecture module}{section*.165}{}} -\newlabel{commands/apidoc/src:src.architecture.get_python_version}{{4.1.1}{34}{src.architecture module}{section*.166}{}} -\newlabel{commands/apidoc/src:src.architecture.get_user}{{4.1.1}{34}{src.architecture module}{section*.167}{}} -\newlabel{commands/apidoc/src:src.architecture.is_windows}{{4.1.1}{34}{src.architecture module}{section*.168}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.compilation module}{34}{subsubsection*.169}} -\newlabel{commands/apidoc/src:module-src.compilation}{{4.1.1}{34}{src.compilation module}{subsubsection*.169}{}} -\newlabel{commands/apidoc/src:src-compilation-module}{{4.1.1}{34}{src.compilation module}{subsubsection*.169}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder}{{4.1.1}{34}{src.compilation module}{section*.170}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.build_configure}{{4.1.1}{34}{src.compilation module}{section*.171}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.check}{{4.1.1}{34}{src.compilation module}{section*.172}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.cmake}{{4.1.1}{34}{src.compilation module}{section*.173}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.complete_environment}{{4.1.1}{34}{src.compilation module}{section*.174}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.configure}{{4.1.1}{34}{src.compilation module}{section*.175}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.do_batch_script_build}{{4.1.1}{34}{src.compilation module}{section*.176}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.do_default_build}{{4.1.1}{34}{src.compilation module}{section*.177}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.do_python_script_build}{{4.1.1}{35}{src.compilation module}{section*.178}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.do_script_build}{{4.1.1}{35}{src.compilation module}{section*.179}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.hack_libtool}{{4.1.1}{35}{src.compilation module}{section*.180}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.install}{{4.1.1}{35}{src.compilation module}{section*.181}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.log}{{4.1.1}{35}{src.compilation module}{section*.182}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.log_command}{{4.1.1}{35}{src.compilation module}{section*.183}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.make}{{4.1.1}{35}{src.compilation module}{section*.184}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.prepare}{{4.1.1}{35}{src.compilation module}{section*.185}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.put_txt_log_in_appli_log_dir}{{4.1.1}{35}{src.compilation module}{section*.186}{}} -\newlabel{commands/apidoc/src:src.compilation.Builder.wmake}{{4.1.1}{35}{src.compilation module}{section*.187}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.debug module}{35}{subsubsection*.188}} -\newlabel{commands/apidoc/src:module-src.debug}{{4.1.1}{35}{src.debug module}{subsubsection*.188}{}} -\newlabel{commands/apidoc/src:src-debug-module}{{4.1.1}{35}{src.debug module}{subsubsection*.188}{}} -\newlabel{commands/apidoc/src:src.debug.InStream}{{4.1.1}{36}{src.debug module}{section*.189}{}} -\newlabel{commands/apidoc/src:src.debug.OutStream}{{4.1.1}{36}{src.debug module}{section*.190}{}} -\newlabel{commands/apidoc/src:src.debug.OutStream.close}{{4.1.1}{36}{src.debug module}{section*.191}{}} -\newlabel{commands/apidoc/src:src.debug.format_color_exception}{{4.1.1}{36}{src.debug module}{section*.192}{}} -\newlabel{commands/apidoc/src:src.debug.format_exception}{{4.1.1}{36}{src.debug module}{section*.193}{}} -\newlabel{commands/apidoc/src:src.debug.getLocalEnv}{{4.1.1}{36}{src.debug module}{section*.194}{}} -\newlabel{commands/apidoc/src:src.debug.getStrConfigDbg}{{4.1.1}{36}{src.debug module}{section*.195}{}} -\newlabel{commands/apidoc/src:src.debug.getStrConfigStd}{{4.1.1}{36}{src.debug module}{section*.196}{}} -\newlabel{commands/apidoc/src:src.debug.indent}{{4.1.1}{36}{src.debug module}{section*.197}{}} -\newlabel{commands/apidoc/src:src.debug.isTypeConfig}{{4.1.1}{36}{src.debug module}{section*.198}{}} -\newlabel{commands/apidoc/src:src.debug.pop_debug}{{4.1.1}{36}{src.debug module}{section*.199}{}} -\newlabel{commands/apidoc/src:src.debug.push_debug}{{4.1.1}{36}{src.debug module}{section*.200}{}} -\newlabel{commands/apidoc/src:src.debug.saveConfigDbg}{{4.1.1}{36}{src.debug module}{section*.201}{}} -\newlabel{commands/apidoc/src:src.debug.saveConfigStd}{{4.1.1}{36}{src.debug module}{section*.202}{}} -\newlabel{commands/apidoc/src:src.debug.tofix}{{4.1.1}{36}{src.debug module}{section*.203}{}} -\newlabel{commands/apidoc/src:src.debug.write}{{4.1.1}{36}{src.debug module}{section*.204}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.environment module}{36}{subsubsection*.205}} -\newlabel{commands/apidoc/src:src-environment-module}{{4.1.1}{36}{src.environment module}{subsubsection*.205}{}} -\newlabel{commands/apidoc/src:module-src.environment}{{4.1.1}{36}{src.environment module}{subsubsection*.205}{}} -\newlabel{commands/apidoc/src:src.environment.Environ}{{4.1.1}{36}{src.environment module}{section*.206}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.append}{{4.1.1}{36}{src.environment module}{section*.207}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.append_value}{{4.1.1}{37}{src.environment module}{section*.208}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.command_value}{{4.1.1}{37}{src.environment module}{section*.209}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.get}{{4.1.1}{37}{src.environment module}{section*.210}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.is_defined}{{4.1.1}{37}{src.environment module}{section*.211}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.prepend}{{4.1.1}{37}{src.environment module}{section*.212}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.prepend_value}{{4.1.1}{37}{src.environment module}{section*.213}{}} -\newlabel{commands/apidoc/src:src.environment.Environ.set}{{4.1.1}{37}{src.environment module}{section*.214}{}} -\newlabel{commands/apidoc/src:src.environment.FileEnvWriter}{{4.1.1}{37}{src.environment module}{section*.215}{}} -\newlabel{commands/apidoc/src:src.environment.FileEnvWriter.write_cfgForPy_file}{{4.1.1}{37}{src.environment module}{section*.216}{}} -\newlabel{commands/apidoc/src:src.environment.FileEnvWriter.write_env_file}{{4.1.1}{38}{src.environment module}{section*.217}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron}{{4.1.1}{38}{src.environment module}{section*.218}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.add_comment}{{4.1.1}{38}{src.environment module}{section*.219}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.add_line}{{4.1.1}{38}{src.environment module}{section*.220}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.add_warning}{{4.1.1}{38}{src.environment module}{section*.221}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.append}{{4.1.1}{38}{src.environment module}{section*.222}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.dump}{{4.1.1}{38}{src.environment module}{section*.223}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.finish}{{4.1.1}{38}{src.environment module}{section*.224}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.get}{{4.1.1}{38}{src.environment module}{section*.225}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.get_names}{{4.1.1}{38}{src.environment module}{section*.226}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.is_defined}{{4.1.1}{38}{src.environment module}{section*.227}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.load_cfg_environment}{{4.1.1}{39}{src.environment module}{section*.228}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.prepend}{{4.1.1}{39}{src.environment module}{section*.229}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.run_env_script}{{4.1.1}{39}{src.environment module}{section*.230}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.run_simple_env_script}{{4.1.1}{39}{src.environment module}{section*.231}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set}{{4.1.1}{39}{src.environment module}{section*.232}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_a_product}{{4.1.1}{39}{src.environment module}{section*.233}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_application_env}{{4.1.1}{39}{src.environment module}{section*.234}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_cpp_env}{{4.1.1}{39}{src.environment module}{section*.235}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_full_environ}{{4.1.1}{39}{src.environment module}{section*.236}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_products}{{4.1.1}{40}{src.environment module}{section*.237}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_python_libdirs}{{4.1.1}{40}{src.environment module}{section*.238}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_generic_product_env}{{4.1.1}{40}{src.environment module}{section*.239}{}} -\newlabel{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_minimal_product_env}{{4.1.1}{40}{src.environment module}{section*.240}{}} -\newlabel{commands/apidoc/src:src.environment.Shell}{{4.1.1}{40}{src.environment module}{section*.241}{}} -\newlabel{commands/apidoc/src:src.environment.load_environment}{{4.1.1}{40}{src.environment module}{section*.242}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.fileEnviron module}{40}{subsubsection*.243}} -\newlabel{commands/apidoc/src:src-fileenviron-module}{{4.1.1}{40}{src.fileEnviron module}{subsubsection*.243}{}} -\newlabel{commands/apidoc/src:module-src.fileEnviron}{{4.1.1}{40}{src.fileEnviron module}{subsubsection*.243}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BashFileEnviron}{{4.1.1}{40}{src.fileEnviron module}{section*.244}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BashFileEnviron.command_value}{{4.1.1}{40}{src.fileEnviron module}{section*.245}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BashFileEnviron.finish}{{4.1.1}{40}{src.fileEnviron module}{section*.246}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BashFileEnviron.set}{{4.1.1}{40}{src.fileEnviron module}{section*.247}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron}{{4.1.1}{41}{src.fileEnviron module}{section*.248}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron.add_comment}{{4.1.1}{41}{src.fileEnviron module}{section*.249}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron.command_value}{{4.1.1}{41}{src.fileEnviron module}{section*.250}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron.finish}{{4.1.1}{41}{src.fileEnviron module}{section*.251}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron.get}{{4.1.1}{41}{src.fileEnviron module}{section*.252}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.BatFileEnviron.set}{{4.1.1}{41}{src.fileEnviron module}{section*.253}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron}{{4.1.1}{41}{src.fileEnviron module}{section*.254}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_echo}{{4.1.1}{41}{src.fileEnviron module}{section*.255}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_warning}{{4.1.1}{41}{src.fileEnviron module}{section*.256}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.append_value}{{4.1.1}{41}{src.fileEnviron module}{section*.257}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.command_value}{{4.1.1}{41}{src.fileEnviron module}{section*.258}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.finish}{{4.1.1}{42}{src.fileEnviron module}{section*.259}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.get}{{4.1.1}{42}{src.fileEnviron module}{section*.260}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.prepend_value}{{4.1.1}{42}{src.fileEnviron module}{section*.261}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.set}{{4.1.1}{42}{src.fileEnviron module}{section*.262}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron}{{4.1.1}{42}{src.fileEnviron module}{section*.263}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.add_comment}{{4.1.1}{42}{src.fileEnviron module}{section*.264}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.add_echo}{{4.1.1}{42}{src.fileEnviron module}{section*.265}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.add_line}{{4.1.1}{42}{src.fileEnviron module}{section*.266}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.add_warning}{{4.1.1}{42}{src.fileEnviron module}{section*.267}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.append}{{4.1.1}{42}{src.fileEnviron module}{section*.268}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.append_value}{{4.1.1}{42}{src.fileEnviron module}{section*.269}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.command_value}{{4.1.1}{43}{src.fileEnviron module}{section*.270}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.finish}{{4.1.1}{43}{src.fileEnviron module}{section*.271}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.get}{{4.1.1}{43}{src.fileEnviron module}{section*.272}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.is_defined}{{4.1.1}{43}{src.fileEnviron module}{section*.273}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend}{{4.1.1}{43}{src.fileEnviron module}{section*.274}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend_value}{{4.1.1}{43}{src.fileEnviron module}{section*.275}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.FileEnviron.set}{{4.1.1}{43}{src.fileEnviron module}{section*.276}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron}{{4.1.1}{43}{src.fileEnviron module}{section*.277}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add}{{4.1.1}{43}{src.fileEnviron module}{section*.278}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_comment}{{4.1.1}{44}{src.fileEnviron module}{section*.279}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_echo}{{4.1.1}{44}{src.fileEnviron module}{section*.280}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_line}{{4.1.1}{44}{src.fileEnviron module}{section*.281}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_warning}{{4.1.1}{44}{src.fileEnviron module}{section*.282}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append}{{4.1.1}{44}{src.fileEnviron module}{section*.283}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append_value}{{4.1.1}{44}{src.fileEnviron module}{section*.284}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.change_to_launcher}{{4.1.1}{44}{src.fileEnviron module}{section*.285}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.command_value}{{4.1.1}{44}{src.fileEnviron module}{section*.286}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.finish}{{4.1.1}{44}{src.fileEnviron module}{section*.287}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.get}{{4.1.1}{44}{src.fileEnviron module}{section*.288}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.is_defined}{{4.1.1}{44}{src.fileEnviron module}{section*.289}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend}{{4.1.1}{44}{src.fileEnviron module}{section*.290}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend_value}{{4.1.1}{45}{src.fileEnviron module}{section*.291}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.set}{{4.1.1}{45}{src.fileEnviron module}{section*.292}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron}{{4.1.1}{45}{src.fileEnviron module}{section*.293}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_comment}{{4.1.1}{45}{src.fileEnviron module}{section*.294}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_echo}{{4.1.1}{45}{src.fileEnviron module}{section*.295}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_line}{{4.1.1}{45}{src.fileEnviron module}{section*.296}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_warning}{{4.1.1}{45}{src.fileEnviron module}{section*.297}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.append}{{4.1.1}{45}{src.fileEnviron module}{section*.298}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.command_value}{{4.1.1}{45}{src.fileEnviron module}{section*.299}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.get}{{4.1.1}{45}{src.fileEnviron module}{section*.300}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.is_defined}{{4.1.1}{45}{src.fileEnviron module}{section*.301}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.prepend}{{4.1.1}{46}{src.fileEnviron module}{section*.302}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.run_env_script}{{4.1.1}{46}{src.fileEnviron module}{section*.303}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.set}{{4.1.1}{46}{src.fileEnviron module}{section*.304}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.ScreenEnviron.write}{{4.1.1}{46}{src.fileEnviron module}{section*.305}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.get_file_environ}{{4.1.1}{46}{src.fileEnviron module}{section*.306}{}} -\newlabel{commands/apidoc/src:src.fileEnviron.special_path_separator}{{4.1.1}{46}{src.fileEnviron module}{section*.307}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.fork module}{46}{subsubsection*.308}} -\newlabel{commands/apidoc/src:module-src.fork}{{4.1.1}{46}{src.fork module}{subsubsection*.308}{}} -\newlabel{commands/apidoc/src:src-fork-module}{{4.1.1}{46}{src.fork module}{subsubsection*.308}{}} -\newlabel{commands/apidoc/src:src.fork.batch}{{4.1.1}{46}{src.fork module}{section*.309}{}} -\newlabel{commands/apidoc/src:src.fork.batch_salome}{{4.1.1}{46}{src.fork module}{section*.310}{}} -\newlabel{commands/apidoc/src:src.fork.launch_command}{{4.1.1}{46}{src.fork module}{section*.311}{}} -\newlabel{commands/apidoc/src:src.fork.show_progress}{{4.1.1}{46}{src.fork module}{section*.312}{}} -\newlabel{commands/apidoc/src:src.fork.write_back}{{4.1.1}{46}{src.fork module}{section*.313}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.logger module}{47}{subsubsection*.314}} -\newlabel{commands/apidoc/src:module-src.logger}{{4.1.1}{47}{src.logger module}{subsubsection*.314}{}} -\newlabel{commands/apidoc/src:src-logger-module}{{4.1.1}{47}{src.logger module}{subsubsection*.314}{}} -\newlabel{commands/apidoc/src:src.logger.Logger}{{4.1.1}{47}{src.logger module}{section*.315}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.add_link}{{4.1.1}{47}{src.logger module}{section*.316}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.end_write}{{4.1.1}{47}{src.logger module}{section*.317}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.error}{{4.1.1}{47}{src.logger module}{section*.318}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.flush}{{4.1.1}{47}{src.logger module}{section*.319}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.put_initial_xml_fields}{{4.1.1}{47}{src.logger module}{section*.320}{}} -\newlabel{commands/apidoc/src:src.logger.Logger.write}{{4.1.1}{47}{src.logger module}{section*.321}{}} -\newlabel{commands/apidoc/src:src.logger.date_to_datetime}{{4.1.1}{47}{src.logger module}{section*.322}{}} -\newlabel{commands/apidoc/src:src.logger.getCurrentLogger}{{4.1.1}{47}{src.logger module}{section*.323}{}} -\newlabel{commands/apidoc/src:src.logger.getDefaultLogger}{{4.1.1}{47}{src.logger module}{section*.324}{}} -\newlabel{commands/apidoc/src:src.logger.getUnittestLogger}{{4.1.1}{47}{src.logger module}{section*.325}{}} -\newlabel{commands/apidoc/src:src.logger.isCurrentLoggerUnittest}{{4.1.1}{48}{src.logger module}{section*.326}{}} -\newlabel{commands/apidoc/src:src.logger.list_log_file}{{4.1.1}{48}{src.logger module}{section*.327}{}} -\newlabel{commands/apidoc/src:src.logger.sendMessageToCurrentLogger}{{4.1.1}{48}{src.logger module}{section*.328}{}} -\newlabel{commands/apidoc/src:src.logger.setCurrentLogger}{{4.1.1}{48}{src.logger module}{section*.329}{}} -\newlabel{commands/apidoc/src:src.logger.show_command_log}{{4.1.1}{48}{src.logger module}{section*.330}{}} -\newlabel{commands/apidoc/src:src.logger.timedelta_total_seconds}{{4.1.1}{48}{src.logger module}{section*.331}{}} -\newlabel{commands/apidoc/src:src.logger.update_hat_xml}{{4.1.1}{48}{src.logger module}{section*.332}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.options module}{48}{subsubsection*.333}} -\newlabel{commands/apidoc/src:module-src.options}{{4.1.1}{48}{src.options module}{subsubsection*.333}{}} -\newlabel{commands/apidoc/src:src-options-module}{{4.1.1}{48}{src.options module}{subsubsection*.333}{}} -\newlabel{commands/apidoc/src:src.options.OptResult}{{4.1.1}{48}{src.options module}{section*.334}{}} -\newlabel{commands/apidoc/src:src.options.Options}{{4.1.1}{49}{src.options module}{section*.335}{}} -\newlabel{commands/apidoc/src:src.options.Options.add_option}{{4.1.1}{49}{src.options module}{section*.336}{}} -\newlabel{commands/apidoc/src:src.options.Options.debug_write}{{4.1.1}{49}{src.options module}{section*.337}{}} -\newlabel{commands/apidoc/src:src.options.Options.filterLevel}{{4.1.1}{49}{src.options module}{section*.338}{}} -\newlabel{commands/apidoc/src:src.options.Options.filterList2}{{4.1.1}{49}{src.options module}{section*.339}{}} -\newlabel{commands/apidoc/src:src.options.Options.getDetailOption}{{4.1.1}{49}{src.options module}{section*.340}{}} -\newlabel{commands/apidoc/src:src.options.Options.get_help}{{4.1.1}{49}{src.options module}{section*.341}{}} -\newlabel{commands/apidoc/src:src.options.Options.indent}{{4.1.1}{49}{src.options module}{section*.342}{}} -\newlabel{commands/apidoc/src:src.options.Options.parse_args}{{4.1.1}{49}{src.options module}{section*.343}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.printcolors module}{49}{subsubsection*.344}} -\newlabel{commands/apidoc/src:module-src.printcolors}{{4.1.1}{49}{src.printcolors module}{subsubsection*.344}{}} -\newlabel{commands/apidoc/src:src-printcolors-module}{{4.1.1}{49}{src.printcolors module}{subsubsection*.344}{}} -\newlabel{commands/apidoc/src:src.printcolors.cleancolor}{{4.1.1}{49}{src.printcolors module}{section*.345}{}} -\newlabel{commands/apidoc/src:src.printcolors.print_color_map}{{4.1.1}{49}{src.printcolors module}{section*.346}{}} -\newlabel{commands/apidoc/src:src.printcolors.print_color_range}{{4.1.1}{50}{src.printcolors module}{section*.347}{}} -\newlabel{commands/apidoc/src:src.printcolors.print_value}{{4.1.1}{50}{src.printcolors module}{section*.348}{}} -\newlabel{commands/apidoc/src:src.printcolors.printc}{{4.1.1}{50}{src.printcolors module}{section*.349}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcError}{{4.1.1}{50}{src.printcolors module}{section*.350}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcHeader}{{4.1.1}{50}{src.printcolors module}{section*.351}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcHighlight}{{4.1.1}{50}{src.printcolors module}{section*.352}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcInfo}{{4.1.1}{50}{src.printcolors module}{section*.353}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcLabel}{{4.1.1}{51}{src.printcolors module}{section*.354}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcSuccess}{{4.1.1}{51}{src.printcolors module}{section*.355}{}} -\newlabel{commands/apidoc/src:src.printcolors.printcWarning}{{4.1.1}{51}{src.printcolors module}{section*.356}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.product module}{51}{subsubsection*.357}} -\newlabel{commands/apidoc/src:module-src.product}{{4.1.1}{51}{src.product module}{subsubsection*.357}{}} -\newlabel{commands/apidoc/src:src-product-module}{{4.1.1}{51}{src.product module}{subsubsection*.357}{}} -\newlabel{commands/apidoc/src:src.product.check_config_exists}{{4.1.1}{51}{src.product module}{section*.358}{}} -\newlabel{commands/apidoc/src:src.product.check_installation}{{4.1.1}{51}{src.product module}{section*.359}{}} -\newlabel{commands/apidoc/src:src.product.check_source}{{4.1.1}{51}{src.product module}{section*.360}{}} -\newlabel{commands/apidoc/src:src.product.get_base_install_dir}{{4.1.1}{51}{src.product module}{section*.361}{}} -\newlabel{commands/apidoc/src:src.product.get_install_dir}{{4.1.1}{52}{src.product module}{section*.362}{}} -\newlabel{commands/apidoc/src:src.product.get_product_components}{{4.1.1}{52}{src.product module}{section*.363}{}} -\newlabel{commands/apidoc/src:src.product.get_product_config}{{4.1.1}{52}{src.product module}{section*.364}{}} -\newlabel{commands/apidoc/src:src.product.get_product_dependencies}{{4.1.1}{52}{src.product module}{section*.365}{}} -\newlabel{commands/apidoc/src:src.product.get_product_section}{{4.1.1}{52}{src.product module}{section*.366}{}} -\newlabel{commands/apidoc/src:src.product.get_products_infos}{{4.1.1}{53}{src.product module}{section*.367}{}} -\newlabel{commands/apidoc/src:src.product.product_compiles}{{4.1.1}{53}{src.product module}{section*.368}{}} -\newlabel{commands/apidoc/src:src.product.product_has_env_script}{{4.1.1}{53}{src.product module}{section*.369}{}} -\newlabel{commands/apidoc/src:src.product.product_has_logo}{{4.1.1}{53}{src.product module}{section*.370}{}} -\newlabel{commands/apidoc/src:src.product.product_has_patches}{{4.1.1}{53}{src.product module}{section*.371}{}} -\newlabel{commands/apidoc/src:src.product.product_has_salome_gui}{{4.1.1}{53}{src.product module}{section*.372}{}} -\newlabel{commands/apidoc/src:src.product.product_has_script}{{4.1.1}{53}{src.product module}{section*.373}{}} -\newlabel{commands/apidoc/src:src.product.product_is_autotools}{{4.1.1}{53}{src.product module}{section*.374}{}} -\newlabel{commands/apidoc/src:src.product.product_is_cmake}{{4.1.1}{54}{src.product module}{section*.375}{}} -\newlabel{commands/apidoc/src:src.product.product_is_cpp}{{4.1.1}{54}{src.product module}{section*.376}{}} -\newlabel{commands/apidoc/src:src.product.product_is_debug}{{4.1.1}{54}{src.product module}{section*.377}{}} -\newlabel{commands/apidoc/src:src.product.product_is_dev}{{4.1.1}{54}{src.product module}{section*.378}{}} -\newlabel{commands/apidoc/src:src.product.product_is_fixed}{{4.1.1}{54}{src.product module}{section*.379}{}} -\newlabel{commands/apidoc/src:src.product.product_is_generated}{{4.1.1}{54}{src.product module}{section*.380}{}} -\newlabel{commands/apidoc/src:src.product.product_is_mpi}{{4.1.1}{54}{src.product module}{section*.381}{}} -\newlabel{commands/apidoc/src:src.product.product_is_native}{{4.1.1}{54}{src.product module}{section*.382}{}} -\newlabel{commands/apidoc/src:src.product.product_is_salome}{{4.1.1}{55}{src.product module}{section*.383}{}} -\newlabel{commands/apidoc/src:src.product.product_is_smesh_plugin}{{4.1.1}{55}{src.product module}{section*.384}{}} -\newlabel{commands/apidoc/src:src.product.product_is_vcs}{{4.1.1}{55}{src.product module}{section*.385}{}} -\newlabel{commands/apidoc/src:src.product.product_is_verbose}{{4.1.1}{55}{src.product module}{section*.386}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.pyconf module}{55}{subsubsection*.387}} -\newlabel{commands/apidoc/src:src-pyconf-module}{{4.1.1}{55}{src.pyconf module}{subsubsection*.387}{}} -\newlabel{commands/apidoc/src:module-src.pyconf}{{4.1.1}{55}{src.pyconf module}{subsubsection*.387}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config}{{4.1.1}{56}{src.pyconf module}{section*.388}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config.Namespace}{{4.1.1}{56}{src.pyconf module}{section*.389}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config.addNamespace}{{4.1.1}{56}{src.pyconf module}{section*.390}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config.getByPath}{{4.1.1}{56}{src.pyconf module}{section*.391}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config.load}{{4.1.1}{56}{src.pyconf module}{section*.392}{}} -\newlabel{commands/apidoc/src:src.pyconf.Config.removeNamespace}{{4.1.1}{57}{src.pyconf module}{section*.393}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigError}{{4.1.1}{57}{src.pyconf module}{section*.394}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigFormatError}{{4.1.1}{57}{src.pyconf module}{section*.395}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigInputStream}{{4.1.1}{57}{src.pyconf module}{section*.396}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigInputStream.close}{{4.1.1}{57}{src.pyconf module}{section*.397}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigInputStream.read}{{4.1.1}{57}{src.pyconf module}{section*.398}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigInputStream.readline}{{4.1.1}{57}{src.pyconf module}{section*.399}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigList}{{4.1.1}{57}{src.pyconf module}{section*.400}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigList.getByPath}{{4.1.1}{57}{src.pyconf module}{section*.401}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger}{{4.1.1}{57}{src.pyconf module}{section*.402}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger.handleMismatch}{{4.1.1}{57}{src.pyconf module}{section*.403}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger.merge}{{4.1.1}{57}{src.pyconf module}{section*.404}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger.mergeMapping}{{4.1.1}{57}{src.pyconf module}{section*.405}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger.mergeSequence}{{4.1.1}{58}{src.pyconf module}{section*.406}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigMerger.overwriteKeys}{{4.1.1}{58}{src.pyconf module}{section*.407}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigOutputStream}{{4.1.1}{58}{src.pyconf module}{section*.408}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigOutputStream.close}{{4.1.1}{58}{src.pyconf module}{section*.409}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigOutputStream.flush}{{4.1.1}{58}{src.pyconf module}{section*.410}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigOutputStream.write}{{4.1.1}{58}{src.pyconf module}{section*.411}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader}{{4.1.1}{58}{src.pyconf module}{section*.412}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.getChar}{{4.1.1}{58}{src.pyconf module}{section*.413}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.getToken}{{4.1.1}{58}{src.pyconf module}{section*.414}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.load}{{4.1.1}{58}{src.pyconf module}{section*.415}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.location}{{4.1.1}{58}{src.pyconf module}{section*.416}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.match}{{4.1.1}{58}{src.pyconf module}{section*.417}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseFactor}{{4.1.1}{58}{src.pyconf module}{section*.418}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseKeyValuePair}{{4.1.1}{59}{src.pyconf module}{section*.419}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseMapping}{{4.1.1}{59}{src.pyconf module}{section*.420}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseMappingBody}{{4.1.1}{59}{src.pyconf module}{section*.421}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseReference}{{4.1.1}{59}{src.pyconf module}{section*.422}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseScalar}{{4.1.1}{59}{src.pyconf module}{section*.423}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseSequence}{{4.1.1}{59}{src.pyconf module}{section*.424}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseSuffix}{{4.1.1}{59}{src.pyconf module}{section*.425}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseTerm}{{4.1.1}{59}{src.pyconf module}{section*.426}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.parseValue}{{4.1.1}{59}{src.pyconf module}{section*.427}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigReader.setStream}{{4.1.1}{59}{src.pyconf module}{section*.428}{}} -\newlabel{commands/apidoc/src:src.pyconf.ConfigResolutionError}{{4.1.1}{59}{src.pyconf module}{section*.429}{}} -\newlabel{commands/apidoc/src:src.pyconf.Container}{{4.1.1}{59}{src.pyconf module}{section*.430}{}} -\newlabel{commands/apidoc/src:src.pyconf.Container.evaluate}{{4.1.1}{60}{src.pyconf module}{section*.431}{}} -\newlabel{commands/apidoc/src:src.pyconf.Container.setPath}{{4.1.1}{60}{src.pyconf module}{section*.432}{}} -\newlabel{commands/apidoc/src:src.pyconf.Container.writeToStream}{{4.1.1}{60}{src.pyconf module}{section*.433}{}} -\newlabel{commands/apidoc/src:src.pyconf.Container.writeValue}{{4.1.1}{60}{src.pyconf module}{section*.434}{}} -\newlabel{commands/apidoc/src:src.pyconf.Expression}{{4.1.1}{60}{src.pyconf module}{section*.435}{}} -\newlabel{commands/apidoc/src:src.pyconf.Expression.evaluate}{{4.1.1}{60}{src.pyconf module}{section*.436}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping}{{4.1.1}{60}{src.pyconf module}{section*.437}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.addMapping}{{4.1.1}{60}{src.pyconf module}{section*.438}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.get}{{4.1.1}{60}{src.pyconf module}{section*.439}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.iteritems}{{4.1.1}{60}{src.pyconf module}{section*.440}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.iterkeys}{{4.1.1}{60}{src.pyconf module}{section*.441}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.keys}{{4.1.1}{60}{src.pyconf module}{section*.442}{}} -\newlabel{commands/apidoc/src:src.pyconf.Mapping.writeToStream}{{4.1.1}{61}{src.pyconf module}{section*.443}{}} -\newlabel{commands/apidoc/src:src.pyconf.Reference}{{4.1.1}{61}{src.pyconf module}{section*.444}{}} -\newlabel{commands/apidoc/src:src.pyconf.Reference.addElement}{{4.1.1}{61}{src.pyconf module}{section*.445}{}} -\newlabel{commands/apidoc/src:src.pyconf.Reference.findConfig}{{4.1.1}{61}{src.pyconf module}{section*.446}{}} -\newlabel{commands/apidoc/src:src.pyconf.Reference.resolve}{{4.1.1}{61}{src.pyconf module}{section*.447}{}} -\newlabel{commands/apidoc/src:src.pyconf.Sequence}{{4.1.1}{61}{src.pyconf module}{section*.448}{}} -\newlabel{commands/apidoc/src:src.pyconf.Sequence.SeqIter}{{4.1.1}{61}{src.pyconf module}{section*.449}{}} -\newlabel{commands/apidoc/src:src.pyconf.Sequence.SeqIter.next}{{4.1.1}{61}{src.pyconf module}{section*.450}{}} -\newlabel{commands/apidoc/src:src.pyconf.Sequence.append}{{4.1.1}{61}{src.pyconf module}{section*.451}{}} -\newlabel{commands/apidoc/src:src.pyconf.Sequence.writeToStream}{{4.1.1}{61}{src.pyconf module}{section*.452}{}} -\newlabel{commands/apidoc/src:src.pyconf.deepCopyMapping}{{4.1.1}{61}{src.pyconf module}{section*.453}{}} -\newlabel{commands/apidoc/src:src.pyconf.defaultMergeResolve}{{4.1.1}{61}{src.pyconf module}{section*.454}{}} -\newlabel{commands/apidoc/src:src.pyconf.defaultStreamOpener}{{4.1.1}{62}{src.pyconf module}{section*.455}{}} -\newlabel{commands/apidoc/src:src.pyconf.isWord}{{4.1.1}{62}{src.pyconf module}{section*.456}{}} -\newlabel{commands/apidoc/src:src.pyconf.makePath}{{4.1.1}{62}{src.pyconf module}{section*.457}{}} -\newlabel{commands/apidoc/src:src.pyconf.overwriteMergeResolve}{{4.1.1}{62}{src.pyconf module}{section*.458}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.system module}{62}{subsubsection*.459}} -\newlabel{commands/apidoc/src:src-system-module}{{4.1.1}{62}{src.system module}{subsubsection*.459}{}} -\newlabel{commands/apidoc/src:module-src.system}{{4.1.1}{62}{src.system module}{subsubsection*.459}{}} -\newlabel{commands/apidoc/src:src.system.archive_extract}{{4.1.1}{62}{src.system module}{section*.460}{}} -\newlabel{commands/apidoc/src:src.system.cvs_extract}{{4.1.1}{62}{src.system module}{section*.461}{}} -\newlabel{commands/apidoc/src:src.system.git_extract}{{4.1.1}{63}{src.system module}{section*.462}{}} -\newlabel{commands/apidoc/src:src.system.show_in_editor}{{4.1.1}{63}{src.system module}{section*.463}{}} -\newlabel{commands/apidoc/src:src.system.svn_extract}{{4.1.1}{63}{src.system module}{section*.464}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.template module}{64}{subsubsection*.465}} -\newlabel{commands/apidoc/src:module-src.template}{{4.1.1}{64}{src.template module}{subsubsection*.465}{}} -\newlabel{commands/apidoc/src:src-template-module}{{4.1.1}{64}{src.template module}{subsubsection*.465}{}} -\newlabel{commands/apidoc/src:src.template.MyTemplate}{{4.1.1}{64}{src.template module}{section*.466}{}} -\newlabel{commands/apidoc/src:src.template.MyTemplate.delimiter}{{4.1.1}{64}{src.template module}{section*.467}{}} -\newlabel{commands/apidoc/src:src.template.MyTemplate.pattern}{{4.1.1}{64}{src.template module}{section*.468}{}} -\newlabel{commands/apidoc/src:src.template.substitute}{{4.1.1}{64}{src.template module}{section*.469}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.test\_module module}{64}{subsubsection*.470}} -\newlabel{commands/apidoc/src:module-src.test_module}{{4.1.1}{64}{src.test\_module module}{subsubsection*.470}{}} -\newlabel{commands/apidoc/src:src-test-module-module}{{4.1.1}{64}{src.test\_module module}{subsubsection*.470}{}} -\newlabel{commands/apidoc/src:src.test_module.Test}{{4.1.1}{64}{src.test\_module module}{section*.471}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.generate_launching_commands}{{4.1.1}{64}{src.test\_module module}{section*.472}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.generate_script}{{4.1.1}{64}{src.test\_module module}{section*.473}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.get_test_timeout}{{4.1.1}{64}{src.test\_module module}{section*.474}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.get_tmp_dir}{{4.1.1}{64}{src.test\_module module}{section*.475}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.prepare_testbase}{{4.1.1}{64}{src.test\_module module}{section*.476}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_dir}{{4.1.1}{64}{src.test\_module module}{section*.477}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_git}{{4.1.1}{64}{src.test\_module module}{section*.478}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_svn}{{4.1.1}{64}{src.test\_module module}{section*.479}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.read_results}{{4.1.1}{64}{src.test\_module module}{section*.480}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_all_tests}{{4.1.1}{64}{src.test\_module module}{section*.481}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_grid_tests}{{4.1.1}{64}{src.test\_module module}{section*.482}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_script}{{4.1.1}{64}{src.test\_module module}{section*.483}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_session_tests}{{4.1.1}{64}{src.test\_module module}{section*.484}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_testbase_tests}{{4.1.1}{64}{src.test\_module module}{section*.485}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.run_tests}{{4.1.1}{64}{src.test\_module module}{section*.486}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.search_known_errors}{{4.1.1}{64}{src.test\_module module}{section*.487}{}} -\newlabel{commands/apidoc/src:src.test_module.Test.write_test_margin}{{4.1.1}{64}{src.test\_module module}{section*.488}{}} -\newlabel{commands/apidoc/src:src.test_module.getTmpDirDEFAULT}{{4.1.1}{64}{src.test\_module module}{section*.489}{}} -\@writefile{toc}{\contentsline {subsubsection}{src.xmlManager module}{64}{subsubsection*.490}} -\newlabel{commands/apidoc/src:src-xmlmanager-module}{{4.1.1}{64}{src.xmlManager module}{subsubsection*.490}{}} -\newlabel{commands/apidoc/src:module-src.xmlManager}{{4.1.1}{64}{src.xmlManager module}{subsubsection*.490}{}} -\newlabel{commands/apidoc/src:src.xmlManager.ReadXmlFile}{{4.1.1}{64}{src.xmlManager module}{section*.491}{}} -\newlabel{commands/apidoc/src:src.xmlManager.ReadXmlFile.getRootAttrib}{{4.1.1}{64}{src.xmlManager module}{section*.492}{}} -\newlabel{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_attrib}{{4.1.1}{65}{src.xmlManager module}{section*.493}{}} -\newlabel{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_node_text}{{4.1.1}{65}{src.xmlManager module}{section*.494}{}} -\newlabel{commands/apidoc/src:src.xmlManager.XmlLogFile}{{4.1.1}{65}{src.xmlManager module}{section*.495}{}} -\newlabel{commands/apidoc/src:src.xmlManager.XmlLogFile.add_simple_node}{{4.1.1}{65}{src.xmlManager module}{section*.496}{}} -\newlabel{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_attrib}{{4.1.1}{65}{src.xmlManager module}{section*.497}{}} -\newlabel{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_text}{{4.1.1}{65}{src.xmlManager module}{section*.498}{}} -\newlabel{commands/apidoc/src:src.xmlManager.XmlLogFile.write_tree}{{4.1.1}{65}{src.xmlManager module}{section*.499}{}} -\newlabel{commands/apidoc/src:src.xmlManager.add_simple_node}{{4.1.1}{65}{src.xmlManager module}{section*.500}{}} -\newlabel{commands/apidoc/src:src.xmlManager.append_node_attrib}{{4.1.1}{66}{src.xmlManager module}{section*.501}{}} -\newlabel{commands/apidoc/src:src.xmlManager.find_node_by_attrib}{{4.1.1}{66}{src.xmlManager module}{section*.502}{}} -\newlabel{commands/apidoc/src:src.xmlManager.write_report}{{4.1.1}{66}{src.xmlManager module}{section*.503}{}} -\@writefile{toc}{\contentsline {subsubsection}{Module contents}{66}{subsubsection*.504}} -\newlabel{commands/apidoc/src:module-src}{{4.1.1}{66}{Module contents}{subsubsection*.504}{}} -\newlabel{commands/apidoc/src:module-contents}{{4.1.1}{66}{Module contents}{subsubsection*.504}{}} -\newlabel{commands/apidoc/src:src.Path}{{4.1.1}{66}{Module contents}{section*.505}{}} -\newlabel{commands/apidoc/src:src.Path.base}{{4.1.1}{66}{Module contents}{section*.506}{}} -\newlabel{commands/apidoc/src:src.Path.chmod}{{4.1.1}{66}{Module contents}{section*.507}{}} -\newlabel{commands/apidoc/src:src.Path.copy}{{4.1.1}{66}{Module contents}{section*.508}{}} -\newlabel{commands/apidoc/src:src.Path.copydir}{{4.1.1}{66}{Module contents}{section*.509}{}} -\newlabel{commands/apidoc/src:src.Path.copyfile}{{4.1.1}{66}{Module contents}{section*.510}{}} -\newlabel{commands/apidoc/src:src.Path.copylink}{{4.1.1}{66}{Module contents}{section*.511}{}} -\newlabel{commands/apidoc/src:src.Path.dir}{{4.1.1}{66}{Module contents}{section*.512}{}} -\newlabel{commands/apidoc/src:src.Path.exists}{{4.1.1}{66}{Module contents}{section*.513}{}} -\newlabel{commands/apidoc/src:src.Path.isdir}{{4.1.1}{66}{Module contents}{section*.514}{}} -\newlabel{commands/apidoc/src:src.Path.isfile}{{4.1.1}{66}{Module contents}{section*.515}{}} -\newlabel{commands/apidoc/src:src.Path.islink}{{4.1.1}{66}{Module contents}{section*.516}{}} -\newlabel{commands/apidoc/src:src.Path.list}{{4.1.1}{66}{Module contents}{section*.517}{}} -\newlabel{commands/apidoc/src:src.Path.make}{{4.1.1}{67}{Module contents}{section*.518}{}} -\newlabel{commands/apidoc/src:src.Path.readlink}{{4.1.1}{67}{Module contents}{section*.519}{}} -\newlabel{commands/apidoc/src:src.Path.rm}{{4.1.1}{67}{Module contents}{section*.520}{}} -\newlabel{commands/apidoc/src:src.Path.smartcopy}{{4.1.1}{67}{Module contents}{section*.521}{}} -\newlabel{commands/apidoc/src:src.Path.symlink}{{4.1.1}{67}{Module contents}{section*.522}{}} -\newlabel{commands/apidoc/src:src.SatException}{{4.1.1}{67}{Module contents}{section*.523}{}} -\newlabel{commands/apidoc/src:src.activate_mesa_property}{{4.1.1}{67}{Module contents}{section*.524}{}} -\newlabel{commands/apidoc/src:src.check_config_has_application}{{4.1.1}{67}{Module contents}{section*.525}{}} -\newlabel{commands/apidoc/src:src.check_config_has_profile}{{4.1.1}{67}{Module contents}{section*.526}{}} -\newlabel{commands/apidoc/src:src.config_has_application}{{4.1.1}{67}{Module contents}{section*.527}{}} -\newlabel{commands/apidoc/src:src.deepcopy_list}{{4.1.1}{67}{Module contents}{section*.528}{}} -\newlabel{commands/apidoc/src:src.ensure_path_exists}{{4.1.1}{67}{Module contents}{section*.529}{}} -\newlabel{commands/apidoc/src:src.find_file_in_lpath}{{4.1.1}{67}{Module contents}{section*.530}{}} -\newlabel{commands/apidoc/src:src.get_base_path}{{4.1.1}{67}{Module contents}{section*.531}{}} -\newlabel{commands/apidoc/src:src.get_cfg_param}{{4.1.1}{67}{Module contents}{section*.532}{}} -\newlabel{commands/apidoc/src:src.get_launcher_name}{{4.1.1}{68}{Module contents}{section*.533}{}} -\newlabel{commands/apidoc/src:src.get_log_path}{{4.1.1}{68}{Module contents}{section*.534}{}} -\newlabel{commands/apidoc/src:src.get_property_in_product_cfg}{{4.1.1}{68}{Module contents}{section*.535}{}} -\newlabel{commands/apidoc/src:src.get_salome_version}{{4.1.1}{68}{Module contents}{section*.536}{}} -\newlabel{commands/apidoc/src:src.get_tmp_filename}{{4.1.1}{68}{Module contents}{section*.537}{}} -\newlabel{commands/apidoc/src:src.handleRemoveReadonly}{{4.1.1}{68}{Module contents}{section*.538}{}} -\newlabel{commands/apidoc/src:src.merge_dicts}{{4.1.1}{68}{Module contents}{section*.539}{}} -\newlabel{commands/apidoc/src:src.only_numbers}{{4.1.1}{68}{Module contents}{section*.540}{}} -\newlabel{commands/apidoc/src:src.parse_date}{{4.1.1}{68}{Module contents}{section*.541}{}} -\newlabel{commands/apidoc/src:src.print_info}{{4.1.1}{68}{Module contents}{section*.542}{}} -\newlabel{commands/apidoc/src:src.read_config_from_a_file}{{4.1.1}{68}{Module contents}{section*.543}{}} -\newlabel{commands/apidoc/src:src.remove_item_from_list}{{4.1.1}{68}{Module contents}{section*.544}{}} -\newlabel{commands/apidoc/src:src.replace_in_file}{{4.1.1}{69}{Module contents}{section*.545}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {5}Release Notes}{71}{chapter.5}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\newlabel{index:release-notes}{{5}{71}{Release Notes}{chapter.5}{}} -\@writefile{toc}{\contentsline {section}{\numberline {5.1}Release notes}{71}{section.5.1}} -\newlabel{release_notes/release_notes_5.0.0:release-notes}{{5.1}{71}{Release notes}{section.5.1}{}} -\newlabel{release_notes/release_notes_5.0.0::doc}{{5.1}{71}{Release notes}{section.5.1}{}} -\@writefile{toc}{\contentsline {chapter}{Python Module Index}{73}{section*.546}} -\@writefile{toc}{\contentsline {chapter}{Index}{75}{section*.547}} diff --git a/doc/build/latex/salomeTools.fdb_latexmk b/doc/build/latex/salomeTools.fdb_latexmk deleted file mode 100644 index 9b57d8f..0000000 --- a/doc/build/latex/salomeTools.fdb_latexmk +++ /dev/null @@ -1,189 +0,0 @@ -# Fdb version 3 -["makeindex salomeTools.idx"] 1530021069 "salomeTools.idx" "salomeTools.ind" "salomeTools" 1530021070 - "salomeTools.idx" 1530021070 37675 5221875c9eca3cdb945ec6de9d886fdc "" - (generated) - "salomeTools.ind" - "salomeTools.ilg" -["pdflatex"] 1530021069 "salomeTools.tex" "salomeTools.pdf" "salomeTools" 1530021070 - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/enc/dvips/base/8r.enc" 1480098666 4850 80dc9bab7f31fb78a000ccfed0e27cab "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/map/fontname/texfonts.map" 1511824771 3332 103109f5612ad95229751940c61aada0 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8c.tfm" 1480098688 1268 8067e4f35cbae42c0f58b48da75bf496 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8r.tfm" 1480098688 1292 3059476c50a24578715759f22652f3d0 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8t.tfm" 1480098688 1384 87406e4336af44af883a035f17f319d9 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8c.tfm" 1480098688 1268 8bd405dc5751cfed76cb6fb2db78cb50 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8r.tfm" 1480098688 1292 bd42be2f344128bff6d35d98474adfe3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8t.tfm" 1480098688 1384 4632f5e54900a7dadbb83f555bc61e56 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8c.tfm" 1480098688 1344 dab2eee300fafcab19064bcc62d66daa "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8r.tfm" 1480098688 1544 4fb84cf2931ec523c2c6a08d939088ba "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8t.tfm" 1480098688 1596 04a657f277f0401ba37d66e716627ac4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm" 1480098688 4484 b828043cbd581d289d955903c1339981 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm" 1480098688 6628 34c39492c0adc454c1c199922bba8363 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8r.tfm" 1480098688 4736 423eba67d4e9420ec9df4a8def143b08 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8t.tfm" 1480098688 6880 fe6c7967f27585f6fa9876f3af14edd2 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8r.tfm" 1480098688 4712 9ef4d7d106579d4b136e1529e1a4533c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8t.tfm" 1480098688 7040 b2bd27e2bfe6f6948cbc3239cae7444f "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmb8r.tfm" 1480098689 4524 6bce29db5bc272ba5f332261583fee9c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmb8t.tfm" 1480098689 6880 f19b8995b61c334d78fc734065f6b4d4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8c.tfm" 1480098689 1352 fa28a7e6d323c65ce7d13d5342ff6be2 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm" 1480098689 4408 25b74d011a4c66b7f212c0cc3c90061b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm" 1480098689 6672 e3ab9e37e925f3045c9005e6d1473d56 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmri8r.tfm" 1480098689 4640 532ca3305aad10cc01d769f3f91f1029 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmri8t.tfm" 1480098689 6944 94c55ad86e6ea2826f78ba2240d50df9 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/jknappen/ec/ecrm1000.tfm" 1480098696 3584 adb004a0c8e7c46ee66cad73671f37b4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm" 1480098698 1004 54797486969f23fa377b128694d548df "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex8.tfm" 1480098698 988 bdf658c3bfc2d96d3c8b02cfc1c94c20 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam10.tfm" 1480098698 916 f87d7c45f9c908e672703b83b72241a3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam5.tfm" 1480098698 924 9904cf1d39e9767e7a3622f2a125a565 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam7.tfm" 1480098698 928 2dc8d444221b7a635bb58038579b861a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm10.tfm" 1480098698 908 2921f8a10601f252058503cc6570e581 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm5.tfm" 1480098698 940 75ac932a52f80982a9f8ea75d03a34cf "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm7.tfm" 1480098698 940 228d6584342e91276bf566bcf9716b83 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmex10.tfm" 1480098701 992 662f679a0b3d2d53c1b94050fdaa3f50 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm" 1480098701 1524 4414a8315f39513458b80dfc63bff03a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi6.tfm" 1480098701 1512 f21f83efb36853c0b70002322c1ab3ad "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi8.tfm" 1480098701 1520 eccf95517727cb11801f4f1aee3a21b4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr12.tfm" 1480098701 1288 655e228510b4c2a1abe905c368440826 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr17.tfm" 1480098701 1292 296a67155bdbfc32aa9c636f21e91433 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr6.tfm" 1480098701 1300 b62933e007d01cfd073f79b963c01526 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr8.tfm" 1480098701 1292 21c1c5bfeaebccffdb478fd231a0997d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm" 1480098701 1124 6c73e740cf17375f03eec0ee63599741 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy6.tfm" 1480098701 1116 933a60c408fc0a863a92debe84b2d294 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy8.tfm" 1480098701 1120 8b7d695260f3cff42e636090a8002094 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi5.pfb" 1480098733 37912 77d683123f92148345f3fc36a38d9ab1 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy5.pfb" 1480098733 32915 7bf7720c61a5b3a7ff25b0964421c9b6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrb8a.pfb" 1480098746 50493 4ed1f7e9eba8f1f3e1ec25195460190d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrr8a.pfb" 1480098746 45758 19968a0990191524e34e1994d4a31cb6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrro8a.pfb" 1480098746 44404 ea3d9c0311883914133975dd62a9185c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb" 1480098746 35941 f27169cc74234d5bd5e4cca5abafaabb "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvbo8a.pfb" 1480098746 39013 b244066151b1e3e718f9b8e88a5ff23b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb" 1480098746 44648 23115b2a545ebfe2c526c3ca99db8b95 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmb8a.pfb" 1480098746 44729 811d6c62865936705a31c797a1d5dada "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmr8a.pfb" 1480098746 46026 6dab18b61c907687b520c72847215a68 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmri8a.pfb" 1480098746 45458 a3faba884469519614ca56ba5f6b1de1 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrb8c.vf" 1480098757 3560 cb6af2c6d0b5f763f3aae03f60590c57 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrb8t.vf" 1480098757 2184 5d20c8b00cd914e50251116c274e2d0b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrr8c.vf" 1480098757 3552 6a7911d0b338a7c32cbfc3a9e985ccca "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrr8t.vf" 1480098757 2184 8475af1b9cfa983db5f46f5ed4b8f9f7 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrro8c.vf" 1480098757 3560 a297982f0907d62e9886d9e2666bf30b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrro8t.vf" 1480098757 2280 d7cd083c724c9449e1d12731253966f7 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf" 1480098757 2340 0efed6a948c3c37d870e4e7ddb85c7c3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvbo8t.vf" 1480098757 2344 88834f8322177295b0266ecc4b0754c3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvr8t.vf" 1480098757 2344 44ff28c9ef2fc97180cd884f900fee71 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmb8t.vf" 1480098758 2340 df9c920cc5688ebbf16a93f45ce7bdd3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8c.vf" 1480098758 3556 8a9a6dcbcd146ef985683f677f4758a6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8t.vf" 1480098758 2348 91706c542228501c410c266421fbe30c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmri8t.vf" 1480098758 2328 6cd7df782b09b29cfc4d93e55b6b9a59 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii" 1480098806 71627 94eb9990bed73c364d7f53f960cc8c5b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf" 1496785618 7008 9ff5fdcc865b01beca2b0fe4a46231d4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.def" 1518644053 67244 2dce3d67c354c8d92f638d0f8682fb73 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.sty" 1518644053 15861 065fe343082d0cd2428cf984d6b2ef66 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/switch.def" 1518644053 12523 d80bc74bf5e02fe4304443a6de8d01be "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/txtbabel.def" 1518644053 7434 1b3955075683beb1c883a0fcf92ed2d5 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty" 1480098815 1458 43ab4710dc82f3edeabecd0d099626b2 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/etexcmds.sty" 1480098815 7612 729a8cc22a1ee0029997c7f74717ae05 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty" 1480098815 8237 3b62ef1f7e2c23a328c814b3893bc11f "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty" 1517006633 185082 6c11d4e30ed78e2a12957b7e77030856 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty" 1480098815 70864 bcd5b216757bd619ae692a151d90085d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty" 1480098815 7324 2310d1247db0114eb4726807c8837a0e "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty" 1490564930 1251 d170e11a3246c3392bc7f59595af42cb "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvtex.sty" 1480098815 6797 90b7f83b0ad46826bc16058b1e3d48df "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty" 1480098815 8253 473e0e41f9adadb1977e8631b8f72ea6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty" 1480098815 14040 ac8866aac45982ac84021584b0abb252 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty" 1480098815 18425 5b3c0c59d76fac78978b5558e83c1f36 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty" 1480098820 5949 3f3fd50a8cc94c3d4cbf4fc66cd3df1c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amssymb.sty" 1480098820 13829 94730e64147574077f8ecfea9bb69af4 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd" 1480098820 961 6518c6525a34feb5e8250ffa91731cff "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd" 1480098820 961 d02606146ba5601b5645f987c92e6193 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty" 1480098820 2210 5c54ab129b848a5071554186d0168766 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty" 1480098820 4160 c115536cf8d4ff25aa8c1c9bc4ecb79a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty" 1504905757 84352 897a476d96a0681047a5b0f91178a3d2 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty" 1480098820 4115 318a66090112f3aa3f415aeb6fe8540f "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty" 1480098820 2431 fe3078ec12fc30287f568596f8e0b948 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/alltt.sty" 1480098821 3140 977eaf314c97ac67b8675753fb15f67f "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty" 1492297155 4571 13977df0eda144b93597fc709035ad1f "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/inputenc.sty" 1480098821 4732 d63eda807ac82cca2ca8488efd31a966 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/makeidx.sty" 1480098821 1940 c559b92ca91f1b2a0e60d836d4973f41 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/omsenc.dfu" 1487721667 2004 ac51aeac484f08c01026120d62677eca "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ot1enc.dfu" 1487721667 3181 1cb3e9ad01f4a01127b2ffd821bfeec7 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/report.cls" 1480098821 22880 e7be6f7dd8c05d5108bf3a7d8cabe59a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/size10.clo" 1480098821 8292 e897c12e1e886ce77fe26afc5d470886 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.def" 1492297155 10006 a90ba4035cf778f32f424e297d92e235 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.dfu" 1487721667 11255 9d97362866549d3d3c994b5f28d1b9b5 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty" 1492297155 16154 f2c73e20ca771d534a8516c62c6b0eae "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd" 1480098821 2217 d274654bda1292013bdf48d5f720a495 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def" 1480098821 7767 aa88823823f5e767d79ea1166ab1ae74 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.dfu" 1487721667 4919 76510afd60e8282294f944c2f9f5103b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/utf8.def" 1487721667 7784 325a2a09984cb5c4ff230f9867145ad3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/capt-of/capt-of.sty" 1480098823 1311 063f8536a047a2d9cb1803321f793f37 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/carlisle/remreset.sty" 1480098823 1096 6a75275ca00e32428c6f059d2f618ea7 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty" 1480098825 2883 427a7f7cb58418a0394dbd85c80668f6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/ot1.cmap" 1480098825 1207 4e0d96772f0d338847cbfb4eca683c81 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/t1.cmap" 1480098825 1938 beaa4a8467aa0074076e0e19f2992e29 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty" 1498861448 10663 d7fcc0dc4f35e8998b8cfeef8407d37d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty" 1480098827 45360 a0833d32f1b541964596b02870342d5a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/float/float.sty" 1480098828 6749 16d2656a1984957e674b149555f1ea1d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/framed/framed.sty" 1480098829 22449 7ec15c16d0d66790f28e90343c5434a3 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty" 1480098829 40502 e003406220954b0716679d7928aedd8a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg" 1480098830 1213 620bba36b25224fa9b7e1ccb4ecb76fd "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg" 1480098830 1224 978390e9c2234eab29404bc21b268d1e "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def" 1515537368 17334 520b9b85ad8a2a48eda3f643e27a5179 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty" 1498427532 15275 7d676729b1bedd3e7f3c6717affb366c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty" 1498427532 9066 649f2ccf62888e3d8c3e57256b70b8e1 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty" 1480098830 2594 d18d5e19aa8239cf867fa670c556d2e9 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty" 1480098830 3980 0a268fbfda01e381fa95821ab13b6aee "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def" 1518041854 51699 9069fc983fff0db91d59a15af144ad62 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty" 1518041854 234088 2c849389d62d41c593d9f5176c4116ab "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty" 1480098831 12949 81e4e808884a8f0e276b69410e234656 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def" 1518041854 14098 4e70bf396c7c265bd8b0e5cab3fd3d4d "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.def" 1518041854 122411 10b605a58a28bbe5d61db37da4a85beb "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg" 1480098833 678 4792914a8f45be57bb98413425e4c7af "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg" 1480098833 235 6031e5765137be07eed51a510b2b8fb7 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oml.cmap" 1480098835 1866 c1c12138091b4a8edd4a24a940e6f792 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oms.cmap" 1480098835 2370 3b1f71b14b974f07cef532db09ae9ee0 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/omx.cmap" 1480098835 3001 252c8ca42b06a22cb1a11c0e47790c6e "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/needspace/needspace.sty" 1480098835 852 0e34dbb72efc69fa07602405ad95585e "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty" 1480098836 3834 4363110eb0ef1eb2b71c8fcbcdb6c357 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty" 1480098836 12095 5337833c991d80788a43d3ce26bd1c46 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty" 1480098836 7075 2fe3d848bba95f139de11ded085e74aa "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/hypcap.sty" 1480098836 3720 63669daeb0b67d5fbec899824e2f1491 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty" 1480098836 22417 1d9df1eb66848aa31b18a593099cf45c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty" 1480098836 9581 023642318cef9f4677efe364de1e2a27 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/parskip/parskip.sty" 1480098836 2763 02a40cc5a32805c41d919cfbdba7e99a "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1pcr.fd" 1480098837 798 d5895e9edc628f2be019beb2c0ec66df "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1phv.fd" 1480098837 1488 9a55ac1cde6b4798a7f56844bb75a553 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd" 1480098837 774 61d7da1e9f9e74989b196d147e623736 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/times.sty" 1480098837 857 6c716f26c5eadfb81029fcd6ce2d45e6 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1pcr.fd" 1480098837 643 92c451bb86386a4e36a174603ddb5a13 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1ptm.fd" 1480098837 619 96f56dc5d1ef1fe1121f1cfeec70ee0c "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/titlesec/titlesec.sty" 1480098841 37387 afa86533e532701faf233f3f592c61e0 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/array.sty" 1485129666 12396 d41f82b039f900e95f351e54ae740f31 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/longtable.sty" 1480098841 12083 80916157594a8e4354985aaefae4f367 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/upquote/upquote.sty" 1480098842 1048 517e01cde97c1c0baf72e69d43aa5a2e "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/url/url.sty" 1480098842 12796 8edb7d69a20b857904dd0ea757c14ec9 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/varwidth/varwidth.sty" 1480098842 10894 d359a13923460b2a73d4312d613554c8 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/wrapfig/wrapfig.sty" 1480098843 26220 3701aebf80ccdef248c0c20dd062fea9 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty" 1480098843 55589 34128738f682d033422ca125f82e5d62 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/web2c/texmf.cnf" 1518824182 33095 db9a077a3f94a5d0b580d566a7906714 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map" 1523607852 2700841 1bc9624fdc91e264bac08ef05942a34b "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf-var/web2c/pdftex/pdflatex.fmt" 1523607929 4139413 5fd665779d626eb6c28594ed7061af12 "" - "/data/tmplgls/wambeke/share/texlive/2017/texmf.cnf" 1523607755 455 5b996dcaa0eb4ef14a83b026bc0a008c "" - "fncychap.sty" 1529937511 18775 568efa3fda85869a241e0645298bc277 "" - "footnotehyper-sphinx.sty" 1529937511 8886 0562fcad2b7e25f93331edc6fc422c87 "" - "salomeTools.aux" 1530021070 86276 ad8da597b4c98b8cfcdec0fefe0dbb85 "" - "salomeTools.ind" 1530021069 36880 298d952e198cb50f81090b175ab81949 "makeindex salomeTools.idx" - "salomeTools.out" 1530021070 3075 101e36bbbdb8d120fe7a2c74ab3c41f0 "" - "salomeTools.tex" 1530021064 344056 ca20c8b326006818094828ef2c3c2107 "" - "salomeTools.toc" 1530021070 8577 93385a67d7c8426ac7be843767a0ae03 "" - "sat_about.png" 1529937511 282130 625d3edc0de2910af30fe6407ab411b3 "" - "sphinx.sty" 1529937511 67712 9b578972569f0169bf44cfae88da82f2 "" - "sphinxhighlight.sty" 1530021063 8137 b8d4ef963833564f6e4eadc09cd757c4 "" - "sphinxmanual.cls" 1529937511 3589 0b0aac49c6f36925cf5f9d524a75a978 "" - "sphinxmulticell.sty" 1529937511 14618 0defbdc8536ad2e67f1eac6a1431bc55 "" - "tabulary.sty" 1529937511 13836 e4c420176570c694fb8cb70f63c46263 "" - (generated) - "salomeTools.out" - "salomeTools.aux" - "salomeTools.idx" - "salomeTools.log" - "salomeTools.toc" - "salomeTools.pdf" diff --git a/doc/build/latex/salomeTools.fls b/doc/build/latex/salomeTools.fls deleted file mode 100644 index bb6c99d..0000000 --- a/doc/build/latex/salomeTools.fls +++ /dev/null @@ -1,346 +0,0 @@ -PWD /volatile/wambeke/SAT5/SAT5_S840_MATIX24/SAT/doc/build/latex -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf.cnf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/web2c/texmf.cnf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-var/web2c/pdftex/pdflatex.fmt -INPUT salomeTools.tex -OUTPUT salomeTools.log -INPUT sphinxmanual.cls -INPUT sphinxmanual.cls -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/report.cls -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/report.cls -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/size10.clo -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/size10.clo -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/inputenc.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/inputenc.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/utf8.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/utf8.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ot1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ot1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/omsenc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/omsenc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/map/fontname/texfonts.map -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/jknappen/ec/ecrm1000.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/t1.cmap -OUTPUT salomeTools.pdf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/t1.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amssymb.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amssymb.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/switch.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/txtbabel.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/times.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/times.sty -INPUT fncychap.sty -INPUT fncychap.sty -INPUT sphinx.sty -INPUT sphinx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.dfu -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/titlesec/titlesec.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/titlesec/titlesec.sty -INPUT tabulary.sty -INPUT tabulary.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/array.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/array.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/longtable.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/longtable.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/varwidth/varwidth.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/varwidth/varwidth.sty -INPUT sphinxmulticell.sty -INPUT sphinxmulticell.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/makeidx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/makeidx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/framed/framed.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/framed/framed.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty -INPUT footnotehyper-sphinx.sty -INPUT footnotehyper-sphinx.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/float/float.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/float/float.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/wrapfig/wrapfig.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/wrapfig/wrapfig.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/parskip/parskip.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/parskip/parskip.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/alltt.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/alltt.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/upquote/upquote.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/upquote/upquote.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/capt-of/capt-of.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/capt-of/capt-of.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/needspace/needspace.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/needspace/needspace.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/carlisle/remreset.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/carlisle/remreset.sty -INPUT sphinxhighlight.sty -INPUT sphinxhighlight.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/etexcmds.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/etexcmds.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvtex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvtex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/url/url.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/url/url.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/hypcap.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/hypcap.sty -OUTPUT salomeTools.idx -INPUT salomeTools.aux -INPUT salomeTools.aux -OUTPUT salomeTools.aux -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty -INPUT salomeTools.out -INPUT salomeTools.out -INPUT salomeTools.out -INPUT salomeTools.out -INPUT ./salomeTools.out -INPUT ./salomeTools.out -OUTPUT salomeTools.out -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1phv.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1phv.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr17.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/ot1.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/ot1.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr12.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oml.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oml.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oms.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/oms.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmex10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/omx.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/mmap/omx.cmap -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmex10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvbo8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8t.tfm -INPUT salomeTools.toc -INPUT salomeTools.toc -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam5.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm5.tfm -OUTPUT salomeTools.toc -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvb8r.tfm -INPUT sat_about.png -INPUT ./sat_about.png -INPUT ./sat_about.png -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1pcr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1pcr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8t.tfm -INPUT sat_about.png -INPUT ./sat_about.png -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr8.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmr6.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi8.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmmi6.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy8.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/cm/cmsy6.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex8.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msam7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm10.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/public/amsfonts/symbols/msbm7.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmri8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1ptm.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1ptm.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmr8c.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrro8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmri8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/times/ptmri8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/times/ptmr8c.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1pcr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1pcr.fd -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8c.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvbo8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvbo8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrro8c.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrr8c.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrr8c.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8t.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrb8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrro8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrro8r.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/courier/pcrb8c.tfm -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/courier/pcrb8c.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/vf/adobe/helvetic/phvr8t.vf -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/tfm/adobe/helvetic/phvr8r.tfm -INPUT salomeTools.ind -INPUT salomeTools.ind -INPUT salomeTools.aux -INPUT ./salomeTools.out -INPUT ./salomeTools.out -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/enc/dvips/base/8r.enc -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi5.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy5.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrb8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrr8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/courier/ucrro8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvbo8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmb8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmr8a.pfb -INPUT /data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/type1/urw/times/utmri8a.pfb diff --git a/doc/build/latex/salomeTools.idx b/doc/build/latex/salomeTools.idx deleted file mode 100644 index c38e4e3..0000000 --- a/doc/build/latex/salomeTools.idx +++ /dev/null @@ -1,526 +0,0 @@ -\indexentry{src.colorama.ansi (module)|hyperpage}{29} -\indexentry{AnsiBack (class in src.colorama.ansi)|hyperpage}{29} -\indexentry{BLACK (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{BLUE (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{CYAN (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{GREEN (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTBLACK\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTBLUE\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTCYAN\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTGREEN\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTRED\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTWHITE\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{MAGENTA (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{RED (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{RESET (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{WHITE (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{YELLOW (src.colorama.ansi.AnsiBack attribute)|hyperpage}{29} -\indexentry{AnsiCodes (class in src.colorama.ansi)|hyperpage}{29} -\indexentry{AnsiCursor (class in src.colorama.ansi)|hyperpage}{30} -\indexentry{BACK() (src.colorama.ansi.AnsiCursor method)|hyperpage}{30} -\indexentry{DOWN() (src.colorama.ansi.AnsiCursor method)|hyperpage}{30} -\indexentry{FORWARD() (src.colorama.ansi.AnsiCursor method)|hyperpage}{30} -\indexentry{POS() (src.colorama.ansi.AnsiCursor method)|hyperpage}{30} -\indexentry{UP() (src.colorama.ansi.AnsiCursor method)|hyperpage}{30} -\indexentry{AnsiFore (class in src.colorama.ansi)|hyperpage}{30} -\indexentry{BLACK (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{BLUE (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{CYAN (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{GREEN (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTBLACK\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTBLUE\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTCYAN\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTGREEN\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTRED\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTWHITE\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{MAGENTA (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{RED (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{RESET (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{WHITE (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{YELLOW (src.colorama.ansi.AnsiFore attribute)|hyperpage}{30} -\indexentry{AnsiStyle (class in src.colorama.ansi)|hyperpage}{30} -\indexentry{BRIGHT (src.colorama.ansi.AnsiStyle attribute)|hyperpage}{30} -\indexentry{DIM (src.colorama.ansi.AnsiStyle attribute)|hyperpage}{30} -\indexentry{NORMAL (src.colorama.ansi.AnsiStyle attribute)|hyperpage}{30} -\indexentry{RESET\_ALL (src.colorama.ansi.AnsiStyle attribute)|hyperpage}{30} -\indexentry{clear\_line() (in module src.colorama.ansi)|hyperpage}{30} -\indexentry{clear\_screen() (in module src.colorama.ansi)|hyperpage}{30} -\indexentry{code\_to\_chars() (in module src.colorama.ansi)|hyperpage}{30} -\indexentry{set\_title() (in module src.colorama.ansi)|hyperpage}{30} -\indexentry{src.colorama.ansitowin32 (module)|hyperpage}{31} -\indexentry{AnsiToWin32 (class in src.colorama.ansitowin32)|hyperpage}{31} -\indexentry{ANSI\_CSI\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)|hyperpage}{31} -\indexentry{ANSI\_OSC\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)|hyperpage}{31} -\indexentry{call\_win32() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{convert\_ansi() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{convert\_osc() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{extract\_params() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{get\_win32\_calls() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{reset\_all() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{should\_wrap() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{write() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{write\_and\_convert() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{write\_plain\_text() (src.colorama.ansitowin32.AnsiToWin32 method)|hyperpage}{31} -\indexentry{StreamWrapper (class in src.colorama.ansitowin32)|hyperpage}{31} -\indexentry{write() (src.colorama.ansitowin32.StreamWrapper method)|hyperpage}{31} -\indexentry{is\_a\_tty() (in module src.colorama.ansitowin32)|hyperpage}{31} -\indexentry{is\_stream\_closed() (in module src.colorama.ansitowin32)|hyperpage}{31} -\indexentry{src.colorama.initialise (module)|hyperpage}{31} -\indexentry{colorama\_text() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{deinit() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{init() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{reinit() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{reset\_all() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{wrap\_stream() (in module src.colorama.initialise)|hyperpage}{31} -\indexentry{src.colorama.win32 (module)|hyperpage}{32} -\indexentry{SetConsoleTextAttribute() (in module src.colorama.win32)|hyperpage}{32} -\indexentry{winapi\_test() (in module src.colorama.win32)|hyperpage}{32} -\indexentry{src.colorama.winterm (module)|hyperpage}{32} -\indexentry{WinColor (class in src.colorama.winterm)|hyperpage}{32} -\indexentry{BLACK (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{BLUE (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{CYAN (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{GREEN (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{GREY (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{MAGENTA (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{RED (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{YELLOW (src.colorama.winterm.WinColor attribute)|hyperpage}{32} -\indexentry{WinStyle (class in src.colorama.winterm)|hyperpage}{32} -\indexentry{BRIGHT (src.colorama.winterm.WinStyle attribute)|hyperpage}{32} -\indexentry{BRIGHT\_BACKGROUND (src.colorama.winterm.WinStyle attribute)|hyperpage}{32} -\indexentry{NORMAL (src.colorama.winterm.WinStyle attribute)|hyperpage}{32} -\indexentry{WinTerm (class in src.colorama.winterm)|hyperpage}{32} -\indexentry{back() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{cursor\_adjust() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{erase\_line() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{erase\_screen() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{fore() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{get\_attrs() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{get\_position() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{reset\_all() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{set\_attrs() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{set\_console() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{set\_cursor\_position() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{set\_title() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{style() (src.colorama.winterm.WinTerm method)|hyperpage}{32} -\indexentry{src.colorama (module)|hyperpage}{33} -\indexentry{src.ElementTree (module)|hyperpage}{33} -\indexentry{Comment() (in module src.ElementTree)|hyperpage}{33} -\indexentry{dump() (in module src.ElementTree)|hyperpage}{33} -\indexentry{Element() (in module src.ElementTree)|hyperpage}{33} -\indexentry{ElementTree (class in src.ElementTree)|hyperpage}{33} -\indexentry{find() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{findall() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{findtext() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{getiterator() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{getroot() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{parse() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{write() (src.ElementTree.ElementTree method)|hyperpage}{33} -\indexentry{fromstring() (in module src.ElementTree)|hyperpage}{33} -\indexentry{iselement() (in module src.ElementTree)|hyperpage}{33} -\indexentry{iterparse (class in src.ElementTree)|hyperpage}{33} -\indexentry{next() (src.ElementTree.iterparse method)|hyperpage}{33} -\indexentry{parse() (in module src.ElementTree)|hyperpage}{33} -\indexentry{PI() (in module src.ElementTree)|hyperpage}{33} -\indexentry{ProcessingInstruction() (in module src.ElementTree)|hyperpage}{33} -\indexentry{QName (class in src.ElementTree)|hyperpage}{33} -\indexentry{SubElement() (in module src.ElementTree)|hyperpage}{33} -\indexentry{tostring() (in module src.ElementTree)|hyperpage}{33} -\indexentry{TreeBuilder (class in src.ElementTree)|hyperpage}{33} -\indexentry{close() (src.ElementTree.TreeBuilder method)|hyperpage}{33} -\indexentry{data() (src.ElementTree.TreeBuilder method)|hyperpage}{33} -\indexentry{end() (src.ElementTree.TreeBuilder method)|hyperpage}{33} -\indexentry{start() (src.ElementTree.TreeBuilder method)|hyperpage}{33} -\indexentry{XML() (in module src.ElementTree)|hyperpage}{33} -\indexentry{XMLTreeBuilder (class in src.ElementTree)|hyperpage}{33} -\indexentry{close() (src.ElementTree.XMLTreeBuilder method)|hyperpage}{33} -\indexentry{doctype() (src.ElementTree.XMLTreeBuilder method)|hyperpage}{33} -\indexentry{feed() (src.ElementTree.XMLTreeBuilder method)|hyperpage}{33} -\indexentry{src.architecture (module)|hyperpage}{34} -\indexentry{get\_distrib\_version() (in module src.architecture)|hyperpage}{34} -\indexentry{get\_distribution() (in module src.architecture)|hyperpage}{34} -\indexentry{get\_nb\_proc() (in module src.architecture)|hyperpage}{34} -\indexentry{get\_python\_version() (in module src.architecture)|hyperpage}{34} -\indexentry{get\_user() (in module src.architecture)|hyperpage}{34} -\indexentry{is\_windows() (in module src.architecture)|hyperpage}{34} -\indexentry{src.compilation (module)|hyperpage}{34} -\indexentry{Builder (class in src.compilation)|hyperpage}{34} -\indexentry{build\_configure() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{check() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{cmake() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{complete\_environment() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{configure() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{do\_batch\_script\_build() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{do\_default\_build() (src.compilation.Builder method)|hyperpage}{34} -\indexentry{do\_python\_script\_build() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{do\_script\_build() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{hack\_libtool() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{install() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{log() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{log\_command() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{make() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{prepare() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{put\_txt\_log\_in\_appli\_log\_dir() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{wmake() (src.compilation.Builder method)|hyperpage}{35} -\indexentry{src.debug (module)|hyperpage}{35} -\indexentry{InStream (class in src.debug)|hyperpage}{36} -\indexentry{OutStream (class in src.debug)|hyperpage}{36} -\indexentry{close() (src.debug.OutStream method)|hyperpage}{36} -\indexentry{format\_color\_exception() (in module src.debug)|hyperpage}{36} -\indexentry{format\_exception() (in module src.debug)|hyperpage}{36} -\indexentry{getLocalEnv() (in module src.debug)|hyperpage}{36} -\indexentry{getStrConfigDbg() (in module src.debug)|hyperpage}{36} -\indexentry{getStrConfigStd() (in module src.debug)|hyperpage}{36} -\indexentry{indent() (in module src.debug)|hyperpage}{36} -\indexentry{isTypeConfig() (in module src.debug)|hyperpage}{36} -\indexentry{pop\_debug() (in module src.debug)|hyperpage}{36} -\indexentry{push\_debug() (in module src.debug)|hyperpage}{36} -\indexentry{saveConfigDbg() (in module src.debug)|hyperpage}{36} -\indexentry{saveConfigStd() (in module src.debug)|hyperpage}{36} -\indexentry{tofix() (in module src.debug)|hyperpage}{36} -\indexentry{write() (in module src.debug)|hyperpage}{36} -\indexentry{src.environment (module)|hyperpage}{36} -\indexentry{Environ (class in src.environment)|hyperpage}{36} -\indexentry{append() (src.environment.Environ method)|hyperpage}{36} -\indexentry{append\_value() (src.environment.Environ method)|hyperpage}{37} -\indexentry{command\_value() (src.environment.Environ method)|hyperpage}{37} -\indexentry{get() (src.environment.Environ method)|hyperpage}{37} -\indexentry{is\_defined() (src.environment.Environ method)|hyperpage}{37} -\indexentry{prepend() (src.environment.Environ method)|hyperpage}{37} -\indexentry{prepend\_value() (src.environment.Environ method)|hyperpage}{37} -\indexentry{set() (src.environment.Environ method)|hyperpage}{37} -\indexentry{FileEnvWriter (class in src.environment)|hyperpage}{37} -\indexentry{write\_cfgForPy\_file() (src.environment.FileEnvWriter method)|hyperpage}{37} -\indexentry{write\_env\_file() (src.environment.FileEnvWriter method)|hyperpage}{38} -\indexentry{SalomeEnviron (class in src.environment)|hyperpage}{38} -\indexentry{add\_comment() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{add\_line() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{add\_warning() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{append() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{dump() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{finish() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{get() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{get\_names() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{is\_defined() (src.environment.SalomeEnviron method)|hyperpage}{38} -\indexentry{load\_cfg\_environment() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{prepend() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{run\_env\_script() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{run\_simple\_env\_script() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set\_a\_product() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set\_application\_env() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set\_cpp\_env() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set\_full\_environ() (src.environment.SalomeEnviron method)|hyperpage}{39} -\indexentry{set\_products() (src.environment.SalomeEnviron method)|hyperpage}{40} -\indexentry{set\_python\_libdirs() (src.environment.SalomeEnviron method)|hyperpage}{40} -\indexentry{set\_salome\_generic\_product\_env() (src.environment.SalomeEnviron method)|hyperpage}{40} -\indexentry{set\_salome\_minimal\_product\_env() (src.environment.SalomeEnviron method)|hyperpage}{40} -\indexentry{Shell (class in src.environment)|hyperpage}{40} -\indexentry{load\_environment() (in module src.environment)|hyperpage}{40} -\indexentry{src.fileEnviron (module)|hyperpage}{40} -\indexentry{BashFileEnviron (class in src.fileEnviron)|hyperpage}{40} -\indexentry{command\_value() (src.fileEnviron.BashFileEnviron method)|hyperpage}{40} -\indexentry{finish() (src.fileEnviron.BashFileEnviron method)|hyperpage}{40} -\indexentry{set() (src.fileEnviron.BashFileEnviron method)|hyperpage}{40} -\indexentry{BatFileEnviron (class in src.fileEnviron)|hyperpage}{41} -\indexentry{add\_comment() (src.fileEnviron.BatFileEnviron method)|hyperpage}{41} -\indexentry{command\_value() (src.fileEnviron.BatFileEnviron method)|hyperpage}{41} -\indexentry{finish() (src.fileEnviron.BatFileEnviron method)|hyperpage}{41} -\indexentry{get() (src.fileEnviron.BatFileEnviron method)|hyperpage}{41} -\indexentry{set() (src.fileEnviron.BatFileEnviron method)|hyperpage}{41} -\indexentry{ContextFileEnviron (class in src.fileEnviron)|hyperpage}{41} -\indexentry{add\_echo() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{41} -\indexentry{add\_warning() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{41} -\indexentry{append\_value() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{41} -\indexentry{command\_value() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{41} -\indexentry{finish() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{42} -\indexentry{get() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{42} -\indexentry{prepend\_value() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{42} -\indexentry{set() (src.fileEnviron.ContextFileEnviron method)|hyperpage}{42} -\indexentry{FileEnviron (class in src.fileEnviron)|hyperpage}{42} -\indexentry{add\_comment() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{add\_echo() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{add\_line() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{add\_warning() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{append() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{append\_value() (src.fileEnviron.FileEnviron method)|hyperpage}{42} -\indexentry{command\_value() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{finish() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{get() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{is\_defined() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{prepend() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{prepend\_value() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{set() (src.fileEnviron.FileEnviron method)|hyperpage}{43} -\indexentry{LauncherFileEnviron (class in src.fileEnviron)|hyperpage}{43} -\indexentry{add() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{43} -\indexentry{add\_comment() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{add\_echo() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{add\_line() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{add\_warning() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{append() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{append\_value() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{change\_to\_launcher() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{command\_value() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{finish() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{get() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{is\_defined() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{prepend() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{44} -\indexentry{prepend\_value() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{45} -\indexentry{set() (src.fileEnviron.LauncherFileEnviron method)|hyperpage}{45} -\indexentry{ScreenEnviron (class in src.fileEnviron)|hyperpage}{45} -\indexentry{add\_comment() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{add\_echo() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{add\_line() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{add\_warning() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{append() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{command\_value() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{get() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{is\_defined() (src.fileEnviron.ScreenEnviron method)|hyperpage}{45} -\indexentry{prepend() (src.fileEnviron.ScreenEnviron method)|hyperpage}{46} -\indexentry{run\_env\_script() (src.fileEnviron.ScreenEnviron method)|hyperpage}{46} -\indexentry{set() (src.fileEnviron.ScreenEnviron method)|hyperpage}{46} -\indexentry{write() (src.fileEnviron.ScreenEnviron method)|hyperpage}{46} -\indexentry{get\_file\_environ() (in module src.fileEnviron)|hyperpage}{46} -\indexentry{special\_path\_separator() (in module src.fileEnviron)|hyperpage}{46} -\indexentry{src.fork (module)|hyperpage}{46} -\indexentry{batch() (in module src.fork)|hyperpage}{46} -\indexentry{batch\_salome() (in module src.fork)|hyperpage}{46} -\indexentry{launch\_command() (in module src.fork)|hyperpage}{46} -\indexentry{show\_progress() (in module src.fork)|hyperpage}{46} -\indexentry{write\_back() (in module src.fork)|hyperpage}{46} -\indexentry{src.logger (module)|hyperpage}{47} -\indexentry{Logger (class in src.logger)|hyperpage}{47} -\indexentry{add\_link() (src.logger.Logger method)|hyperpage}{47} -\indexentry{end\_write() (src.logger.Logger method)|hyperpage}{47} -\indexentry{error() (src.logger.Logger method)|hyperpage}{47} -\indexentry{flush() (src.logger.Logger method)|hyperpage}{47} -\indexentry{put\_initial\_xml\_fields() (src.logger.Logger method)|hyperpage}{47} -\indexentry{write() (src.logger.Logger method)|hyperpage}{47} -\indexentry{date\_to\_datetime() (in module src.logger)|hyperpage}{47} -\indexentry{getCurrentLogger() (in module src.logger)|hyperpage}{47} -\indexentry{getDefaultLogger() (in module src.logger)|hyperpage}{47} -\indexentry{getUnittestLogger() (in module src.logger)|hyperpage}{47} -\indexentry{isCurrentLoggerUnittest() (in module src.logger)|hyperpage}{48} -\indexentry{list\_log\_file() (in module src.logger)|hyperpage}{48} -\indexentry{sendMessageToCurrentLogger() (in module src.logger)|hyperpage}{48} -\indexentry{setCurrentLogger() (in module src.logger)|hyperpage}{48} -\indexentry{show\_command\_log() (in module src.logger)|hyperpage}{48} -\indexentry{timedelta\_total\_seconds() (in module src.logger)|hyperpage}{48} -\indexentry{update\_hat\_xml() (in module src.logger)|hyperpage}{48} -\indexentry{src.options (module)|hyperpage}{48} -\indexentry{OptResult (class in src.options)|hyperpage}{48} -\indexentry{Options (class in src.options)|hyperpage}{49} -\indexentry{add\_option() (src.options.Options method)|hyperpage}{49} -\indexentry{debug\_write() (src.options.Options method)|hyperpage}{49} -\indexentry{filterLevel() (src.options.Options method)|hyperpage}{49} -\indexentry{filterList2() (src.options.Options method)|hyperpage}{49} -\indexentry{getDetailOption() (src.options.Options method)|hyperpage}{49} -\indexentry{get\_help() (src.options.Options method)|hyperpage}{49} -\indexentry{indent() (src.options.Options method)|hyperpage}{49} -\indexentry{parse\_args() (src.options.Options method)|hyperpage}{49} -\indexentry{src.printcolors (module)|hyperpage}{49} -\indexentry{cleancolor() (in module src.printcolors)|hyperpage}{49} -\indexentry{print\_color\_map() (in module src.printcolors)|hyperpage}{49} -\indexentry{print\_color\_range() (in module src.printcolors)|hyperpage}{50} -\indexentry{print\_value() (in module src.printcolors)|hyperpage}{50} -\indexentry{printc() (in module src.printcolors)|hyperpage}{50} -\indexentry{printcError() (in module src.printcolors)|hyperpage}{50} -\indexentry{printcHeader() (in module src.printcolors)|hyperpage}{50} -\indexentry{printcHighlight() (in module src.printcolors)|hyperpage}{50} -\indexentry{printcInfo() (in module src.printcolors)|hyperpage}{50} -\indexentry{printcLabel() (in module src.printcolors)|hyperpage}{51} -\indexentry{printcSuccess() (in module src.printcolors)|hyperpage}{51} -\indexentry{printcWarning() (in module src.printcolors)|hyperpage}{51} -\indexentry{src.product (module)|hyperpage}{51} -\indexentry{check\_config\_exists() (in module src.product)|hyperpage}{51} -\indexentry{check\_installation() (in module src.product)|hyperpage}{51} -\indexentry{check\_source() (in module src.product)|hyperpage}{51} -\indexentry{get\_base\_install\_dir() (in module src.product)|hyperpage}{51} -\indexentry{get\_install\_dir() (in module src.product)|hyperpage}{52} -\indexentry{get\_product\_components() (in module src.product)|hyperpage}{52} -\indexentry{get\_product\_config() (in module src.product)|hyperpage}{52} -\indexentry{get\_product\_dependencies() (in module src.product)|hyperpage}{52} -\indexentry{get\_product\_section() (in module src.product)|hyperpage}{52} -\indexentry{get\_products\_infos() (in module src.product)|hyperpage}{53} -\indexentry{product\_compiles() (in module src.product)|hyperpage}{53} -\indexentry{product\_has\_env\_script() (in module src.product)|hyperpage}{53} -\indexentry{product\_has\_logo() (in module src.product)|hyperpage}{53} -\indexentry{product\_has\_patches() (in module src.product)|hyperpage}{53} -\indexentry{product\_has\_salome\_gui() (in module src.product)|hyperpage}{53} -\indexentry{product\_has\_script() (in module src.product)|hyperpage}{53} -\indexentry{product\_is\_autotools() (in module src.product)|hyperpage}{53} -\indexentry{product\_is\_cmake() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_cpp() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_debug() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_dev() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_fixed() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_generated() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_mpi() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_native() (in module src.product)|hyperpage}{54} -\indexentry{product\_is\_salome() (in module src.product)|hyperpage}{55} -\indexentry{product\_is\_smesh\_plugin() (in module src.product)|hyperpage}{55} -\indexentry{product\_is\_vcs() (in module src.product)|hyperpage}{55} -\indexentry{product\_is\_verbose() (in module src.product)|hyperpage}{55} -\indexentry{src.pyconf (module)|hyperpage}{55} -\indexentry{Config (class in src.pyconf)|hyperpage}{56} -\indexentry{Config.Namespace (class in src.pyconf)|hyperpage}{56} -\indexentry{addNamespace() (src.pyconf.Config method)|hyperpage}{56} -\indexentry{getByPath() (src.pyconf.Config method)|hyperpage}{56} -\indexentry{load() (src.pyconf.Config method)|hyperpage}{56} -\indexentry{removeNamespace() (src.pyconf.Config method)|hyperpage}{57} -\indexentry{ConfigError|hyperpage}{57} -\indexentry{ConfigFormatError|hyperpage}{57} -\indexentry{ConfigInputStream (class in src.pyconf)|hyperpage}{57} -\indexentry{close() (src.pyconf.ConfigInputStream method)|hyperpage}{57} -\indexentry{read() (src.pyconf.ConfigInputStream method)|hyperpage}{57} -\indexentry{readline() (src.pyconf.ConfigInputStream method)|hyperpage}{57} -\indexentry{ConfigList (class in src.pyconf)|hyperpage}{57} -\indexentry{getByPath() (src.pyconf.ConfigList method)|hyperpage}{57} -\indexentry{ConfigMerger (class in src.pyconf)|hyperpage}{57} -\indexentry{handleMismatch() (src.pyconf.ConfigMerger method)|hyperpage}{57} -\indexentry{merge() (src.pyconf.ConfigMerger method)|hyperpage}{57} -\indexentry{mergeMapping() (src.pyconf.ConfigMerger method)|hyperpage}{57} -\indexentry{mergeSequence() (src.pyconf.ConfigMerger method)|hyperpage}{58} -\indexentry{overwriteKeys() (src.pyconf.ConfigMerger method)|hyperpage}{58} -\indexentry{ConfigOutputStream (class in src.pyconf)|hyperpage}{58} -\indexentry{close() (src.pyconf.ConfigOutputStream method)|hyperpage}{58} -\indexentry{flush() (src.pyconf.ConfigOutputStream method)|hyperpage}{58} -\indexentry{write() (src.pyconf.ConfigOutputStream method)|hyperpage}{58} -\indexentry{ConfigReader (class in src.pyconf)|hyperpage}{58} -\indexentry{getChar() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{getToken() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{load() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{location() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{match() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{parseFactor() (src.pyconf.ConfigReader method)|hyperpage}{58} -\indexentry{parseKeyValuePair() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseMapping() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseMappingBody() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseReference() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseScalar() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseSequence() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseSuffix() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseTerm() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{parseValue() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{setStream() (src.pyconf.ConfigReader method)|hyperpage}{59} -\indexentry{ConfigResolutionError|hyperpage}{59} -\indexentry{Container (class in src.pyconf)|hyperpage}{59} -\indexentry{evaluate() (src.pyconf.Container method)|hyperpage}{60} -\indexentry{setPath() (src.pyconf.Container method)|hyperpage}{60} -\indexentry{writeToStream() (src.pyconf.Container method)|hyperpage}{60} -\indexentry{writeValue() (src.pyconf.Container method)|hyperpage}{60} -\indexentry{Expression (class in src.pyconf)|hyperpage}{60} -\indexentry{evaluate() (src.pyconf.Expression method)|hyperpage}{60} -\indexentry{Mapping (class in src.pyconf)|hyperpage}{60} -\indexentry{addMapping() (src.pyconf.Mapping method)|hyperpage}{60} -\indexentry{get() (src.pyconf.Mapping method)|hyperpage}{60} -\indexentry{iteritems() (src.pyconf.Mapping method)|hyperpage}{60} -\indexentry{iterkeys() (src.pyconf.Mapping method)|hyperpage}{60} -\indexentry{keys() (src.pyconf.Mapping method)|hyperpage}{60} -\indexentry{writeToStream() (src.pyconf.Mapping method)|hyperpage}{61} -\indexentry{Reference (class in src.pyconf)|hyperpage}{61} -\indexentry{addElement() (src.pyconf.Reference method)|hyperpage}{61} -\indexentry{findConfig() (src.pyconf.Reference method)|hyperpage}{61} -\indexentry{resolve() (src.pyconf.Reference method)|hyperpage}{61} -\indexentry{Sequence (class in src.pyconf)|hyperpage}{61} -\indexentry{Sequence.SeqIter (class in src.pyconf)|hyperpage}{61} -\indexentry{next() (src.pyconf.Sequence.SeqIter method)|hyperpage}{61} -\indexentry{append() (src.pyconf.Sequence method)|hyperpage}{61} -\indexentry{writeToStream() (src.pyconf.Sequence method)|hyperpage}{61} -\indexentry{deepCopyMapping() (in module src.pyconf)|hyperpage}{61} -\indexentry{defaultMergeResolve() (in module src.pyconf)|hyperpage}{61} -\indexentry{defaultStreamOpener() (in module src.pyconf)|hyperpage}{62} -\indexentry{isWord() (in module src.pyconf)|hyperpage}{62} -\indexentry{makePath() (in module src.pyconf)|hyperpage}{62} -\indexentry{overwriteMergeResolve() (in module src.pyconf)|hyperpage}{62} -\indexentry{src.system (module)|hyperpage}{62} -\indexentry{archive\_extract() (in module src.system)|hyperpage}{62} -\indexentry{cvs\_extract() (in module src.system)|hyperpage}{62} -\indexentry{git\_extract() (in module src.system)|hyperpage}{63} -\indexentry{show\_in\_editor() (in module src.system)|hyperpage}{63} -\indexentry{svn\_extract() (in module src.system)|hyperpage}{63} -\indexentry{src.template (module)|hyperpage}{64} -\indexentry{MyTemplate (class in src.template)|hyperpage}{64} -\indexentry{delimiter (src.template.MyTemplate attribute)|hyperpage}{64} -\indexentry{pattern (src.template.MyTemplate attribute)|hyperpage}{64} -\indexentry{substitute() (in module src.template)|hyperpage}{64} -\indexentry{src.test\_module (module)|hyperpage}{64} -\indexentry{Test (class in src.test\_module)|hyperpage}{64} -\indexentry{generate\_launching\_commands() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{generate\_script() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{get\_test\_timeout() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{get\_tmp\_dir() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{prepare\_testbase() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{prepare\_testbase\_from\_dir() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{prepare\_testbase\_from\_git() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{prepare\_testbase\_from\_svn() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{read\_results() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_all\_tests() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_grid\_tests() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_script() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_session\_tests() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_testbase\_tests() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{run\_tests() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{search\_known\_errors() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{write\_test\_margin() (src.test\_module.Test method)|hyperpage}{64} -\indexentry{getTmpDirDEFAULT() (in module src.test\_module)|hyperpage}{64} -\indexentry{src.xmlManager (module)|hyperpage}{64} -\indexentry{ReadXmlFile (class in src.xmlManager)|hyperpage}{64} -\indexentry{getRootAttrib() (src.xmlManager.ReadXmlFile method)|hyperpage}{64} -\indexentry{get\_attrib() (src.xmlManager.ReadXmlFile method)|hyperpage}{65} -\indexentry{get\_node\_text() (src.xmlManager.ReadXmlFile method)|hyperpage}{65} -\indexentry{XmlLogFile (class in src.xmlManager)|hyperpage}{65} -\indexentry{add\_simple\_node() (src.xmlManager.XmlLogFile method)|hyperpage}{65} -\indexentry{append\_node\_attrib() (src.xmlManager.XmlLogFile method)|hyperpage}{65} -\indexentry{append\_node\_text() (src.xmlManager.XmlLogFile method)|hyperpage}{65} -\indexentry{write\_tree() (src.xmlManager.XmlLogFile method)|hyperpage}{65} -\indexentry{add\_simple\_node() (in module src.xmlManager)|hyperpage}{65} -\indexentry{append\_node\_attrib() (in module src.xmlManager)|hyperpage}{66} -\indexentry{find\_node\_by\_attrib() (in module src.xmlManager)|hyperpage}{66} -\indexentry{write\_report() (in module src.xmlManager)|hyperpage}{66} -\indexentry{src (module)|hyperpage}{66} -\indexentry{Path (class in src)|hyperpage}{66} -\indexentry{base() (src.Path method)|hyperpage}{66} -\indexentry{chmod() (src.Path method)|hyperpage}{66} -\indexentry{copy() (src.Path method)|hyperpage}{66} -\indexentry{copydir() (src.Path method)|hyperpage}{66} -\indexentry{copyfile() (src.Path method)|hyperpage}{66} -\indexentry{copylink() (src.Path method)|hyperpage}{66} -\indexentry{dir() (src.Path method)|hyperpage}{66} -\indexentry{exists() (src.Path method)|hyperpage}{66} -\indexentry{isdir() (src.Path method)|hyperpage}{66} -\indexentry{isfile() (src.Path method)|hyperpage}{66} -\indexentry{islink() (src.Path method)|hyperpage}{66} -\indexentry{list() (src.Path method)|hyperpage}{66} -\indexentry{make() (src.Path method)|hyperpage}{67} -\indexentry{readlink() (src.Path method)|hyperpage}{67} -\indexentry{rm() (src.Path method)|hyperpage}{67} -\indexentry{smartcopy() (src.Path method)|hyperpage}{67} -\indexentry{symlink() (src.Path method)|hyperpage}{67} -\indexentry{SatException|hyperpage}{67} -\indexentry{activate\_mesa\_property() (in module src)|hyperpage}{67} -\indexentry{check\_config\_has\_application() (in module src)|hyperpage}{67} -\indexentry{check\_config\_has\_profile() (in module src)|hyperpage}{67} -\indexentry{config\_has\_application() (in module src)|hyperpage}{67} -\indexentry{deepcopy\_list() (in module src)|hyperpage}{67} -\indexentry{ensure\_path\_exists() (in module src)|hyperpage}{67} -\indexentry{find\_file\_in\_lpath() (in module src)|hyperpage}{67} -\indexentry{get\_base\_path() (in module src)|hyperpage}{67} -\indexentry{get\_cfg\_param() (in module src)|hyperpage}{67} -\indexentry{get\_launcher\_name() (in module src)|hyperpage}{68} -\indexentry{get\_log\_path() (in module src)|hyperpage}{68} -\indexentry{get\_property\_in\_product\_cfg() (in module src)|hyperpage}{68} -\indexentry{get\_salome\_version() (in module src)|hyperpage}{68} -\indexentry{get\_tmp\_filename() (in module src)|hyperpage}{68} -\indexentry{handleRemoveReadonly() (in module src)|hyperpage}{68} -\indexentry{merge\_dicts() (in module src)|hyperpage}{68} -\indexentry{only\_numbers() (in module src)|hyperpage}{68} -\indexentry{parse\_date() (in module src)|hyperpage}{68} -\indexentry{print\_info() (in module src)|hyperpage}{68} -\indexentry{read\_config\_from\_a\_file() (in module src)|hyperpage}{68} -\indexentry{remove\_item\_from\_list() (in module src)|hyperpage}{68} -\indexentry{replace\_in\_file() (in module src)|hyperpage}{69} diff --git a/doc/build/latex/salomeTools.ilg b/doc/build/latex/salomeTools.ilg deleted file mode 100644 index 57547af..0000000 --- a/doc/build/latex/salomeTools.ilg +++ /dev/null @@ -1,7 +0,0 @@ -This is makeindex, version 2.15 [TeX Live 2017] (kpathsea + Thai support). -Scanning style file ./python.ist.......done (7 attributes redefined, 0 ignored). -Scanning input file salomeTools.idx....done (526 entries accepted, 0 rejected). -Sorting entries.......done (5034 comparisons). -Generating output file salomeTools.ind....done (598 lines written, 0 warnings). -Output written in salomeTools.ind. -Transcript written in salomeTools.ilg. diff --git a/doc/build/latex/salomeTools.ind b/doc/build/latex/salomeTools.ind deleted file mode 100644 index 6e9fdd9..0000000 --- a/doc/build/latex/salomeTools.ind +++ /dev/null @@ -1,598 +0,0 @@ -\begin{sphinxtheindex} -\def\bigletter#1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}} - - \bigletter A - \item activate\_mesa\_property() (in module src), \hyperpage{67} - \item add() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{43} - \item add\_comment() (src.environment.SalomeEnviron method), \hyperpage{38} - \item add\_comment() (src.fileEnviron.BatFileEnviron method), \hyperpage{41} - \item add\_comment() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item add\_comment() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item add\_comment() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item add\_echo() (src.fileEnviron.ContextFileEnviron method), \hyperpage{41} - \item add\_echo() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item add\_echo() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item add\_echo() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item add\_line() (src.environment.SalomeEnviron method), \hyperpage{38} - \item add\_line() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item add\_line() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item add\_line() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item add\_link() (src.logger.Logger method), \hyperpage{47} - \item add\_option() (src.options.Options method), \hyperpage{49} - \item add\_simple\_node() (in module src.xmlManager), \hyperpage{65} - \item add\_simple\_node() (src.xmlManager.XmlLogFile method), \hyperpage{65} - \item add\_warning() (src.environment.SalomeEnviron method), \hyperpage{38} - \item add\_warning() (src.fileEnviron.ContextFileEnviron method), \hyperpage{41} - \item add\_warning() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item add\_warning() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item add\_warning() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item addElement() (src.pyconf.Reference method), \hyperpage{61} - \item addMapping() (src.pyconf.Mapping method), \hyperpage{60} - \item addNamespace() (src.pyconf.Config method), \hyperpage{56} - \item ANSI\_CSI\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute), \hyperpage{31} - \item ANSI\_OSC\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute), \hyperpage{31} - \item AnsiBack (class in src.colorama.ansi), \hyperpage{29} - \item AnsiCodes (class in src.colorama.ansi), \hyperpage{29} - \item AnsiCursor (class in src.colorama.ansi), \hyperpage{30} - \item AnsiFore (class in src.colorama.ansi), \hyperpage{30} - \item AnsiStyle (class in src.colorama.ansi), \hyperpage{30} - \item AnsiToWin32 (class in src.colorama.ansitowin32), \hyperpage{31} - \item append() (src.environment.Environ method), \hyperpage{36} - \item append() (src.environment.SalomeEnviron method), \hyperpage{38} - \item append() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item append() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item append() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item append() (src.pyconf.Sequence method), \hyperpage{61} - \item append\_node\_attrib() (in module src.xmlManager), \hyperpage{66} - \item append\_node\_attrib() (src.xmlManager.XmlLogFile method), \hyperpage{65} - \item append\_node\_text() (src.xmlManager.XmlLogFile method), \hyperpage{65} - \item append\_value() (src.environment.Environ method), \hyperpage{37} - \item append\_value() (src.fileEnviron.ContextFileEnviron method), \hyperpage{41} - \item append\_value() (src.fileEnviron.FileEnviron method), \hyperpage{42} - \item append\_value() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item archive\_extract() (in module src.system), \hyperpage{62} - - \indexspace - \bigletter B - \item BACK() (src.colorama.ansi.AnsiCursor method), \hyperpage{30} - \item back() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item base() (src.Path method), \hyperpage{66} - \item BashFileEnviron (class in src.fileEnviron), \hyperpage{40} - \item batch() (in module src.fork), \hyperpage{46} - \item batch\_salome() (in module src.fork), \hyperpage{46} - \item BatFileEnviron (class in src.fileEnviron), \hyperpage{41} - \item BLACK (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item BLACK (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item BLACK (src.colorama.winterm.WinColor attribute), \hyperpage{32} - \item BLUE (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item BLUE (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item BLUE (src.colorama.winterm.WinColor attribute), \hyperpage{32} - \item BRIGHT (src.colorama.ansi.AnsiStyle attribute), \hyperpage{30} - \item BRIGHT (src.colorama.winterm.WinStyle attribute), \hyperpage{32} - \item BRIGHT\_BACKGROUND (src.colorama.winterm.WinStyle attribute), \hyperpage{32} - \item build\_configure() (src.compilation.Builder method), \hyperpage{34} - \item Builder (class in src.compilation), \hyperpage{34} - - \indexspace - \bigletter C - \item call\_win32() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item change\_to\_launcher() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item check() (src.compilation.Builder method), \hyperpage{34} - \item check\_config\_exists() (in module src.product), \hyperpage{51} - \item check\_config\_has\_application() (in module src), \hyperpage{67} - \item check\_config\_has\_profile() (in module src), \hyperpage{67} - \item check\_installation() (in module src.product), \hyperpage{51} - \item check\_source() (in module src.product), \hyperpage{51} - \item chmod() (src.Path method), \hyperpage{66} - \item cleancolor() (in module src.printcolors), \hyperpage{49} - \item clear\_line() (in module src.colorama.ansi), \hyperpage{30} - \item clear\_screen() (in module src.colorama.ansi), \hyperpage{30} - \item close() (src.debug.OutStream method), \hyperpage{36} - \item close() (src.ElementTree.TreeBuilder method), \hyperpage{33} - \item close() (src.ElementTree.XMLTreeBuilder method), \hyperpage{33} - \item close() (src.pyconf.ConfigInputStream method), \hyperpage{57} - \item close() (src.pyconf.ConfigOutputStream method), \hyperpage{58} - \item cmake() (src.compilation.Builder method), \hyperpage{34} - \item code\_to\_chars() (in module src.colorama.ansi), \hyperpage{30} - \item colorama\_text() (in module src.colorama.initialise), \hyperpage{31} - \item command\_value() (src.environment.Environ method), \hyperpage{37} - \item command\_value() (src.fileEnviron.BashFileEnviron method), \hyperpage{40} - \item command\_value() (src.fileEnviron.BatFileEnviron method), \hyperpage{41} - \item command\_value() (src.fileEnviron.ContextFileEnviron method), \hyperpage{41} - \item command\_value() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item command\_value() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item command\_value() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item Comment() (in module src.ElementTree), \hyperpage{33} - \item complete\_environment() (src.compilation.Builder method), \hyperpage{34} - \item Config (class in src.pyconf), \hyperpage{56} - \item Config.Namespace (class in src.pyconf), \hyperpage{56} - \item config\_has\_application() (in module src), \hyperpage{67} - \item ConfigError, \hyperpage{57} - \item ConfigFormatError, \hyperpage{57} - \item ConfigInputStream (class in src.pyconf), \hyperpage{57} - \item ConfigList (class in src.pyconf), \hyperpage{57} - \item ConfigMerger (class in src.pyconf), \hyperpage{57} - \item ConfigOutputStream (class in src.pyconf), \hyperpage{58} - \item ConfigReader (class in src.pyconf), \hyperpage{58} - \item ConfigResolutionError, \hyperpage{59} - \item configure() (src.compilation.Builder method), \hyperpage{34} - \item Container (class in src.pyconf), \hyperpage{59} - \item ContextFileEnviron (class in src.fileEnviron), \hyperpage{41} - \item convert\_ansi() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item convert\_osc() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item copy() (src.Path method), \hyperpage{66} - \item copydir() (src.Path method), \hyperpage{66} - \item copyfile() (src.Path method), \hyperpage{66} - \item copylink() (src.Path method), \hyperpage{66} - \item cursor\_adjust() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item cvs\_extract() (in module src.system), \hyperpage{62} - \item CYAN (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item CYAN (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item CYAN (src.colorama.winterm.WinColor attribute), \hyperpage{32} - - \indexspace - \bigletter D - \item data() (src.ElementTree.TreeBuilder method), \hyperpage{33} - \item date\_to\_datetime() (in module src.logger), \hyperpage{47} - \item debug\_write() (src.options.Options method), \hyperpage{49} - \item deepcopy\_list() (in module src), \hyperpage{67} - \item deepCopyMapping() (in module src.pyconf), \hyperpage{61} - \item defaultMergeResolve() (in module src.pyconf), \hyperpage{61} - \item defaultStreamOpener() (in module src.pyconf), \hyperpage{62} - \item deinit() (in module src.colorama.initialise), \hyperpage{31} - \item delimiter (src.template.MyTemplate attribute), \hyperpage{64} - \item DIM (src.colorama.ansi.AnsiStyle attribute), \hyperpage{30} - \item dir() (src.Path method), \hyperpage{66} - \item do\_batch\_script\_build() (src.compilation.Builder method), \hyperpage{34} - \item do\_default\_build() (src.compilation.Builder method), \hyperpage{34} - \item do\_python\_script\_build() (src.compilation.Builder method), \hyperpage{35} - \item do\_script\_build() (src.compilation.Builder method), \hyperpage{35} - \item doctype() (src.ElementTree.XMLTreeBuilder method), \hyperpage{33} - \item DOWN() (src.colorama.ansi.AnsiCursor method), \hyperpage{30} - \item dump() (in module src.ElementTree), \hyperpage{33} - \item dump() (src.environment.SalomeEnviron method), \hyperpage{38} - - \indexspace - \bigletter E - \item Element() (in module src.ElementTree), \hyperpage{33} - \item ElementTree (class in src.ElementTree), \hyperpage{33} - \item end() (src.ElementTree.TreeBuilder method), \hyperpage{33} - \item end\_write() (src.logger.Logger method), \hyperpage{47} - \item ensure\_path\_exists() (in module src), \hyperpage{67} - \item Environ (class in src.environment), \hyperpage{36} - \item erase\_line() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item erase\_screen() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item error() (src.logger.Logger method), \hyperpage{47} - \item evaluate() (src.pyconf.Container method), \hyperpage{60} - \item evaluate() (src.pyconf.Expression method), \hyperpage{60} - \item exists() (src.Path method), \hyperpage{66} - \item Expression (class in src.pyconf), \hyperpage{60} - \item extract\_params() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - - \indexspace - \bigletter F - \item feed() (src.ElementTree.XMLTreeBuilder method), \hyperpage{33} - \item FileEnviron (class in src.fileEnviron), \hyperpage{42} - \item FileEnvWriter (class in src.environment), \hyperpage{37} - \item filterLevel() (src.options.Options method), \hyperpage{49} - \item filterList2() (src.options.Options method), \hyperpage{49} - \item find() (src.ElementTree.ElementTree method), \hyperpage{33} - \item find\_file\_in\_lpath() (in module src), \hyperpage{67} - \item find\_node\_by\_attrib() (in module src.xmlManager), \hyperpage{66} - \item findall() (src.ElementTree.ElementTree method), \hyperpage{33} - \item findConfig() (src.pyconf.Reference method), \hyperpage{61} - \item findtext() (src.ElementTree.ElementTree method), \hyperpage{33} - \item finish() (src.environment.SalomeEnviron method), \hyperpage{38} - \item finish() (src.fileEnviron.BashFileEnviron method), \hyperpage{40} - \item finish() (src.fileEnviron.BatFileEnviron method), \hyperpage{41} - \item finish() (src.fileEnviron.ContextFileEnviron method), \hyperpage{42} - \item finish() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item finish() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item flush() (src.logger.Logger method), \hyperpage{47} - \item flush() (src.pyconf.ConfigOutputStream method), \hyperpage{58} - \item fore() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item format\_color\_exception() (in module src.debug), \hyperpage{36} - \item format\_exception() (in module src.debug), \hyperpage{36} - \item FORWARD() (src.colorama.ansi.AnsiCursor method), \hyperpage{30} - \item fromstring() (in module src.ElementTree), \hyperpage{33} - - \indexspace - \bigletter G - \item generate\_launching\_commands() (src.test\_module.Test method), \hyperpage{64} - \item generate\_script() (src.test\_module.Test method), \hyperpage{64} - \item get() (src.environment.Environ method), \hyperpage{37} - \item get() (src.environment.SalomeEnviron method), \hyperpage{38} - \item get() (src.fileEnviron.BatFileEnviron method), \hyperpage{41} - \item get() (src.fileEnviron.ContextFileEnviron method), \hyperpage{42} - \item get() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item get() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item get() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item get() (src.pyconf.Mapping method), \hyperpage{60} - \item get\_attrib() (src.xmlManager.ReadXmlFile method), \hyperpage{65} - \item get\_attrs() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item get\_base\_install\_dir() (in module src.product), \hyperpage{51} - \item get\_base\_path() (in module src), \hyperpage{67} - \item get\_cfg\_param() (in module src), \hyperpage{67} - \item get\_distrib\_version() (in module src.architecture), \hyperpage{34} - \item get\_distribution() (in module src.architecture), \hyperpage{34} - \item get\_file\_environ() (in module src.fileEnviron), \hyperpage{46} - \item get\_help() (src.options.Options method), \hyperpage{49} - \item get\_install\_dir() (in module src.product), \hyperpage{52} - \item get\_launcher\_name() (in module src), \hyperpage{68} - \item get\_log\_path() (in module src), \hyperpage{68} - \item get\_names() (src.environment.SalomeEnviron method), \hyperpage{38} - \item get\_nb\_proc() (in module src.architecture), \hyperpage{34} - \item get\_node\_text() (src.xmlManager.ReadXmlFile method), \hyperpage{65} - \item get\_position() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item get\_product\_components() (in module src.product), \hyperpage{52} - \item get\_product\_config() (in module src.product), \hyperpage{52} - \item get\_product\_dependencies() (in module src.product), \hyperpage{52} - \item get\_product\_section() (in module src.product), \hyperpage{52} - \item get\_products\_infos() (in module src.product), \hyperpage{53} - \item get\_property\_in\_product\_cfg() (in module src), \hyperpage{68} - \item get\_python\_version() (in module src.architecture), \hyperpage{34} - \item get\_salome\_version() (in module src), \hyperpage{68} - \item get\_test\_timeout() (src.test\_module.Test method), \hyperpage{64} - \item get\_tmp\_dir() (src.test\_module.Test method), \hyperpage{64} - \item get\_tmp\_filename() (in module src), \hyperpage{68} - \item get\_user() (in module src.architecture), \hyperpage{34} - \item get\_win32\_calls() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item getByPath() (src.pyconf.Config method), \hyperpage{56} - \item getByPath() (src.pyconf.ConfigList method), \hyperpage{57} - \item getChar() (src.pyconf.ConfigReader method), \hyperpage{58} - \item getCurrentLogger() (in module src.logger), \hyperpage{47} - \item getDefaultLogger() (in module src.logger), \hyperpage{47} - \item getDetailOption() (src.options.Options method), \hyperpage{49} - \item getiterator() (src.ElementTree.ElementTree method), \hyperpage{33} - \item getLocalEnv() (in module src.debug), \hyperpage{36} - \item getroot() (src.ElementTree.ElementTree method), \hyperpage{33} - \item getRootAttrib() (src.xmlManager.ReadXmlFile method), \hyperpage{64} - \item getStrConfigDbg() (in module src.debug), \hyperpage{36} - \item getStrConfigStd() (in module src.debug), \hyperpage{36} - \item getTmpDirDEFAULT() (in module src.test\_module), \hyperpage{64} - \item getToken() (src.pyconf.ConfigReader method), \hyperpage{58} - \item getUnittestLogger() (in module src.logger), \hyperpage{47} - \item git\_extract() (in module src.system), \hyperpage{63} - \item GREEN (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item GREEN (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item GREEN (src.colorama.winterm.WinColor attribute), \hyperpage{32} - \item GREY (src.colorama.winterm.WinColor attribute), \hyperpage{32} - - \indexspace - \bigletter H - \item hack\_libtool() (src.compilation.Builder method), \hyperpage{35} - \item handleMismatch() (src.pyconf.ConfigMerger method), \hyperpage{57} - \item handleRemoveReadonly() (in module src), \hyperpage{68} - - \indexspace - \bigletter I - \item indent() (in module src.debug), \hyperpage{36} - \item indent() (src.options.Options method), \hyperpage{49} - \item init() (in module src.colorama.initialise), \hyperpage{31} - \item install() (src.compilation.Builder method), \hyperpage{35} - \item InStream (class in src.debug), \hyperpage{36} - \item is\_a\_tty() (in module src.colorama.ansitowin32), \hyperpage{31} - \item is\_defined() (src.environment.Environ method), \hyperpage{37} - \item is\_defined() (src.environment.SalomeEnviron method), \hyperpage{38} - \item is\_defined() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item is\_defined() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item is\_defined() (src.fileEnviron.ScreenEnviron method), \hyperpage{45} - \item is\_stream\_closed() (in module src.colorama.ansitowin32), \hyperpage{31} - \item is\_windows() (in module src.architecture), \hyperpage{34} - \item isCurrentLoggerUnittest() (in module src.logger), \hyperpage{48} - \item isdir() (src.Path method), \hyperpage{66} - \item iselement() (in module src.ElementTree), \hyperpage{33} - \item isfile() (src.Path method), \hyperpage{66} - \item islink() (src.Path method), \hyperpage{66} - \item isTypeConfig() (in module src.debug), \hyperpage{36} - \item isWord() (in module src.pyconf), \hyperpage{62} - \item iteritems() (src.pyconf.Mapping method), \hyperpage{60} - \item iterkeys() (src.pyconf.Mapping method), \hyperpage{60} - \item iterparse (class in src.ElementTree), \hyperpage{33} - - \indexspace - \bigletter K - \item keys() (src.pyconf.Mapping method), \hyperpage{60} - - \indexspace - \bigletter L - \item launch\_command() (in module src.fork), \hyperpage{46} - \item LauncherFileEnviron (class in src.fileEnviron), \hyperpage{43} - \item LIGHTBLACK\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTBLACK\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTBLUE\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTBLUE\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTCYAN\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTCYAN\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTGREEN\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTGREEN\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTRED\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTRED\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTWHITE\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTWHITE\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item LIGHTYELLOW\_EX (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item LIGHTYELLOW\_EX (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item list() (src.Path method), \hyperpage{66} - \item list\_log\_file() (in module src.logger), \hyperpage{48} - \item load() (src.pyconf.Config method), \hyperpage{56} - \item load() (src.pyconf.ConfigReader method), \hyperpage{58} - \item load\_cfg\_environment() (src.environment.SalomeEnviron method), \hyperpage{39} - \item load\_environment() (in module src.environment), \hyperpage{40} - \item location() (src.pyconf.ConfigReader method), \hyperpage{58} - \item log() (src.compilation.Builder method), \hyperpage{35} - \item log\_command() (src.compilation.Builder method), \hyperpage{35} - \item Logger (class in src.logger), \hyperpage{47} - - \indexspace - \bigletter M - \item MAGENTA (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item MAGENTA (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item MAGENTA (src.colorama.winterm.WinColor attribute), \hyperpage{32} - \item make() (src.compilation.Builder method), \hyperpage{35} - \item make() (src.Path method), \hyperpage{67} - \item makePath() (in module src.pyconf), \hyperpage{62} - \item Mapping (class in src.pyconf), \hyperpage{60} - \item match() (src.pyconf.ConfigReader method), \hyperpage{58} - \item merge() (src.pyconf.ConfigMerger method), \hyperpage{57} - \item merge\_dicts() (in module src), \hyperpage{68} - \item mergeMapping() (src.pyconf.ConfigMerger method), \hyperpage{57} - \item mergeSequence() (src.pyconf.ConfigMerger method), \hyperpage{58} - \item MyTemplate (class in src.template), \hyperpage{64} - - \indexspace - \bigletter N - \item next() (src.ElementTree.iterparse method), \hyperpage{33} - \item next() (src.pyconf.Sequence.SeqIter method), \hyperpage{61} - \item NORMAL (src.colorama.ansi.AnsiStyle attribute), \hyperpage{30} - \item NORMAL (src.colorama.winterm.WinStyle attribute), \hyperpage{32} - - \indexspace - \bigletter O - \item only\_numbers() (in module src), \hyperpage{68} - \item Options (class in src.options), \hyperpage{49} - \item OptResult (class in src.options), \hyperpage{48} - \item OutStream (class in src.debug), \hyperpage{36} - \item overwriteKeys() (src.pyconf.ConfigMerger method), \hyperpage{58} - \item overwriteMergeResolve() (in module src.pyconf), \hyperpage{62} - - \indexspace - \bigletter P - \item parse() (in module src.ElementTree), \hyperpage{33} - \item parse() (src.ElementTree.ElementTree method), \hyperpage{33} - \item parse\_args() (src.options.Options method), \hyperpage{49} - \item parse\_date() (in module src), \hyperpage{68} - \item parseFactor() (src.pyconf.ConfigReader method), \hyperpage{58} - \item parseKeyValuePair() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseMapping() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseMappingBody() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseReference() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseScalar() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseSequence() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseSuffix() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseTerm() (src.pyconf.ConfigReader method), \hyperpage{59} - \item parseValue() (src.pyconf.ConfigReader method), \hyperpage{59} - \item Path (class in src), \hyperpage{66} - \item pattern (src.template.MyTemplate attribute), \hyperpage{64} - \item PI() (in module src.ElementTree), \hyperpage{33} - \item pop\_debug() (in module src.debug), \hyperpage{36} - \item POS() (src.colorama.ansi.AnsiCursor method), \hyperpage{30} - \item prepare() (src.compilation.Builder method), \hyperpage{35} - \item prepare\_testbase() (src.test\_module.Test method), \hyperpage{64} - \item prepare\_testbase\_from\_dir() (src.test\_module.Test method), \hyperpage{64} - \item prepare\_testbase\_from\_git() (src.test\_module.Test method), \hyperpage{64} - \item prepare\_testbase\_from\_svn() (src.test\_module.Test method), \hyperpage{64} - \item prepend() (src.environment.Environ method), \hyperpage{37} - \item prepend() (src.environment.SalomeEnviron method), \hyperpage{39} - \item prepend() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item prepend() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{44} - \item prepend() (src.fileEnviron.ScreenEnviron method), \hyperpage{46} - \item prepend\_value() (src.environment.Environ method), \hyperpage{37} - \item prepend\_value() (src.fileEnviron.ContextFileEnviron method), \hyperpage{42} - \item prepend\_value() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item prepend\_value() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{45} - \item print\_color\_map() (in module src.printcolors), \hyperpage{49} - \item print\_color\_range() (in module src.printcolors), \hyperpage{50} - \item print\_info() (in module src), \hyperpage{68} - \item print\_value() (in module src.printcolors), \hyperpage{50} - \item printc() (in module src.printcolors), \hyperpage{50} - \item printcError() (in module src.printcolors), \hyperpage{50} - \item printcHeader() (in module src.printcolors), \hyperpage{50} - \item printcHighlight() (in module src.printcolors), \hyperpage{50} - \item printcInfo() (in module src.printcolors), \hyperpage{50} - \item printcLabel() (in module src.printcolors), \hyperpage{51} - \item printcSuccess() (in module src.printcolors), \hyperpage{51} - \item printcWarning() (in module src.printcolors), \hyperpage{51} - \item ProcessingInstruction() (in module src.ElementTree), \hyperpage{33} - \item product\_compiles() (in module src.product), \hyperpage{53} - \item product\_has\_env\_script() (in module src.product), \hyperpage{53} - \item product\_has\_logo() (in module src.product), \hyperpage{53} - \item product\_has\_patches() (in module src.product), \hyperpage{53} - \item product\_has\_salome\_gui() (in module src.product), \hyperpage{53} - \item product\_has\_script() (in module src.product), \hyperpage{53} - \item product\_is\_autotools() (in module src.product), \hyperpage{53} - \item product\_is\_cmake() (in module src.product), \hyperpage{54} - \item product\_is\_cpp() (in module src.product), \hyperpage{54} - \item product\_is\_debug() (in module src.product), \hyperpage{54} - \item product\_is\_dev() (in module src.product), \hyperpage{54} - \item product\_is\_fixed() (in module src.product), \hyperpage{54} - \item product\_is\_generated() (in module src.product), \hyperpage{54} - \item product\_is\_mpi() (in module src.product), \hyperpage{54} - \item product\_is\_native() (in module src.product), \hyperpage{54} - \item product\_is\_salome() (in module src.product), \hyperpage{55} - \item product\_is\_smesh\_plugin() (in module src.product), \hyperpage{55} - \item product\_is\_vcs() (in module src.product), \hyperpage{55} - \item product\_is\_verbose() (in module src.product), \hyperpage{55} - \item push\_debug() (in module src.debug), \hyperpage{36} - \item put\_initial\_xml\_fields() (src.logger.Logger method), \hyperpage{47} - \item put\_txt\_log\_in\_appli\_log\_dir() (src.compilation.Builder method), \hyperpage{35} - - \indexspace - \bigletter Q - \item QName (class in src.ElementTree), \hyperpage{33} - - \indexspace - \bigletter R - \item read() (src.pyconf.ConfigInputStream method), \hyperpage{57} - \item read\_config\_from\_a\_file() (in module src), \hyperpage{68} - \item read\_results() (src.test\_module.Test method), \hyperpage{64} - \item readline() (src.pyconf.ConfigInputStream method), \hyperpage{57} - \item readlink() (src.Path method), \hyperpage{67} - \item ReadXmlFile (class in src.xmlManager), \hyperpage{64} - \item RED (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item RED (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item RED (src.colorama.winterm.WinColor attribute), \hyperpage{32} - \item Reference (class in src.pyconf), \hyperpage{61} - \item reinit() (in module src.colorama.initialise), \hyperpage{31} - \item remove\_item\_from\_list() (in module src), \hyperpage{68} - \item removeNamespace() (src.pyconf.Config method), \hyperpage{57} - \item replace\_in\_file() (in module src), \hyperpage{69} - \item RESET (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item RESET (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item RESET\_ALL (src.colorama.ansi.AnsiStyle attribute), \hyperpage{30} - \item reset\_all() (in module src.colorama.initialise), \hyperpage{31} - \item reset\_all() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item reset\_all() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item resolve() (src.pyconf.Reference method), \hyperpage{61} - \item rm() (src.Path method), \hyperpage{67} - \item run\_all\_tests() (src.test\_module.Test method), \hyperpage{64} - \item run\_env\_script() (src.environment.SalomeEnviron method), \hyperpage{39} - \item run\_env\_script() (src.fileEnviron.ScreenEnviron method), \hyperpage{46} - \item run\_grid\_tests() (src.test\_module.Test method), \hyperpage{64} - \item run\_script() (src.test\_module.Test method), \hyperpage{64} - \item run\_session\_tests() (src.test\_module.Test method), \hyperpage{64} - \item run\_simple\_env\_script() (src.environment.SalomeEnviron method), \hyperpage{39} - \item run\_testbase\_tests() (src.test\_module.Test method), \hyperpage{64} - \item run\_tests() (src.test\_module.Test method), \hyperpage{64} - - \indexspace - \bigletter S - \item SalomeEnviron (class in src.environment), \hyperpage{38} - \item SatException, \hyperpage{67} - \item saveConfigDbg() (in module src.debug), \hyperpage{36} - \item saveConfigStd() (in module src.debug), \hyperpage{36} - \item ScreenEnviron (class in src.fileEnviron), \hyperpage{45} - \item search\_known\_errors() (src.test\_module.Test method), \hyperpage{64} - \item sendMessageToCurrentLogger() (in module src.logger), \hyperpage{48} - \item Sequence (class in src.pyconf), \hyperpage{61} - \item Sequence.SeqIter (class in src.pyconf), \hyperpage{61} - \item set() (src.environment.Environ method), \hyperpage{37} - \item set() (src.environment.SalomeEnviron method), \hyperpage{39} - \item set() (src.fileEnviron.BashFileEnviron method), \hyperpage{40} - \item set() (src.fileEnviron.BatFileEnviron method), \hyperpage{41} - \item set() (src.fileEnviron.ContextFileEnviron method), \hyperpage{42} - \item set() (src.fileEnviron.FileEnviron method), \hyperpage{43} - \item set() (src.fileEnviron.LauncherFileEnviron method), \hyperpage{45} - \item set() (src.fileEnviron.ScreenEnviron method), \hyperpage{46} - \item set\_a\_product() (src.environment.SalomeEnviron method), \hyperpage{39} - \item set\_application\_env() (src.environment.SalomeEnviron method), \hyperpage{39} - \item set\_attrs() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item set\_console() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item set\_cpp\_env() (src.environment.SalomeEnviron method), \hyperpage{39} - \item set\_cursor\_position() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item set\_full\_environ() (src.environment.SalomeEnviron method), \hyperpage{39} - \item set\_products() (src.environment.SalomeEnviron method), \hyperpage{40} - \item set\_python\_libdirs() (src.environment.SalomeEnviron method), \hyperpage{40} - \item set\_salome\_generic\_product\_env() (src.environment.SalomeEnviron method), \hyperpage{40} - \item set\_salome\_minimal\_product\_env() (src.environment.SalomeEnviron method), \hyperpage{40} - \item set\_title() (in module src.colorama.ansi), \hyperpage{30} - \item set\_title() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item SetConsoleTextAttribute() (in module src.colorama.win32), \hyperpage{32} - \item setCurrentLogger() (in module src.logger), \hyperpage{48} - \item setPath() (src.pyconf.Container method), \hyperpage{60} - \item setStream() (src.pyconf.ConfigReader method), \hyperpage{59} - \item Shell (class in src.environment), \hyperpage{40} - \item should\_wrap() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item show\_command\_log() (in module src.logger), \hyperpage{48} - \item show\_in\_editor() (in module src.system), \hyperpage{63} - \item show\_progress() (in module src.fork), \hyperpage{46} - \item smartcopy() (src.Path method), \hyperpage{67} - \item special\_path\_separator() (in module src.fileEnviron), \hyperpage{46} - \item src (module), \hyperpage{66} - \item src.architecture (module), \hyperpage{34} - \item src.colorama (module), \hyperpage{33} - \item src.colorama.ansi (module), \hyperpage{29} - \item src.colorama.ansitowin32 (module), \hyperpage{31} - \item src.colorama.initialise (module), \hyperpage{31} - \item src.colorama.win32 (module), \hyperpage{32} - \item src.colorama.winterm (module), \hyperpage{32} - \item src.compilation (module), \hyperpage{34} - \item src.debug (module), \hyperpage{35} - \item src.ElementTree (module), \hyperpage{33} - \item src.environment (module), \hyperpage{36} - \item src.fileEnviron (module), \hyperpage{40} - \item src.fork (module), \hyperpage{46} - \item src.logger (module), \hyperpage{47} - \item src.options (module), \hyperpage{48} - \item src.printcolors (module), \hyperpage{49} - \item src.product (module), \hyperpage{51} - \item src.pyconf (module), \hyperpage{55} - \item src.system (module), \hyperpage{62} - \item src.template (module), \hyperpage{64} - \item src.test\_module (module), \hyperpage{64} - \item src.xmlManager (module), \hyperpage{64} - \item start() (src.ElementTree.TreeBuilder method), \hyperpage{33} - \item StreamWrapper (class in src.colorama.ansitowin32), \hyperpage{31} - \item style() (src.colorama.winterm.WinTerm method), \hyperpage{32} - \item SubElement() (in module src.ElementTree), \hyperpage{33} - \item substitute() (in module src.template), \hyperpage{64} - \item svn\_extract() (in module src.system), \hyperpage{63} - \item symlink() (src.Path method), \hyperpage{67} - - \indexspace - \bigletter T - \item Test (class in src.test\_module), \hyperpage{64} - \item timedelta\_total\_seconds() (in module src.logger), \hyperpage{48} - \item tofix() (in module src.debug), \hyperpage{36} - \item tostring() (in module src.ElementTree), \hyperpage{33} - \item TreeBuilder (class in src.ElementTree), \hyperpage{33} - - \indexspace - \bigletter U - \item UP() (src.colorama.ansi.AnsiCursor method), \hyperpage{30} - \item update\_hat\_xml() (in module src.logger), \hyperpage{48} - - \indexspace - \bigletter W - \item WHITE (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item WHITE (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item winapi\_test() (in module src.colorama.win32), \hyperpage{32} - \item WinColor (class in src.colorama.winterm), \hyperpage{32} - \item WinStyle (class in src.colorama.winterm), \hyperpage{32} - \item WinTerm (class in src.colorama.winterm), \hyperpage{32} - \item wmake() (src.compilation.Builder method), \hyperpage{35} - \item wrap\_stream() (in module src.colorama.initialise), \hyperpage{31} - \item write() (in module src.debug), \hyperpage{36} - \item write() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item write() (src.colorama.ansitowin32.StreamWrapper method), \hyperpage{31} - \item write() (src.ElementTree.ElementTree method), \hyperpage{33} - \item write() (src.fileEnviron.ScreenEnviron method), \hyperpage{46} - \item write() (src.logger.Logger method), \hyperpage{47} - \item write() (src.pyconf.ConfigOutputStream method), \hyperpage{58} - \item write\_and\_convert() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item write\_back() (in module src.fork), \hyperpage{46} - \item write\_cfgForPy\_file() (src.environment.FileEnvWriter method), \hyperpage{37} - \item write\_env\_file() (src.environment.FileEnvWriter method), \hyperpage{38} - \item write\_plain\_text() (src.colorama.ansitowin32.AnsiToWin32 method), \hyperpage{31} - \item write\_report() (in module src.xmlManager), \hyperpage{66} - \item write\_test\_margin() (src.test\_module.Test method), \hyperpage{64} - \item write\_tree() (src.xmlManager.XmlLogFile method), \hyperpage{65} - \item writeToStream() (src.pyconf.Container method), \hyperpage{60} - \item writeToStream() (src.pyconf.Mapping method), \hyperpage{61} - \item writeToStream() (src.pyconf.Sequence method), \hyperpage{61} - \item writeValue() (src.pyconf.Container method), \hyperpage{60} - - \indexspace - \bigletter X - \item XML() (in module src.ElementTree), \hyperpage{33} - \item XmlLogFile (class in src.xmlManager), \hyperpage{65} - \item XMLTreeBuilder (class in src.ElementTree), \hyperpage{33} - - \indexspace - \bigletter Y - \item YELLOW (src.colorama.ansi.AnsiBack attribute), \hyperpage{29} - \item YELLOW (src.colorama.ansi.AnsiFore attribute), \hyperpage{30} - \item YELLOW (src.colorama.winterm.WinColor attribute), \hyperpage{32} - -\end{sphinxtheindex} diff --git a/doc/build/latex/salomeTools.log b/doc/build/latex/salomeTools.log deleted file mode 100644 index c1ffc99..0000000 --- a/doc/build/latex/salomeTools.log +++ /dev/null @@ -1,1799 +0,0 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2018.4.13) 26 JUN 2018 15:51 -entering extended mode - restricted \write18 enabled. - %&-line parsing enabled. -**salomeTools.tex -(./salomeTools.tex -LaTeX2e <2017-04-15> -Babel <3.18> and hyphenation patterns for 84 language(s) loaded. -(./sphinxmanual.cls -Document Class: sphinxmanual 2017/03/26 v1.6 Document class (Sphinx manual) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/report.cls -Document Class: report 2014/09/29 v1.4h Standard LaTeX document class -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/size10.clo -File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) -) -\c@part=\count79 -\c@chapter=\count80 -\c@section=\count81 -\c@subsection=\count82 -\c@subsubsection=\count83 -\c@paragraph=\count84 -\c@subparagraph=\count85 -\c@figure=\count86 -\c@table=\count87 -\abovecaptionskip=\skip41 -\belowcaptionskip=\skip42 -\bibindent=\dimen102 -)) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/inputenc.st -y -Package: inputenc 2015/03/17 v1.2c Input encoding file -\inpenc@prehook=\toks14 -\inpenc@posthook=\toks15 - (/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/utf8.def -File: utf8.def 2017/01/28 v1.1t UTF-8 support for inputenc -Now handling font encoding OML ... -... no UTF-8 mapping file for font encoding OML -Now handling font encoding T1 ... -... processing UTF-8 mapping file for font encoding T1 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.dfu -File: t1enc.dfu 2017/01/28 v1.1t UTF-8 support for inputenc - defining Unicode char U+00A0 (decimal 160) - defining Unicode char U+00A1 (decimal 161) - defining Unicode char U+00A3 (decimal 163) - defining Unicode char U+00AB (decimal 171) - defining Unicode char U+00AD (decimal 173) - defining Unicode char U+00BB (decimal 187) - defining Unicode char U+00BF (decimal 191) - defining Unicode char U+00C0 (decimal 192) - defining Unicode char U+00C1 (decimal 193) - defining Unicode char U+00C2 (decimal 194) - defining Unicode char U+00C3 (decimal 195) - defining Unicode char U+00C4 (decimal 196) - defining Unicode char U+00C5 (decimal 197) - defining Unicode char U+00C6 (decimal 198) - defining Unicode char U+00C7 (decimal 199) - defining Unicode char U+00C8 (decimal 200) - defining Unicode char U+00C9 (decimal 201) - defining Unicode char U+00CA (decimal 202) - defining Unicode char U+00CB (decimal 203) - defining Unicode char U+00CC (decimal 204) - defining Unicode char U+00CD (decimal 205) - defining Unicode char U+00CE (decimal 206) - defining Unicode char U+00CF (decimal 207) - defining Unicode char U+00D0 (decimal 208) - defining Unicode char U+00D1 (decimal 209) - defining Unicode char U+00D2 (decimal 210) - defining Unicode char U+00D3 (decimal 211) - defining Unicode char U+00D4 (decimal 212) - defining Unicode char U+00D5 (decimal 213) - defining Unicode char U+00D6 (decimal 214) - defining Unicode char U+00D8 (decimal 216) - defining Unicode char U+00D9 (decimal 217) - defining Unicode char U+00DA (decimal 218) - defining Unicode char U+00DB (decimal 219) - defining Unicode char U+00DC (decimal 220) - defining Unicode char U+00DD (decimal 221) - defining Unicode char U+00DE (decimal 222) - defining Unicode char U+00DF (decimal 223) - defining Unicode char U+00E0 (decimal 224) - defining Unicode char U+00E1 (decimal 225) - defining Unicode char U+00E2 (decimal 226) - defining Unicode char U+00E3 (decimal 227) - defining Unicode char U+00E4 (decimal 228) - defining Unicode char U+00E5 (decimal 229) - defining Unicode char U+00E6 (decimal 230) - defining Unicode char U+00E7 (decimal 231) - defining Unicode char U+00E8 (decimal 232) - defining Unicode char U+00E9 (decimal 233) - defining Unicode char U+00EA (decimal 234) - defining Unicode char U+00EB (decimal 235) - defining Unicode char U+00EC (decimal 236) - defining Unicode char U+00ED (decimal 237) - defining Unicode char U+00EE (decimal 238) - defining Unicode char U+00EF (decimal 239) - defining Unicode char U+00F0 (decimal 240) - defining Unicode char U+00F1 (decimal 241) - defining Unicode char U+00F2 (decimal 242) - defining Unicode char U+00F3 (decimal 243) - defining Unicode char U+00F4 (decimal 244) - defining Unicode char U+00F5 (decimal 245) - defining Unicode char U+00F6 (decimal 246) - defining Unicode char U+00F8 (decimal 248) - defining Unicode char U+00F9 (decimal 249) - defining Unicode char U+00FA (decimal 250) - defining Unicode char U+00FB (decimal 251) - defining Unicode char U+00FC (decimal 252) - defining Unicode char U+00FD (decimal 253) - defining Unicode char U+00FE (decimal 254) - defining Unicode char U+00FF (decimal 255) - defining Unicode char U+0100 (decimal 256) - defining Unicode char U+0101 (decimal 257) - defining Unicode char U+0102 (decimal 258) - defining Unicode char U+0103 (decimal 259) - defining Unicode char U+0104 (decimal 260) - defining Unicode char U+0105 (decimal 261) - defining Unicode char U+0106 (decimal 262) - defining Unicode char U+0107 (decimal 263) - defining Unicode char U+0108 (decimal 264) - defining Unicode char U+0109 (decimal 265) - defining Unicode char U+010A (decimal 266) - defining Unicode char U+010B (decimal 267) - defining Unicode char U+010C (decimal 268) - defining Unicode char U+010D (decimal 269) - defining Unicode char U+010E (decimal 270) - defining Unicode char U+010F (decimal 271) - defining Unicode char U+0110 (decimal 272) - defining Unicode char U+0111 (decimal 273) - defining Unicode char U+0112 (decimal 274) - defining Unicode char U+0113 (decimal 275) - defining Unicode char U+0114 (decimal 276) - defining Unicode char U+0115 (decimal 277) - defining Unicode char U+0116 (decimal 278) - defining Unicode char U+0117 (decimal 279) - defining Unicode char U+0118 (decimal 280) - defining Unicode char U+0119 (decimal 281) - defining Unicode char U+011A (decimal 282) - defining Unicode char U+011B (decimal 283) - defining Unicode char U+011C (decimal 284) - defining Unicode char U+011D (decimal 285) - defining Unicode char U+011E (decimal 286) - defining Unicode char U+011F (decimal 287) - defining Unicode char U+0120 (decimal 288) - defining Unicode char U+0121 (decimal 289) - defining Unicode char U+0122 (decimal 290) - defining Unicode char U+0123 (decimal 291) - defining Unicode char U+0124 (decimal 292) - defining Unicode char U+0125 (decimal 293) - defining Unicode char U+0128 (decimal 296) - defining Unicode char U+0129 (decimal 297) - defining Unicode char U+012A (decimal 298) - defining Unicode char U+012B (decimal 299) - defining Unicode char U+012C (decimal 300) - defining Unicode char U+012D (decimal 301) - defining Unicode char U+012E (decimal 302) - defining Unicode char U+012F (decimal 303) - defining Unicode char U+0130 (decimal 304) - defining Unicode char U+0131 (decimal 305) - defining Unicode char U+0132 (decimal 306) - defining Unicode char U+0133 (decimal 307) - defining Unicode char U+0134 (decimal 308) - defining Unicode char U+0135 (decimal 309) - defining Unicode char U+0136 (decimal 310) - defining Unicode char U+0137 (decimal 311) - defining Unicode char U+0139 (decimal 313) - defining Unicode char U+013A (decimal 314) - defining Unicode char U+013B (decimal 315) - defining Unicode char U+013C (decimal 316) - defining Unicode char U+013D (decimal 317) - defining Unicode char U+013E (decimal 318) - defining Unicode char U+0141 (decimal 321) - defining Unicode char U+0142 (decimal 322) - defining Unicode char U+0143 (decimal 323) - defining Unicode char U+0144 (decimal 324) - defining Unicode char U+0145 (decimal 325) - defining Unicode char U+0146 (decimal 326) - defining Unicode char U+0147 (decimal 327) - defining Unicode char U+0148 (decimal 328) - defining Unicode char U+014A (decimal 330) - defining Unicode char U+014B (decimal 331) - defining Unicode char U+014C (decimal 332) - defining Unicode char U+014D (decimal 333) - defining Unicode char U+014E (decimal 334) - defining Unicode char U+014F (decimal 335) - defining Unicode char U+0150 (decimal 336) - defining Unicode char U+0151 (decimal 337) - defining Unicode char U+0152 (decimal 338) - defining Unicode char U+0153 (decimal 339) - defining Unicode char U+0154 (decimal 340) - defining Unicode char U+0155 (decimal 341) - defining Unicode char U+0156 (decimal 342) - defining Unicode char U+0157 (decimal 343) - defining Unicode char U+0158 (decimal 344) - defining Unicode char U+0159 (decimal 345) - defining Unicode char U+015A (decimal 346) - defining Unicode char U+015B (decimal 347) - defining Unicode char U+015C (decimal 348) - defining Unicode char U+015D (decimal 349) - defining Unicode char U+015E (decimal 350) - defining Unicode char U+015F (decimal 351) - defining Unicode char U+0160 (decimal 352) - defining Unicode char U+0161 (decimal 353) - defining Unicode char U+0162 (decimal 354) - defining Unicode char U+0163 (decimal 355) - defining Unicode char U+0164 (decimal 356) - defining Unicode char U+0165 (decimal 357) - defining Unicode char U+0168 (decimal 360) - defining Unicode char U+0169 (decimal 361) - defining Unicode char U+016A (decimal 362) - defining Unicode char U+016B (decimal 363) - defining Unicode char U+016C (decimal 364) - defining Unicode char U+016D (decimal 365) - defining Unicode char U+016E (decimal 366) - defining Unicode char U+016F (decimal 367) - defining Unicode char U+0170 (decimal 368) - defining Unicode char U+0171 (decimal 369) - defining Unicode char U+0172 (decimal 370) - defining Unicode char U+0173 (decimal 371) - defining Unicode char U+0174 (decimal 372) - defining Unicode char U+0175 (decimal 373) - defining Unicode char U+0176 (decimal 374) - defining Unicode char U+0177 (decimal 375) - defining Unicode char U+0178 (decimal 376) - defining Unicode char U+0179 (decimal 377) - defining Unicode char U+017A (decimal 378) - defining Unicode char U+017B (decimal 379) - defining Unicode char U+017C (decimal 380) - defining Unicode char U+017D (decimal 381) - defining Unicode char U+017E (decimal 382) - defining Unicode char U+01CD (decimal 461) - defining Unicode char U+01CE (decimal 462) - defining Unicode char U+01CF (decimal 463) - defining Unicode char U+01D0 (decimal 464) - defining Unicode char U+01D1 (decimal 465) - defining Unicode char U+01D2 (decimal 466) - defining Unicode char U+01D3 (decimal 467) - defining Unicode char U+01D4 (decimal 468) - defining Unicode char U+01E2 (decimal 482) - defining Unicode char U+01E3 (decimal 483) - defining Unicode char U+01E6 (decimal 486) - defining Unicode char U+01E7 (decimal 487) - defining Unicode char U+01E8 (decimal 488) - defining Unicode char U+01E9 (decimal 489) - defining Unicode char U+01EA (decimal 490) - defining Unicode char U+01EB (decimal 491) - defining Unicode char U+01F0 (decimal 496) - defining Unicode char U+01F4 (decimal 500) - defining Unicode char U+01F5 (decimal 501) - defining Unicode char U+0218 (decimal 536) - defining Unicode char U+0219 (decimal 537) - defining Unicode char U+021A (decimal 538) - defining Unicode char U+021B (decimal 539) - defining Unicode char U+0232 (decimal 562) - defining Unicode char U+0233 (decimal 563) - defining Unicode char U+1E02 (decimal 7682) - defining Unicode char U+1E03 (decimal 7683) - defining Unicode char U+200C (decimal 8204) - defining Unicode char U+2010 (decimal 8208) - defining Unicode char U+2011 (decimal 8209) - defining Unicode char U+2012 (decimal 8210) - defining Unicode char U+2013 (decimal 8211) - defining Unicode char U+2014 (decimal 8212) - defining Unicode char U+2015 (decimal 8213) - defining Unicode char U+2018 (decimal 8216) - defining Unicode char U+2019 (decimal 8217) - defining Unicode char U+201A (decimal 8218) - defining Unicode char U+201C (decimal 8220) - defining Unicode char U+201D (decimal 8221) - defining Unicode char U+201E (decimal 8222) - defining Unicode char U+2030 (decimal 8240) - defining Unicode char U+2031 (decimal 8241) - defining Unicode char U+2039 (decimal 8249) - defining Unicode char U+203A (decimal 8250) - defining Unicode char U+2423 (decimal 9251) - defining Unicode char U+1E20 (decimal 7712) - defining Unicode char U+1E21 (decimal 7713) -) -Now handling font encoding OT1 ... -... processing UTF-8 mapping file for font encoding OT1 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ot1enc.dfu -File: ot1enc.dfu 2017/01/28 v1.1t UTF-8 support for inputenc - defining Unicode char U+00A0 (decimal 160) - defining Unicode char U+00A1 (decimal 161) - defining Unicode char U+00A3 (decimal 163) - defining Unicode char U+00AD (decimal 173) - defining Unicode char U+00B8 (decimal 184) - defining Unicode char U+00BF (decimal 191) - defining Unicode char U+00C5 (decimal 197) - defining Unicode char U+00C6 (decimal 198) - defining Unicode char U+00D8 (decimal 216) - defining Unicode char U+00DF (decimal 223) - defining Unicode char U+00E6 (decimal 230) - defining Unicode char U+00EC (decimal 236) - defining Unicode char U+00ED (decimal 237) - defining Unicode char U+00EE (decimal 238) - defining Unicode char U+00EF (decimal 239) - defining Unicode char U+00F8 (decimal 248) - defining Unicode char U+0131 (decimal 305) - defining Unicode char U+0141 (decimal 321) - defining Unicode char U+0142 (decimal 322) - defining Unicode char U+0152 (decimal 338) - defining Unicode char U+0153 (decimal 339) - defining Unicode char U+0174 (decimal 372) - defining Unicode char U+0175 (decimal 373) - defining Unicode char U+0176 (decimal 374) - defining Unicode char U+0177 (decimal 375) - defining Unicode char U+0218 (decimal 536) - defining Unicode char U+0219 (decimal 537) - defining Unicode char U+021A (decimal 538) - defining Unicode char U+021B (decimal 539) - defining Unicode char U+2013 (decimal 8211) - defining Unicode char U+2014 (decimal 8212) - defining Unicode char U+2018 (decimal 8216) - defining Unicode char U+2019 (decimal 8217) - defining Unicode char U+201C (decimal 8220) - defining Unicode char U+201D (decimal 8221) -) -Now handling font encoding OMS ... -... processing UTF-8 mapping file for font encoding OMS -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/omsenc.dfu -File: omsenc.dfu 2017/01/28 v1.1t UTF-8 support for inputenc - defining Unicode char U+00A7 (decimal 167) - defining Unicode char U+00B6 (decimal 182) - defining Unicode char U+00B7 (decimal 183) - defining Unicode char U+2020 (decimal 8224) - defining Unicode char U+2021 (decimal 8225) - defining Unicode char U+2022 (decimal 8226) -) -Now handling font encoding OMX ... -... no UTF-8 mapping file for font encoding OMX -Now handling font encoding U ... -... no UTF-8 mapping file for font encoding U - defining Unicode char U+00A9 (decimal 169) - defining Unicode char U+00AA (decimal 170) - defining Unicode char U+00AE (decimal 174) - defining Unicode char U+00BA (decimal 186) - defining Unicode char U+02C6 (decimal 710) - defining Unicode char U+02DC (decimal 732) - defining Unicode char U+200C (decimal 8204) - defining Unicode char U+2026 (decimal 8230) - defining Unicode char U+2122 (decimal 8482) - defining Unicode char U+2423 (decimal 9251) -)) - defining Unicode char U+00A0 (decimal 160) - defining Unicode char U+2500 (decimal 9472) - defining Unicode char U+2502 (decimal 9474) - defining Unicode char U+2514 (decimal 9492) - defining Unicode char U+251C (decimal 9500) - defining Unicode char U+2572 (decimal 9586) - (/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/cmap/cmap.sty -Package: cmap 2008/03/06 v1.0h CMap support: searchable PDF -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty -Package: fontenc 2017/04/05 v2.0i Standard LaTeX package -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/t1enc.def -File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file -LaTeX Font Info: Redeclaring font encoding T1 on input line 48. -)<>) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath. -sty -Package: amsmath 2017/09/02 v2.17a AMS math features -\@mathmargin=\skip43 - -For additional information on amsmath, use the `?' option. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amstext. -sty -Package: amstext 2000/06/29 v2.01 AMS text - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.s -ty -File: amsgen.sty 1999/11/30 v2.0 generic functions -\@emptytoks=\toks16 -\ex@=\dimen103 -)) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.s -ty -Package: amsbsy 1999/11/29 v1.2d Bold Symbols -\pmbraise@=\dimen104 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.s -ty -Package: amsopn 2016/03/08 v2.02 operator names -) -\inf@bad=\count88 -LaTeX Info: Redefining \frac on input line 213. -\uproot@=\count89 -\leftroot@=\count90 -LaTeX Info: Redefining \overline on input line 375. -\classnum@=\count91 -\DOTSCASE@=\count92 -LaTeX Info: Redefining \ldots on input line 472. -LaTeX Info: Redefining \dots on input line 475. -LaTeX Info: Redefining \cdots on input line 596. -\Mathstrutbox@=\box26 -\strutbox@=\box27 -\big@size=\dimen105 -LaTeX Font Info: Redeclaring font encoding OML on input line 712. -LaTeX Font Info: Redeclaring font encoding OMS on input line 713. -\macc@depth=\count93 -\c@MaxMatrixCols=\count94 -\dotsspace@=\muskip10 -\c@parentequation=\count95 -\dspbrk@lvl=\count96 -\tag@help=\toks17 -\row@=\count97 -\column@=\count98 -\maxfields@=\count99 -\andhelp@=\toks18 -\eqnshift@=\dimen106 -\alignsep@=\dimen107 -\tagshift@=\dimen108 -\tagwidth@=\dimen109 -\totwidth@=\dimen110 -\lineht@=\dimen111 -\@envbody=\toks19 -\multlinegap=\skip44 -\multlinetaggap=\skip45 -\mathdisplay@stack=\toks20 -LaTeX Info: Redefining \[ on input line 2817. -LaTeX Info: Redefining \] on input line 2818. -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amssymb -.sty -Package: amssymb 2013/01/14 v3.01 AMS font symbols - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfont -s.sty -Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support -\symAMSa=\mathgroup4 -\symAMSb=\mathgroup5 -LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold' -(Font) U/euf/m/n --> U/euf/b/n on input line 106. -)) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.st -y -Package: babel 2018/02/14 3.18 The Babel package - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/switch.d -ef -File: switch.def 2018/02/14 3.18 Babel switching mechanism -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel-english/ -english.ldf -Language: english 2017/06/06 v3.3r English support from the babel system - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/babel.de -f -File: babel.def 2018/02/14 3.18 Babel common definitions -\babel@savecnt=\count100 -\U@D=\dimen112 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/babel/txtbabel -.def) -\bbl@dirlevel=\count101 -) -\l@canadian = a dialect from \language\l@american -\l@australian = a dialect from \language\l@british -\l@newzealand = a dialect from \language\l@british -)) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/times.sty -Package: times 2005/04/12 PSNFSS-v9.2a (SPQR) -) (./fncychap.sty -Package: fncychap 2007/07/30 v1.34 LaTeX package (Revised chapters) -\RW=\skip46 -\mylen=\skip47 -\myhi=\skip48 -\px=\skip49 -\py=\skip50 -\pyy=\skip51 -\pxx=\skip52 -\c@AlphaCnt=\count102 -\c@AlphaDecCnt=\count103 -) (./sphinx.sty -Package: sphinx 2018/03/11 v1.7.2 LaTeX package (Sphinx markup) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcm -ds.sty -Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphic -x.sty -Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/keyval. -sty -Package: keyval 2014/10/28 v1.15 key=value parser (DPC) -\KV@toks@=\toks21 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/graphic -s.sty -Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics/trig.st -y -Package: trig 2016/01/03 v1.10 sin cos tan (DPC) -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/gra -phics.cfg -File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration -) -Package graphics Info: Driver file: pdftex.def on input line 99. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-def/pdf -tex.def -File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex -)) -\Gin@req@height=\dimen113 -\Gin@req@width=\dimen114 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhd -r.sty -Package: fancyhdr 2017/06/30 v3.9a Extensive control of page headers and footer -s -\f@nch@headwidth=\skip53 -\f@nch@O@elh=\skip54 -\f@nch@O@erh=\skip55 -\f@nch@O@olh=\skip56 -\f@nch@O@orh=\skip57 -\f@nch@O@elf=\skip58 -\f@nch@O@erf=\skip59 -\f@nch@O@olf=\skip60 -\f@nch@O@orf=\skip61 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/textcomp.st -y -Package: textcomp 2017/04/05 v2.0i Standard LaTeX package -Package textcomp Info: Sub-encoding information: -(textcomp) 5 = only ISO-Adobe without \textcurrency -(textcomp) 4 = 5 + \texteuro -(textcomp) 3 = 4 + \textohm -(textcomp) 2 = 3 + \textestimated + \textcurrency -(textcomp) 1 = TS1 - \textcircled - \t -(textcomp) 0 = TS1 (full) -(textcomp) Font families with sub-encoding setting implement -(textcomp) only a restricted character set as indicated. -(textcomp) Family '?' is the default used for unknown fonts. -(textcomp) See the documentation for details. -Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 79. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def -File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file -Now handling font encoding TS1 ... -... processing UTF-8 mapping file for font encoding TS1 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1enc.dfu -File: ts1enc.dfu 2017/01/28 v1.1t UTF-8 support for inputenc - defining Unicode char U+00A2 (decimal 162) - defining Unicode char U+00A3 (decimal 163) - defining Unicode char U+00A4 (decimal 164) - defining Unicode char U+00A5 (decimal 165) - defining Unicode char U+00A6 (decimal 166) - defining Unicode char U+00A7 (decimal 167) - defining Unicode char U+00A8 (decimal 168) - defining Unicode char U+00A9 (decimal 169) - defining Unicode char U+00AA (decimal 170) - defining Unicode char U+00AC (decimal 172) - defining Unicode char U+00AE (decimal 174) - defining Unicode char U+00AF (decimal 175) - defining Unicode char U+00B0 (decimal 176) - defining Unicode char U+00B1 (decimal 177) - defining Unicode char U+00B2 (decimal 178) - defining Unicode char U+00B3 (decimal 179) - defining Unicode char U+00B4 (decimal 180) - defining Unicode char U+00B5 (decimal 181) - defining Unicode char U+00B6 (decimal 182) - defining Unicode char U+00B7 (decimal 183) - defining Unicode char U+00B9 (decimal 185) - defining Unicode char U+00BA (decimal 186) - defining Unicode char U+00BC (decimal 188) - defining Unicode char U+00BD (decimal 189) - defining Unicode char U+00BE (decimal 190) - defining Unicode char U+00D7 (decimal 215) - defining Unicode char U+00F7 (decimal 247) - defining Unicode char U+0192 (decimal 402) - defining Unicode char U+02C7 (decimal 711) - defining Unicode char U+02D8 (decimal 728) - defining Unicode char U+02DD (decimal 733) - defining Unicode char U+0E3F (decimal 3647) - defining Unicode char U+2016 (decimal 8214) - defining Unicode char U+2020 (decimal 8224) - defining Unicode char U+2021 (decimal 8225) - defining Unicode char U+2022 (decimal 8226) - defining Unicode char U+2030 (decimal 8240) - defining Unicode char U+2031 (decimal 8241) - defining Unicode char U+203B (decimal 8251) - defining Unicode char U+203D (decimal 8253) - defining Unicode char U+2044 (decimal 8260) - defining Unicode char U+204E (decimal 8270) - defining Unicode char U+2052 (decimal 8274) - defining Unicode char U+20A1 (decimal 8353) - defining Unicode char U+20A4 (decimal 8356) - defining Unicode char U+20A6 (decimal 8358) - defining Unicode char U+20A9 (decimal 8361) - defining Unicode char U+20AB (decimal 8363) - defining Unicode char U+20AC (decimal 8364) - defining Unicode char U+20B1 (decimal 8369) - defining Unicode char U+2103 (decimal 8451) - defining Unicode char U+2116 (decimal 8470) - defining Unicode char U+2117 (decimal 8471) - defining Unicode char U+211E (decimal 8478) - defining Unicode char U+2120 (decimal 8480) - defining Unicode char U+2122 (decimal 8482) - defining Unicode char U+2126 (decimal 8486) - defining Unicode char U+2127 (decimal 8487) - defining Unicode char U+212E (decimal 8494) - defining Unicode char U+2190 (decimal 8592) - defining Unicode char U+2191 (decimal 8593) - defining Unicode char U+2192 (decimal 8594) - defining Unicode char U+2193 (decimal 8595) - defining Unicode char U+2329 (decimal 9001) - defining Unicode char U+232A (decimal 9002) - defining Unicode char U+2422 (decimal 9250) - defining Unicode char U+25E6 (decimal 9702) - defining Unicode char U+25EF (decimal 9711) - defining Unicode char U+266A (decimal 9834) -)) -LaTeX Info: Redefining \oldstylenums on input line 334. -Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 349. -Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 350. -Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input line 351. -Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on input line 352. -Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 353. -Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input line 354. -Package textcomp Info: Setting ccr sub-encoding to TS1/0 on input line 355. -Package textcomp Info: Setting ptm sub-encoding to TS1/4 on input line 356. -Package textcomp Info: Setting pcr sub-encoding to TS1/4 on input line 357. -Package textcomp Info: Setting phv sub-encoding to TS1/4 on input line 358. -Package textcomp Info: Setting ppl sub-encoding to TS1/3 on input line 359. -Package textcomp Info: Setting pag sub-encoding to TS1/4 on input line 360. -Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input line 361. -Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input line 362. -Package textcomp Info: Setting pzc sub-encoding to TS1/4 on input line 363. -Package textcomp Info: Setting bch sub-encoding to TS1/4 on input line 364. -Package textcomp Info: Setting put sub-encoding to TS1/5 on input line 365. -Package textcomp Info: Setting uag sub-encoding to TS1/5 on input line 366. -Package textcomp Info: Setting ugq sub-encoding to TS1/5 on input line 367. -Package textcomp Info: Setting ul8 sub-encoding to TS1/4 on input line 368. -Package textcomp Info: Setting ul9 sub-encoding to TS1/4 on input line 369. -Package textcomp Info: Setting augie sub-encoding to TS1/5 on input line 370. -Package textcomp Info: Setting dayrom sub-encoding to TS1/3 on input line 371. -Package textcomp Info: Setting dayroms sub-encoding to TS1/3 on input line 372. - -Package textcomp Info: Setting pxr sub-encoding to TS1/0 on input line 373. -Package textcomp Info: Setting pxss sub-encoding to TS1/0 on input line 374. -Package textcomp Info: Setting pxtt sub-encoding to TS1/0 on input line 375. -Package textcomp Info: Setting txr sub-encoding to TS1/0 on input line 376. -Package textcomp Info: Setting txss sub-encoding to TS1/0 on input line 377. -Package textcomp Info: Setting txtt sub-encoding to TS1/0 on input line 378. -Package textcomp Info: Setting lmr sub-encoding to TS1/0 on input line 379. -Package textcomp Info: Setting lmdh sub-encoding to TS1/0 on input line 380. -Package textcomp Info: Setting lmss sub-encoding to TS1/0 on input line 381. -Package textcomp Info: Setting lmssq sub-encoding to TS1/0 on input line 382. -Package textcomp Info: Setting lmvtt sub-encoding to TS1/0 on input line 383. -Package textcomp Info: Setting lmtt sub-encoding to TS1/0 on input line 384. -Package textcomp Info: Setting qhv sub-encoding to TS1/0 on input line 385. -Package textcomp Info: Setting qag sub-encoding to TS1/0 on input line 386. -Package textcomp Info: Setting qbk sub-encoding to TS1/0 on input line 387. -Package textcomp Info: Setting qcr sub-encoding to TS1/0 on input line 388. -Package textcomp Info: Setting qcs sub-encoding to TS1/0 on input line 389. -Package textcomp Info: Setting qpl sub-encoding to TS1/0 on input line 390. -Package textcomp Info: Setting qtm sub-encoding to TS1/0 on input line 391. -Package textcomp Info: Setting qzc sub-encoding to TS1/0 on input line 392. -Package textcomp Info: Setting qhvc sub-encoding to TS1/0 on input line 393. -Package textcomp Info: Setting futs sub-encoding to TS1/4 on input line 394. -Package textcomp Info: Setting futx sub-encoding to TS1/4 on input line 395. -Package textcomp Info: Setting futj sub-encoding to TS1/4 on input line 396. -Package textcomp Info: Setting hlh sub-encoding to TS1/3 on input line 397. -Package textcomp Info: Setting hls sub-encoding to TS1/3 on input line 398. -Package textcomp Info: Setting hlst sub-encoding to TS1/3 on input line 399. -Package textcomp Info: Setting hlct sub-encoding to TS1/5 on input line 400. -Package textcomp Info: Setting hlx sub-encoding to TS1/5 on input line 401. -Package textcomp Info: Setting hlce sub-encoding to TS1/5 on input line 402. -Package textcomp Info: Setting hlcn sub-encoding to TS1/5 on input line 403. -Package textcomp Info: Setting hlcw sub-encoding to TS1/5 on input line 404. -Package textcomp Info: Setting hlcf sub-encoding to TS1/5 on input line 405. -Package textcomp Info: Setting pplx sub-encoding to TS1/3 on input line 406. -Package textcomp Info: Setting pplj sub-encoding to TS1/3 on input line 407. -Package textcomp Info: Setting ptmx sub-encoding to TS1/4 on input line 408. -Package textcomp Info: Setting ptmj sub-encoding to TS1/4 on input line 409. -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/titlesec/titlese -c.sty -Package: titlesec 2016/03/21 v2.10.2 Sectioning titles -\ttl@box=\box28 -\beforetitleunit=\skip62 -\aftertitleunit=\skip63 -\ttl@plus=\dimen115 -\ttl@minus=\dimen116 -\ttl@toksa=\toks22 -\titlewidth=\dimen117 -\titlewidthlast=\dimen118 -\titlewidthfirst=\dimen119 -) (./tabulary.sty -Package: tabulary 2007/10/02 v0.9 tabulary package (DPC) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/array.sty -Package: array 2016/10/06 v2.4d Tabular extension package (FMi) -\col@sep=\dimen120 -\extrarowheight=\dimen121 -\NC@list=\toks23 -\extratabsurround=\skip64 -\backup@length=\skip65 -) -\TY@count=\count104 -\TY@linewidth=\dimen122 -\tymin=\dimen123 -\tymax=\dimen124 -\TY@tablewidth=\dimen125 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/tools/longtable. -sty -Package: longtable 2014/10/28 v4.11 Multi-page Table package (DPC) -\LTleft=\skip66 -\LTright=\skip67 -\LTpre=\skip68 -\LTpost=\skip69 -\LTchunksize=\count105 -\LTcapwidth=\dimen126 -\LT@head=\box29 -\LT@firsthead=\box30 -\LT@foot=\box31 -\LT@lastfoot=\box32 -\LT@cols=\count106 -\LT@rows=\count107 -\c@LT@tables=\count108 -\c@LT@chunks=\count109 -\LT@p@ftn=\toks24 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/varwidth/varwidt -h.sty -Package: varwidth 2009/03/30 ver 0.92; Variable-width minipages -\@vwid@box=\box33 -\sift@deathcycles=\count110 -\@vwid@loff=\dimen127 -\@vwid@roff=\dimen128 -) (./sphinxmulticell.sty -Package: sphinxmulticell 2017/02/23 v1.6 better span rows and columns of a tabl -e (Sphinx team) -\sphinx@TY@tablewidth=\dimen129 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/makeidx.sty -Package: makeidx 2014/09/29 v1.0m Standard LaTeX package -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/framed/framed.st -y -Package: framed 2011/10/22 v 0.96: framed or shaded text with page breaks -\OuterFrameSep=\skip70 -\fb@frw=\dimen130 -\fb@frh=\dimen131 -\FrameRule=\dimen132 -\FrameSep=\dimen133 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.st -y -Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/graphics-cfg/col -or.cfg -File: color.cfg 2016/01/02 v1.6 sample color configuration -) -Package xcolor Info: Driver file: pdftex.def on input line 225. -Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348. -Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352. -Package xcolor Info: Model `RGB' extended on input line 1364. -Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366. -Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367. -Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368. -Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369. -Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370. -Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371. -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/fancyvrb/fancyvr -b.sty -Package: fancyvrb 2008/02/07 - -Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix -<2008/02/07> (tvz) -\FV@CodeLineNo=\count111 -\FV@InFile=\read1 -\FV@TabBox=\box34 -\c@FancyVerbLine=\count112 -\FV@StepNumber=\count113 -\FV@OutFile=\write3 -) (./footnotehyper-sphinx.sty -Package: footnotehyper-sphinx 2017/10/27 v1.7 hyperref aware footnote.sty for s -phinx (JFB) -\FNH@notes=\box35 -\FNH@width=\dimen134 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/float/float.sty -Package: float 2001/11/08 v1.3d Float enhancements (AL) -\c@float@type=\count114 -\float@exts=\toks25 -\float@box=\box36 -\@float@everytoks=\toks26 -\@floatcapt=\box37 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/wrapfig/wrapfig. -sty -\wrapoverhang=\dimen135 -\WF@size=\dimen136 -\c@WF@wrappedlines=\count115 -\WF@box=\box38 -\WF@everypar=\toks27 -Package: wrapfig 2003/01/31 v 3.6 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/parskip/parskip. -sty -Package: parskip 2001/04/09 non-zero parskip adjustments -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/alltt.sty -Package: alltt 1997/06/16 v2.0g defines alltt environment -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/upquote/upquote. -sty -Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba -tim -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/capt-of/capt-of. -sty -Package: capt-of 2009/12/29 v0.2 standard captions outside of floats -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/needspace/needsp -ace.sty -Package: needspace 2010/09/12 v1.3d reserve vertical space -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/carlisle/remrese -t.sty) (./sphinxhighlight.sty -Package: sphinxhighlight 2016/05/29 stylesheet for highlighting with pygments -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptio -ns.sty -Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/kvset -keys.sty -Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/infwa -rerr.sty -Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO) -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/etexc -mds.sty -Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/iflua -tex.sty -Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO) -Package ifluatex Info: LuaTeX not detected. -) -Package etexcmds Info: Could not find \expanded. -(etexcmds) That can mean that you are not using pdfTeX 1.50 or -(etexcmds) that some package has redefined \expanded. -(etexcmds) In the latter case, load this package earlier. -))) -\sphinxverbatimsep=\dimen137 -\sphinxverbatimborder=\dimen138 -\sphinxshadowsep=\dimen139 -\sphinxshadowsize=\dimen140 -\sphinxshadowrule=\dimen141 -\spx@notice@border=\dimen142 -\spx@image@box=\box39 -\c@literalblock=\count116 -\sphinxcontinuationbox=\box40 -\sphinxvisiblespacebox=\box41 -\sphinxVerbatim@TitleBox=\box42 -\py@argswidth=\skip71 -\lineblockindentation=\skip72 -\DUlineblockindent=\skip73 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/geometry/geometr -y.sty -Package: geometry 2010/09/12 v5.6 Page Geometry - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf -.sty -Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvte -x.sty -Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO) -Package ifvtex Info: VTeX not detected. -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxete -x.sty -Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional -) -\Gm@cnth=\count117 -\Gm@cntv=\count118 -\c@Gm@tempcnt=\count119 -\Gm@bindingoffset=\dimen143 -\Gm@wd@mp=\dimen144 -\Gm@odd@mp=\dimen145 -\Gm@even@mp=\dimen146 -\Gm@layoutwidth=\dimen147 -\Gm@layoutheight=\dimen148 -\Gm@layouthoffset=\dimen149 -\Gm@layoutvoffset=\dimen150 -\Gm@dimlist=\toks28 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hyperre -f.sty -Package: hyperref 2018/02/06 v6.86b Hypertext links for LaTeX - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsu -b-hyperref.sty -Package: hobsub-hyperref 2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO) - - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsu -b-generic.sty -Package: hobsub-generic 2016/05/16 v1.14 Bundle oberdiek, subset generic (HO) -Package: hobsub 2016/05/16 v1.14 Construct package bundles (HO) -Package hobsub Info: Skipping package `infwarerr' (already loaded). -Package hobsub Info: Skipping package `ltxcmds' (already loaded). -Package hobsub Info: Skipping package `ifluatex' (already loaded). -Package hobsub Info: Skipping package `ifvtex' (already loaded). -Package: intcalc 2016/05/16 v1.2 Expandable calculations with integers (HO) -Package hobsub Info: Skipping package `ifpdf' (already loaded). -Package hobsub Info: Skipping package `etexcmds' (already loaded). -Package hobsub Info: Skipping package `kvsetkeys' (already loaded). -Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO) -Package: pdftexcmds 2018/01/21 v0.26 Utility functions of pdfTeX for LuaTeX (HO -) -Package pdftexcmds Info: LuaTeX not detected. -Package pdftexcmds Info: \pdf@primitive is available. -Package pdftexcmds Info: \pdf@ifprimitive is available. -Package pdftexcmds Info: \pdfdraftmode found. -Package: pdfescape 2016/05/16 v1.14 Implements pdfTeX's escape features (HO) -Package: bigintcalc 2016/05/16 v1.4 Expandable calculations on big integers (HO -) -Package: bitset 2016/05/16 v1.2 Handle bit-vector datatype (HO) -Package: uniquecounter 2016/05/16 v1.3 Provide unlimited unique counter (HO) -) -Package hobsub Info: Skipping package `hobsub' (already loaded). -Package: letltxmacro 2016/05/16 v1.5 Let assignment for LaTeX macros (HO) -Package: hopatch 2016/05/16 v1.3 Wrapper for package hooks (HO) -Package: xcolor-patch 2016/05/16 xcolor patch -Package: atveryend 2016/05/16 v1.9 Hooks at the very end of document (HO) -Package atveryend Info: \enddocument detected (standard20110627). -Package: atbegshi 2016/06/09 v1.18 At begin shipout hook (HO) -Package: refcount 2016/05/16 v3.5 Data extraction from label references (HO) -Package: hycolor 2016/05/16 v1.8 Color options for hyperref/bookmark (HO) -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook -.sty -Package: auxhook 2016/05/16 v1.4 Hooks for auxiliary files (HO) -) -\@linkdim=\dimen151 -\Hy@linkcounter=\count120 -\Hy@pagecounter=\count121 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc. -def -File: pd1enc.def 2018/02/06 v6.86b Hyperref: PDFDocEncoding definition (HO) -Now handling font encoding PD1 ... -... no UTF-8 mapping file for font encoding PD1 -) -\Hy@SavedSpaceFactor=\count122 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/hype -rref.cfg -File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive -) -Package hyperref Info: Option `unicode' set `true' on input line 4383. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/puenc.d -ef -File: puenc.def 2018/02/06 v6.86b Hyperref: PDF Unicode definition (HO) -Now handling font encoding PU ... -... no UTF-8 mapping file for font encoding PU -) -Package hyperref Info: Option `colorlinks' set `true' on input line 4383. -Package hyperref Info: Option `breaklinks' set `true' on input line 4383. -Package hyperref Info: Hyper figures OFF on input line 4509. -Package hyperref Info: Link nesting OFF on input line 4514. -Package hyperref Info: Hyper index ON on input line 4517. -Package hyperref Info: Plain pages OFF on input line 4524. -Package hyperref Info: Backreferencing OFF on input line 4529. -Package hyperref Info: Implicit mode ON; LaTeX internals redefined. -Package hyperref Info: Bookmarks ON on input line 4762. -\c@Hy@tempcnt=\count123 - (/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/url/url.sty -\Urlmuskip=\muskip11 -Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. -) -LaTeX Info: Redefining \url on input line 5115. -\XeTeXLinkMargin=\dimen152 -\Fld@menulength=\count124 -\Field@Width=\dimen153 -\Fld@charsize=\dimen154 -Package hyperref Info: Hyper figures OFF on input line 6369. -Package hyperref Info: Link nesting OFF on input line 6374. -Package hyperref Info: Hyper index ON on input line 6377. -Package hyperref Info: backreferencing OFF on input line 6384. -Package hyperref Info: Link coloring ON on input line 6387. -Package hyperref Info: Link coloring with OCG OFF on input line 6394. -Package hyperref Info: PDF/A mode OFF on input line 6399. -LaTeX Info: Redefining \ref on input line 6439. -LaTeX Info: Redefining \pageref on input line 6443. -\Hy@abspage=\count125 -\c@Item=\count126 -\c@Hfootnote=\count127 -) -Package hyperref Info: Driver (autodetected): hpdftex. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex -.def -File: hpdftex.def 2018/02/06 v6.86b Hyperref driver for pdfTeX -\Fld@listcount=\count128 -\c@bookmark@seq@number=\count129 - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfi -lecheck.sty -Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO) -Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 -82. -) -\Hy@SectionHShift=\skip74 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/hypcap. -sty -Package: hypcap 2016/05/16 v1.12 Adjusting the anchors of captions (HO) -) -\@indexfile=\write4 -\openout4 = `salomeTools.idx'. - - -Writing index file salomeTools.idx -(./salomeTools.aux) -\openout1 = `salomeTools.aux'. - -LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 65. -LaTeX Font Info: Try loading font information for TS1+cmr on input line 65. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/base/ts1cmr.fd -File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions -) -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 65. -LaTeX Font Info: ... okay on input line 65. -LaTeX Font Info: Try loading font information for T1+ptm on input line 65. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1ptm.fd -File: t1ptm.fd 2001/06/04 font definitions for T1/ptm. -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/context/base/mkii/supp --pdf.mkii -[Loading MPS to PDF converter (version 2006.09.02).] -\scratchcounter=\count130 -\scratchdimen=\dimen155 -\scratchbox=\box43 -\nofMPsegments=\count131 -\nofMParguments=\count132 -\everyMPshowfont=\toks29 -\MPscratchCnt=\count133 -\MPscratchDim=\dimen156 -\MPnumerator=\count134 -\makeMPintoPDFobject=\count135 -\everyMPtoPDFconversion=\toks30 -) -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopd -f-base.sty -Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext. -sty -Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO) -) -Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 -38. -Package grfext Info: Graphics extension search list: -(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE -G,.JBIG2,.JB2,.eps] -(grfext) \AppendGraphicsExtensions on input line 456. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/latexconfig/epst -opdf-sys.cfg -File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv -e -)) -*geometry* driver: auto-detecting -*geometry* detected driver: pdftex -*geometry* verbose mode - [ preamble ] result: -* driver: pdftex -* paper: a4paper -* layout: -* layoutoffset:(h,v)=(0.0pt,0.0pt) -* modes: twoside -* h-part:(L,W,R)=(72.26999pt, 452.9679pt, 72.26999pt) -* v-part:(T,H,B)=(72.26999pt, 700.50687pt, 72.26999pt) -* \paperwidth=597.50787pt -* \paperheight=845.04684pt -* \textwidth=452.9679pt -* \textheight=700.50687pt -* \oddsidemargin=0.0pt -* \evensidemargin=0.0pt -* \topmargin=-37.0pt -* \headheight=12.0pt -* \headsep=25.0pt -* \topskip=10.0pt -* \footskip=30.0pt -* \marginparwidth=36.135pt -* \marginparsep=11.0pt -* \columnsep=10.0pt -* \skip\footins=9.0pt plus 4.0pt minus 2.0pt -* \hoffset=0.0pt -* \voffset=0.0pt -* \mag=1000 -* \@twocolumnfalse -* \@twosidetrue -* \@mparswitchtrue -* \@reversemarginfalse -* (1in=72.27pt=25.4mm, 1cm=28.453pt) - -\AtBeginShipoutBox=\box44 -Package hyperref Info: Link coloring ON on input line 65. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/hyperref/nameref -.sty -Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/generic/oberdiek/getti -tlestring.sty -Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO) -) -\c@section@level=\count136 -) -LaTeX Info: Redefining \ref on input line 65. -LaTeX Info: Redefining \pageref on input line 65. -LaTeX Info: Redefining \nameref on input line 65. - (./salomeTools.out) (./salomeTools.out) -\@outlinefile=\write5 -\openout5 = `salomeTools.out'. - -Package hyperref Info: Option `pageanchor' set `false' on input line 68. -LaTeX Font Info: Try loading font information for T1+phv on input line 68. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1phv.fd -File: t1phv.fd 2001/06/04 scalable font definitions for T1/phv. -) -LaTeX Font Info: Font shape `T1/phv/bx/n' in size <10> not available -(Font) Font shape `T1/phv/b/n' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/bx/n' in size <24.88> not available -(Font) Font shape `T1/phv/b/n' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/bx/it' in size <10> not available -(Font) Font shape `T1/phv/b/it' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/b/it' in size <10> not available -(Font) Font shape `T1/phv/b/sl' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/bx/it' in size <17.28> not available -(Font) Font shape `T1/phv/b/it' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/b/it' in size <17.28> not available -(Font) Font shape `T1/phv/b/sl' tried instead on input line 68. -LaTeX Font Info: Font shape `T1/phv/bx/n' in size <17.28> not available -(Font) Font shape `T1/phv/b/n' tried instead on input line 68. -<><><><> -LaTeX Font Info: Try loading font information for U+msa on input line 68. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd -File: umsa.fd 2013/01/14 v3.01 AMS symbols A -) -LaTeX Font Info: Try loading font information for U+msb on input line 68. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd -File: umsb.fd 2013/01/14 v3.01 AMS symbols B -) -LaTeX Font Info: Font shape `T1/phv/bx/n' in size <12> not available -(Font) Font shape `T1/phv/b/n' tried instead on input line 68. - [1 - -{/data/tmplgls/wambeke/share/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdf -tex.map}] [2 - -] -LaTeX Font Info: Font shape `T1/phv/bx/n' in size <14.4> not available -(Font) Font shape `T1/phv/b/n' tried instead on input line 68. - (./salomeTools.toc -LaTeX Font Info: Font shape `T1/ptm/bx/n' in size <10> not available -(Font) Font shape `T1/ptm/b/n' tried instead on input line 2. -) -\tf@toc=\write6 -\openout6 = `salomeTools.toc'. - - [1 - -] [2 - -] - -LaTeX Font Info: Try loading font information for T1+pcr on input line 74. - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/t1pcr.fd -File: t1pcr.fd 2001/06/04 font definitions for T1/pcr. -) -File: sat_about.png Graphic file (type png) - -Package pdftex.def Info: sat_about.png used on input line 74. -(pdftex.def) Requested size: 602.24852pt x 301.12425pt. -[1 - - <./sat_about.png>] [2 - -] -Chapter 1. -LaTeX Font Info: Font shape `T1/pcr/m/it' in size <9> not available -(Font) Font shape `T1/pcr/m/sl' tried instead on input line 111. -LaTeX Font Info: Try loading font information for TS1+ptm on input line 135. - - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1ptm.fd -File: ts1ptm.fd 2001/06/04 font definitions for TS1/ptm. -) [3] [4] -LaTeX Font Info: Try loading font information for TS1+pcr on input line 268. - - -(/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/tex/latex/psnfss/ts1pcr.fd -File: ts1pcr.fd 2001/06/04 font definitions for TS1/pcr. -) -LaTeX Font Info: Font shape `TS1/pcr/m/it' in size <9> not available -(Font) Font shape `TS1/pcr/m/sl' tried instead on input line 268. - [5 - -] [6] -Chapter 2. -[7 - -] [8 - -] [9 - -] [10] [11 - -] [12] [13 - -] [14] [15 - -] [16 - -] [17 - -] [18 - -] -LaTeX Font Info: Font shape `T1/pcr/bx/n' in size <9> not available -(Font) Font shape `T1/pcr/b/n' tried instead on input line 1242. - [19] [20] [21 - -] -[22 - -] [23] [24 - -] -Chapter 3. -[25 - -] [26 - -] [27] [28] -Chapter 4. -LaTeX Font Info: Font shape `T1/pcr/bx/n' in size <10> not available -(Font) Font shape `T1/pcr/b/n' tried instead on input line 1746. -LaTeX Font Info: Font shape `T1/pcr/m/it' in size <10> not available -(Font) Font shape `T1/pcr/m/sl' tried instead on input line 1747. -[29 - -] [30] [31] [32] [33] -Underfull \hbox (badness 10000) in paragraph at lines 2732--2732 -[]\T1/ptm/m/it/10 config\T1/ptm/m/n/10 , \T1/ptm/m/it/10 log-ger\T1/ptm/m/n/10 -, \T1/ptm/m/it/10 prod-uct_info\T1/ptm/m/n/10 , \T1/ptm/m/it/10 op-tions=OptRes -ult( )\T1/ptm/m/n/10 , - [] - -[34] [35] [36] -Underfull \hbox (badness 10000) in paragraph at lines 3197--3197 -[]\T1/ptm/m/it/10 filename\T1/ptm/m/n/10 , \T1/ptm/m/it/10 ad-di-tional_env={}\ -T1/ptm/m/n/10 , \T1/ptm/m/it/10 for_package=None\T1/ptm/m/n/10 , - [] - -[37] [38] [39] [40] [41] [42] [43] [44] [45] [46] -Underfull \hbox (badness 10000) in paragraph at lines 4716--4716 -[]\T1/ptm/m/it/10 config=None\T1/ptm/m/n/10 , \T1/ptm/m/it/10 silent_sysstd=Fal -se\T1/ptm/m/n/10 , \T1/ptm/m/it/10 all_in_terminal=False\T1/ptm/m/n/10 , \T1/pt -m/m/it/10 mi- - [] - -[47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] -Underfull \hbox (badness 10000) in paragraph at lines 6991--6995 -[]\T1/ptm/m/n/10 Examples: makePath(`', `suf-fix') -> `suf-fix' makePath(`prefi -x', `suf-fix') -> `pre-fix.suffix' - [] - -[62] [63] -LaTeX Font Info: Font shape `TS1/pcr/bx/n' in size <10> not available -(Font) Font shape `TS1/pcr/b/n' tried instead on input line 1. - [64] [65] -Underfull \hbox (badness 10000) in paragraph at lines 7553--7555 -[]\T1/ptm/m/n/10 its at-tributes {key : - [] - -[66] [67] [68] [69] [70 - -] -Chapter 5. -[71] [72 - -] [73 - - -] (./salomeTools.ind [74 - - -] -Underfull \hbox (badness 10000) in paragraph at lines 7--8 -[]\T1/ptm/m/n/10 add_comment() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 8--9 -[]\T1/ptm/m/n/10 add_comment() (src.fileEnviron.BatFileEnviron - [] - - -Underfull \hbox (badness 6188) in paragraph at lines 10--11 -[]\T1/ptm/m/n/10 add_comment() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 11--12 -[]\T1/ptm/m/n/10 add_comment() (src.fileEnviron.ScreenEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 12--13 -[]\T1/ptm/m/n/10 add_echo() (src.fileEnviron.ContextFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 14--15 -[]\T1/ptm/m/n/10 add_echo() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 18--19 -[]\T1/ptm/m/n/10 add_line() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 23--24 -[]\T1/ptm/m/n/10 add_simple_node() (src.xmlManager.XmlLogFile - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 24--25 -[]\T1/ptm/m/n/10 add_warning() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 25--26 -[]\T1/ptm/m/n/10 add_warning() (src.fileEnviron.ContextFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 27--28 -[]\T1/ptm/m/n/10 add_warning() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 28--29 -[]\T1/ptm/m/n/10 add_warning() (src.fileEnviron.ScreenEnviron - [] - - -Overfull \hbox (6.44354pt too wide) in paragraph at lines 32--33 -[]\T1/ptm/m/n/10 ANSI_CSI_RE (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Overfull \hbox (10.33356pt too wide) in paragraph at lines 33--34 -[]\T1/ptm/m/n/10 ANSI_OSC_RE (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 43--44 -[]\T1/ptm/m/n/10 append() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 47--48 -[]\T1/ptm/m/n/10 append_node_attrib() (src.xmlManager.XmlLogFile - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 48--49 -[]\T1/ptm/m/n/10 append_node_text() (src.xmlManager.XmlLogFile - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 50--51 -[]\T1/ptm/m/n/10 append_value() (src.fileEnviron.ContextFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 52--53 -[]\T1/ptm/m/n/10 append_value() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 72--73 -[]\T1/ptm/m/n/10 BRIGHT_BACKGROUND - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 72--73 -\T1/ptm/m/n/10 (src.colorama.winterm.WinStyle at-tribute), - [] - -[75 - -] -Overfull \hbox (17.33415pt too wide) in paragraph at lines 79--80 -[]\T1/ptm/m/n/10 change_to_launcher() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 99--100 -[]\T1/ptm/m/n/10 command_value() (src.fileEnviron.BashFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 100--101 -[]\T1/ptm/m/n/10 command_value() (src.fileEnviron.BatFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 102--103 -[]\T1/ptm/m/n/10 command_value() (src.fileEnviron.FileEnviron - [] - - -Overfull \hbox (2.6542pt too wide) in paragraph at lines 103--104 -[]\T1/ptm/m/n/10 command_value() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 104--105 -[]\T1/ptm/m/n/10 command_value() (src.fileEnviron.ScreenEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 106--107 -[]\T1/ptm/m/n/10 complete_environment() (src.compilation.Builder - [] - - -Overfull \hbox (1.98413pt too wide) in paragraph at lines 121--122 -[]\T1/ptm/m/n/10 convert_ansi() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 127--128 -[]\T1/ptm/m/n/10 cursor_adjust() (src.colorama.winterm.WinTerm - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 146--147 -[]\T1/ptm/m/n/10 do_batch_script_build() (src.compilation.Builder - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 148--149 -[]\T1/ptm/m/n/10 do_python_script_build() (src.compilation.Builder - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 164--165 -[]\T1/ptm/m/n/10 erase_screen() (src.colorama.winterm.WinTerm - [] - - -Overfull \hbox (12.37378pt too wide) in paragraph at lines 170--171 -[]\T1/ptm/m/n/10 extract_params() (src.colorama.ansitowin32.AnsiToWin32 - [] - -[76] -Underfull \hbox (badness 10000) in paragraph at lines 225--226 -[]\T1/ptm/m/n/10 get_node_text() (src.xmlManager.ReadXmlFile - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 226--227 -[]\T1/ptm/m/n/10 get_position() (src.colorama.winterm.WinTerm - [] - - -Overfull \hbox (16.98375pt too wide) in paragraph at lines 239--240 -[]\T1/ptm/m/n/10 get_win32_calls() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 249--250 -[]\T1/ptm/m/n/10 getRootAttrib() (src.xmlManager.ReadXmlFile - [] - -[77] -Underfull \hbox (badness 10000) in paragraph at lines 278--279 -[]\T1/ptm/m/n/10 is_defined() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 280--281 -[]\T1/ptm/m/n/10 is_stream_closed() (in mod-ule - [] - - -Underfull \hbox (badness 5260) in paragraph at lines 302--303 -[]\T1/ptm/m/n/10 LIGHTBLACK_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 303--304 -[]\T1/ptm/m/n/10 LIGHTBLUE_EX (src.colorama.ansi.AnsiBack at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 304--305 -[]\T1/ptm/m/n/10 LIGHTBLUE_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 305--306 -[]\T1/ptm/m/n/10 LIGHTCYAN_EX (src.colorama.ansi.AnsiBack - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 306--307 -[]\T1/ptm/m/n/10 LIGHTCYAN_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 5490) in paragraph at lines 308--309 -[]\T1/ptm/m/n/10 LIGHTGREEN_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 309--310 -[]\T1/ptm/m/n/10 LIGHTMAGENTA_EX (src.colorama.ansi.AnsiBack - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 310--311 -[]\T1/ptm/m/n/10 LIGHTMAGENTA_EX (src.colorama.ansi.AnsiFore - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 311--312 -[]\T1/ptm/m/n/10 LIGHTRED_EX (src.colorama.ansi.AnsiBack at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 312--313 -[]\T1/ptm/m/n/10 LIGHTRED_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 7273) in paragraph at lines 314--315 -[]\T1/ptm/m/n/10 LIGHTWHITE_EX (src.colorama.ansi.AnsiFore at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 321--322 -[]\T1/ptm/m/n/10 load_cfg_environment() - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 321--322 -\T1/ptm/m/n/10 (src.environment.SalomeEnviron method), - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 332--333 -[]\T1/ptm/m/n/10 MAGENTA (src.colorama.winterm.WinColor at- - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 367--368 -[]\T1/ptm/m/n/10 parseKeyValuePair() (src.pyconf.ConfigReader - [] - -[78] -Underfull \hbox (badness 10000) in paragraph at lines 369--370 -[]\T1/ptm/m/n/10 parseMappingBody() (src.pyconf.ConfigReader - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 383--384 -[]\T1/ptm/m/n/10 prepare_testbase_from_dir() (src.test_module.Test - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 384--385 -[]\T1/ptm/m/n/10 prepare_testbase_from_git() (src.test_module.Test - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 385--386 -[]\T1/ptm/m/n/10 prepare_testbase_from_svn() (src.test_module.Test - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 389--390 -[]\T1/ptm/m/n/10 prepend() (src.fileEnviron.LauncherFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 392--393 -[]\T1/ptm/m/n/10 prepend_value() (src.fileEnviron.ContextFileEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 429--430 -[]\T1/ptm/m/n/10 put_txt_log_in_appli_log_dir() - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 455--456 -[]\T1/ptm/m/n/10 reset_all() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 460--461 -[]\T1/ptm/m/n/10 run_env_script() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 461--462 -[]\T1/ptm/m/n/10 run_env_script() (src.fileEnviron.ScreenEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 465--466 -[]\T1/ptm/m/n/10 run_simple_env_script() - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 465--466 -\T1/ptm/m/n/10 (src.environment.SalomeEnviron method), - [] - -[79] -Underfull \hbox (badness 10000) in paragraph at lines 477--478 -[]\T1/ptm/m/n/10 sendMessageToCurrentLogger() (in mod-ule - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 488--489 -[]\T1/ptm/m/n/10 set_a_product() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 491--492 -[]\T1/ptm/m/n/10 set_console() (src.colorama.winterm.WinTerm - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 492--493 -[]\T1/ptm/m/n/10 set_cpp_env() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 494--495 -[]\T1/ptm/m/n/10 set_full_environ() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 495--496 -[]\T1/ptm/m/n/10 set_products() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 6445) in paragraph at lines 496--497 -[]\T1/ptm/m/n/10 set_python_libdirs() (src.environment.SalomeEnviron - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 497--498 -[]\T1/ptm/m/n/10 set_salome_generic_product_env() - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 497--498 -\T1/ptm/m/n/10 (src.environment.SalomeEnviron method), - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 498--499 -[]\T1/ptm/m/n/10 set_salome_minimal_product_env() - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 498--499 -\T1/ptm/m/n/10 (src.environment.SalomeEnviron method), - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 501--502 -[]\T1/ptm/m/n/10 SetConsoleTextAttribute() (in mod-ule - [] - - -Overfull \hbox (3.09415pt too wide) in paragraph at lines 506--507 -[]\T1/ptm/m/n/10 should_wrap() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 567--568 -[]\T1/ptm/m/n/10 write() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 568--569 -[]\T1/ptm/m/n/10 write() (src.colorama.ansitowin32.StreamWrapper - [] - -[80] -Overfull \hbox (25.864pt too wide) in paragraph at lines 573--574 -[]\T1/ptm/m/n/10 write_and_convert() (src.colorama.ansitowin32.AnsiToWin32 - [] - - -Underfull \hbox (badness 10000) in paragraph at lines 576--577 -[]\T1/ptm/m/n/10 write_env_file() (src.environment.FileEnvWriter - [] - - -Overfull \hbox (16.8337pt too wide) in paragraph at lines 577--578 -[]\T1/ptm/m/n/10 write_plain_text() (src.colorama.ansitowin32.AnsiToWin32 - [] - -[81 - -]) -Package atveryend Info: Empty hook `BeforeClearDocument' on input line 8080. -Package atveryend Info: Empty hook `AfterLastShipout' on input line 8080. - (./salomeTools.aux) -Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 8080. -Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 8080. - -Package rerunfilecheck Info: File `salomeTools.out' has not changed. -(rerunfilecheck) Checksum: 101E36BBBDB8D120FE7A2C74AB3C41F0;3075. -Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 8080. - ) -Here is how much of TeX's memory you used: - 15069 strings out of 492982 - 235454 string characters out of 6124607 - 346380 words of memory out of 5000000 - 17572 multiletter control sequences out of 15000+600000 - 64980 words of font info for 97 fonts, out of 8000000 for 9000 - 1142 hyphenation exceptions out of 8191 - 37i,12n,45p,550b,639s stack positions out of 5000i,500n,10000p,200000b,80000s -{/data/tmplgls/wambeke/share/texlive/2017/texmf-dist/fonts/enc/dvips/base/8r. -enc} -Output written on salomeTools.pdf (85 pages, 699075 bytes). -PDF statistics: - 1931 PDF objects out of 2073 (max. 8388607) - 1807 compressed objects within 19 object streams - 723 named destinations out of 1000 (max. 500000) - 218 words of extra memory for PDF output out of 10000 (max. 10000000) - diff --git a/doc/build/latex/salomeTools.out b/doc/build/latex/salomeTools.out deleted file mode 100644 index 628fdc8..0000000 --- a/doc/build/latex/salomeTools.out +++ /dev/null @@ -1,24 +0,0 @@ -\BOOKMARK [0][-]{chapter.1}{\376\377\000Q\000u\000i\000c\000k\000\040\000s\000t\000a\000r\000t}{}% 1 -\BOOKMARK [1][-]{section.1.1}{\376\377\000I\000n\000s\000t\000a\000l\000l\000a\000t\000i\000o\000n}{chapter.1}% 2 -\BOOKMARK [1][-]{section.1.2}{\376\377\000C\000o\000n\000f\000i\000g\000u\000r\000a\000t\000i\000o\000n}{chapter.1}% 3 -\BOOKMARK [1][-]{section.1.3}{\376\377\000U\000s\000a\000g\000e\000\040\000o\000f\000\040\000S\000A\000l\000o\000m\000e\000T\000o\000o\000l\000s}{chapter.1}% 4 -\BOOKMARK [0][-]{chapter.2}{\376\377\000L\000i\000s\000t\000\040\000o\000f\000\040\000C\000o\000m\000m\000a\000n\000d\000s}{}% 5 -\BOOKMARK [1][-]{section.2.1}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000d\000o\000c}{chapter.2}% 6 -\BOOKMARK [1][-]{section.2.2}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000c\000o\000n\000f\000i\000g}{chapter.2}% 7 -\BOOKMARK [1][-]{section.2.3}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000p\000r\000e\000p\000a\000r\000e}{chapter.2}% 8 -\BOOKMARK [1][-]{section.2.4}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000c\000o\000m\000p\000i\000l\000e}{chapter.2}% 9 -\BOOKMARK [1][-]{section.2.5}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000l\000a\000u\000n\000c\000h\000e\000r}{chapter.2}% 10 -\BOOKMARK [1][-]{section.2.6}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000a\000p\000p\000l\000i\000c\000a\000t\000i\000o\000n}{chapter.2}% 11 -\BOOKMARK [1][-]{section.2.7}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000l\000o\000g}{chapter.2}% 12 -\BOOKMARK [1][-]{section.2.8}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000e\000n\000v\000i\000r\000o\000n}{chapter.2}% 13 -\BOOKMARK [1][-]{section.2.9}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000c\000l\000e\000a\000n}{chapter.2}% 14 -\BOOKMARK [1][-]{section.2.10}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000p\000a\000c\000k\000a\000g\000e}{chapter.2}% 15 -\BOOKMARK [1][-]{section.2.11}{\376\377\000C\000o\000m\000m\000a\000n\000d\000\040\000g\000e\000n\000e\000r\000a\000t\000e}{chapter.2}% 16 -\BOOKMARK [0][-]{chapter.3}{\376\377\000D\000e\000v\000e\000l\000o\000p\000e\000r\000\040\000d\000o\000c\000u\000m\000e\000n\000t\000a\000t\000i\000o\000n}{}% 17 -\BOOKMARK [1][-]{section.3.1}{\376\377\000A\000d\000d\000\040\000a\000\040\000u\000s\000e\000r\000\040\000c\000u\000s\000t\000o\000m\000\040\000c\000o\000m\000m\000a\000n\000d}{chapter.3}% 18 -\BOOKMARK [0][-]{chapter.4}{\376\377\000C\000o\000d\000e\000\040\000d\000o\000c\000u\000m\000e\000n\000t\000a\000t\000i\000o\000n}{}% 19 -\BOOKMARK [1][-]{section.4.1}{\376\377\000s\000r\000c}{chapter.4}% 20 -\BOOKMARK [0][-]{chapter.5}{\376\377\000R\000e\000l\000e\000a\000s\000e\000\040\000N\000o\000t\000e\000s}{}% 21 -\BOOKMARK [1][-]{section.5.1}{\376\377\000R\000e\000l\000e\000a\000s\000e\000\040\000n\000o\000t\000e\000s}{chapter.5}% 22 -\BOOKMARK [0][-]{section*.546}{\376\377\000P\000y\000t\000h\000o\000n\000\040\000M\000o\000d\000u\000l\000e\000\040\000I\000n\000d\000e\000x}{}% 23 -\BOOKMARK [0][-]{section*.547}{\376\377\000I\000n\000d\000e\000x}{}% 24 diff --git a/doc/build/latex/salomeTools.pdf b/doc/build/latex/salomeTools.pdf deleted file mode 100644 index 649815d..0000000 Binary files a/doc/build/latex/salomeTools.pdf and /dev/null differ diff --git a/doc/build/latex/salomeTools.tex b/doc/build/latex/salomeTools.tex deleted file mode 100644 index b0579f9..0000000 --- a/doc/build/latex/salomeTools.tex +++ /dev/null @@ -1,8080 +0,0 @@ -%% Generated by Sphinx. -\def\sphinxdocclass{report} -\documentclass[a4paper,10pt,english]{sphinxmanual} -\ifdefined\pdfpxdimen - \let\sphinxpxdimen\pdfpxdimen\else\newdimen\sphinxpxdimen -\fi \sphinxpxdimen=.75bp\relax - -\PassOptionsToPackage{warn}{textcomp} -\usepackage[utf8]{inputenc} -\ifdefined\DeclareUnicodeCharacter - \ifdefined\DeclareUnicodeCharacterAsOptional - \DeclareUnicodeCharacter{"00A0}{\nobreakspace} - \DeclareUnicodeCharacter{"2500}{\sphinxunichar{2500}} - \DeclareUnicodeCharacter{"2502}{\sphinxunichar{2502}} - \DeclareUnicodeCharacter{"2514}{\sphinxunichar{2514}} - \DeclareUnicodeCharacter{"251C}{\sphinxunichar{251C}} - \DeclareUnicodeCharacter{"2572}{\textbackslash} - \else - \DeclareUnicodeCharacter{00A0}{\nobreakspace} - \DeclareUnicodeCharacter{2500}{\sphinxunichar{2500}} - \DeclareUnicodeCharacter{2502}{\sphinxunichar{2502}} - \DeclareUnicodeCharacter{2514}{\sphinxunichar{2514}} - \DeclareUnicodeCharacter{251C}{\sphinxunichar{251C}} - \DeclareUnicodeCharacter{2572}{\textbackslash} - \fi -\fi -\usepackage{cmap} -\usepackage[T1]{fontenc} -\usepackage{amsmath,amssymb,amstext} -\usepackage{babel} -\usepackage{times} -\usepackage[Bjarne]{fncychap} -\usepackage{sphinx} -\sphinxsetup{verbatimwithframe=false, VerbatimColor={rgb}{.98,.94,.94}} -\usepackage{geometry} - -% Include hyperref last. -\usepackage{hyperref} -% Fix anchor placement for figures with captions. -\usepackage{hypcap}% it must be loaded after hyperref. -% Set up styles of URL: it should be placed after hyperref. -\urlstyle{same} - -\addto\captionsenglish{\renewcommand{\figurename}{Fig.}} -\addto\captionsenglish{\renewcommand{\tablename}{Table}} -\addto\captionsenglish{\renewcommand{\literalblockname}{Listing}} - -\addto\captionsenglish{\renewcommand{\literalblockcontinuedname}{continued from previous page}} -\addto\captionsenglish{\renewcommand{\literalblockcontinuesname}{continues on next page}} - -\addto\extrasenglish{\def\pageautorefname{page}} - -\setcounter{tocdepth}{1} - - - -\title{salomeTools Documentation} -\date{Jun 26, 2018} -\release{5.0.0dev} -\author{CEA DEN/DANS/DM2S/STMF/LGLS} -\newcommand{\sphinxlogo}{\vbox{}} -\renewcommand{\releasename}{Release} -\makeindex - -\begin{document} - -\maketitle -\sphinxtableofcontents -\phantomsection\label{\detokenize{index::doc}} -\clearpage - - - -\noindent{\hspace*{\fill}\sphinxincludegraphics[scale=1.0]{{sat_about}.png}\hspace*{\fill}} - -\begin{sphinxadmonition}{warning}{Warning:} -This documentation is under construction. -\end{sphinxadmonition} - -The \sphinxstylestrong{Sa}lome\sphinxstylestrong{T}ools (sat) is a suite of commands -that can be used to perform operations on \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[1]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote}. - -For example, sat allows you to compile SALOME’s codes -(prerequisites, products) -create application, run tests, create package, etc. - -This utility code is a set of \sphinxhref{https://docs.python.org/2.7}{Python}% -\begin{footnote}[2]\sphinxAtStartFootnote -\sphinxnolinkurl{https://docs.python.org/2.7} -% -\end{footnote} scripts files. - -Find a \sphinxhref{./../latex/salomeTools.pdf}{pdf version of this documentation} - - -\chapter{Quick start} -\label{\detokenize{index:quick-start}}\label{\detokenize{index:salome-tools}} - -\section{Installation} -\label{\detokenize{installation_of_sat:installation}}\label{\detokenize{installation_of_sat::doc}} -Usually user could find (and use) command \sphinxstylestrong{sat} directly after a ‘detar’ installation of SALOME. - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -tar \PYGZhy{}xf .../SALOME\PYGZus{}xx.tgz -\PYG{n+nb}{cd} SALOME\PYGZus{}xx -ls \PYGZhy{}l sat \PYG{c+c1}{\PYGZsh{} sat \PYGZhy{}\PYGZgt{} salomeTools/sat} -\end{sphinxVerbatim} - -Python package (scripts of salomeTools) actually remains in directory \sphinxstyleemphasis{salomeTools}. - - -\section{Configuration} -\label{\detokenize{configuration:configuration}}\label{\detokenize{configuration::doc}} -\sphinxstyleemphasis{salomeTools} uses files to store its configuration parameters. - -There are several configuration files which are loaded by salomeTools in a specific order. -When all the files are loaded a \sphinxstyleemphasis{config} object is created. -Then, this object is passed to all command scripts. - - -\subsection{Syntax} -\label{\detokenize{configuration:syntax}} -The configuration files use a python-like structure format -(see \sphinxhref{http://www.red-dove.com/config-doc/}{config module}% -\begin{footnote}[3]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.red-dove.com/config-doc/} -% -\end{footnote} for a complete description). -\begin{itemize} -\item {} -\sphinxstylestrong{\{\}} define a dictionary, - -\item {} -\sphinxstylestrong{{[}{]}} define a list, - -\item {} -\sphinxstylestrong{@} can be used to include a file, - -\item {} -\sphinxstylestrong{\$prefix} reference to another parameter (ex: \sphinxcode{\sphinxupquote{\$PRODUCT.name}}), - -\item {} -\sphinxstylestrong{\#} comments. - -\end{itemize} - -\begin{sphinxadmonition}{note}{Note:} -in this documentation a reference to a configuration parameter will be noted \sphinxcode{\sphinxupquote{XXX.YYY}}. -\end{sphinxadmonition} - - -\subsection{Description} -\label{\detokenize{configuration:description}} - -\subsubsection{VARS section} -\label{\detokenize{configuration:vars-section}}\label{\detokenize{configuration:id1}} -\begin{DUlineblock}{0em} -\item[] This section is dynamically created by salomeTools at run time. -\item[] It contains information about the environment: date, time, OS, architecture etc. -\end{DUlineblock} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} to get the current setting} -\PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{VARS} -\end{sphinxVerbatim} - - -\subsubsection{PRODUCTS section} -\label{\detokenize{configuration:products-section}} -\begin{DUlineblock}{0em} -\item[] This section is defined in the product file. -\item[] It contains instructions on how to build a version of SALOME (list of prerequisites-products and versions) -\end{DUlineblock} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} to get the current setting} -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{PRODUCTS} -\end{sphinxVerbatim} - - -\subsubsection{APPLICATION section} -\label{\detokenize{configuration:application-section}} -\begin{DUlineblock}{0em} -\item[] This section is optional, it is also defined in the product file. -\item[] It gives additional parameters to create an application based on SALOME, as versions of products to use. -\end{DUlineblock} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} to get the current setting} -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{APPLICATION} -\end{sphinxVerbatim} - - -\subsubsection{USER section} -\label{\detokenize{configuration:user-section}}\label{\detokenize{configuration:id2}} -This section is defined by the user configuration file, -\sphinxcode{\sphinxupquote{\textasciitilde{}/.salomeTools/salomeTools.pyconf}}. - -The \sphinxcode{\sphinxupquote{USER}} section defines some parameters (not exhaustive): -\begin{itemize} -\item {} -\sphinxstylestrong{workDir} : -\begin{quote} - -\begin{DUlineblock}{0em} -\item[] The working directory. -\item[] Each product will be usually installed here (in sub-directories). -\end{DUlineblock} -\end{quote} - -\item {} -\sphinxstylestrong{browser} : The web browser to use (\sphinxstyleemphasis{firefox}). - -\item {} -\sphinxstylestrong{editor} : The editor to use (\sphinxstyleemphasis{vi, pluma}). - -\item {} -and other user preferences. - -\end{itemize} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} to get the current setting} -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{value} \PYG{n}{USER} -\end{sphinxVerbatim} - -\clearpage - - -\section{Usage of SAlomeTools} -\label{\detokenize{usage_of_sat:svn}}\label{\detokenize{usage_of_sat:usage-of-salometools}}\label{\detokenize{usage_of_sat::doc}} - -\subsection{Usage} -\label{\detokenize{usage_of_sat:usage}} -sat usage is a Command Line Interface (\sphinxhref{https://en.wikipedia.org/wiki/Command-line\_interface}{CLI}% -\begin{footnote}[4]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Command-line\_interface} -% -\end{footnote}). - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat \PYG{o}{[}generic\PYGZus{}options\PYG{o}{]} \PYG{o}{[}command\PYG{o}{]} \PYG{o}{[}product\PYG{o}{]} \PYG{o}{[}command\PYGZus{}options\PYG{o}{]} -\end{sphinxVerbatim} - - -\subsubsection{Options of sat} -\label{\detokenize{usage_of_sat:options-of-sat}} -Useful \sphinxstyleemphasis{not exhaustive} generic options of \sphinxstyleemphasis{sat} CLI. - - -\paragraph{\sphinxstyleemphasis{\textendash{}help or -h}} -\label{\detokenize{usage_of_sat:help-or-h}} -Get help as simple text. - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat \PYGZhy{}\PYGZhy{}help \PYG{c+c1}{\PYGZsh{} get the list of existing commands} -sat \PYGZhy{}\PYGZhy{}help compile \PYG{c+c1}{\PYGZsh{} get the help on a specific command \PYGZsq{}compile\PYGZsq{}} -\end{sphinxVerbatim} - - -\paragraph{\sphinxstyleemphasis{\textendash{}debug or -g}} -\label{\detokenize{usage_of_sat:debug-or-g}} -Execution in debug mode allows to see more trace and \sphinxstyleemphasis{stack} if an exception is raised. - - -\paragraph{\sphinxstyleemphasis{\textendash{}verbose or -v}} -\label{\detokenize{usage_of_sat:verbose-or-v}} -Change verbosity level (default is 3). - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} for product \PYGZsq{}SALOME\PYGZus{}xx\PYGZsq{} for example} -\PYG{c+c1}{\PYGZsh{} execute compile command in debug mode with trace level 4} -sat \PYGZhy{}g \PYGZhy{}v \PYG{l+m}{4} compile SALOME\PYGZus{}xx -\end{sphinxVerbatim} - - -\subsection{Build a SALOME product} -\label{\detokenize{usage_of_sat:build-a-salome-product}} - -\subsubsection{Get the list of available products} -\label{\detokenize{usage_of_sat:get-the-list-of-available-products}} -To get the list of the current available products in your context: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat config \PYGZhy{}\PYGZhy{}list -\end{sphinxVerbatim} - - -\subsubsection{Prepare sources of a product} -\label{\detokenize{usage_of_sat:prepare-sources-of-a-product}} -To prepare (get) \sphinxstyleemphasis{all} the sources of a product (\sphinxstyleemphasis{SALOME\_xx} for example): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat prepare SALOME\PYGZus{}xx -\end{sphinxVerbatim} - -\begin{DUlineblock}{0em} -\item[] The sources are usually copied in directories -\item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + SOURCES + \$PRODUCT.name} -\end{DUlineblock} - - -\subsubsection{Compile SALOME} -\label{\detokenize{usage_of_sat:compile-salome}} -To compile products: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} compile all prerequisites/products} -sat compile SALOME\PYGZus{}xx - -\PYG{c+c1}{\PYGZsh{} compile only 2 products (KERNEL and SAMPLES), if not done yet} -sat compile SALOME\PYGZus{}xx \PYGZhy{}\PYGZhy{}products KERNEL,SAMPLES - -\PYG{c+c1}{\PYGZsh{} compile only 2 products, unconditionaly} -sat compile SALOME\PYGZus{}xx \PYGZhy{}\PYGZhy{}\PYGZhy{}products SAMPLES \PYGZhy{}\PYGZhy{}clean\PYGZus{}all -\end{sphinxVerbatim} - -\begin{DUlineblock}{0em} -\item[] The products are usually build in the directories -\item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + BUILD + \$PRODUCT.name} -\item[] -\item[] The products are usually installed in the directories -\item[] \sphinxstyleemphasis{\$USER.workDir + SALOME\_xx… + INSTALL + \$PRODUCT.name} -\end{DUlineblock} - - -\chapter{List of Commands} -\label{\detokenize{index:list-of-commands}} -\clearpage - - -\section{Command doc} -\label{\detokenize{commands/doc:svn}}\label{\detokenize{commands/doc::doc}}\label{\detokenize{commands/doc:command-doc}} - -\subsection{Description} -\label{\detokenize{commands/doc:description}} -The \sphinxstylestrong{doc} command displays sat documentation. - - -\subsection{Usage} -\label{\detokenize{commands/doc:usage}}\begin{itemize} -\item {} -Show (in a web browser) the sat documentation in format xml/html: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{xml} -\end{sphinxVerbatim} - -\item {} -Show (in evince, for example) the (same) sat documentation in format pdf: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{pdf} -\end{sphinxVerbatim} - -\item {} -Edit and modify in your preference user editor the sources files (rst) of sat documentation: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit} -\end{sphinxVerbatim} - -\item {} -get information how to compile locally sat documentation (from the sources files): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{doc} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n+nb}{compile} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/doc:some-useful-configuration-pathes}}\begin{itemize} -\item {} -\sphinxstylestrong{USER} -\begin{itemize} -\item {} -\sphinxstylestrong{browser} : The browser used to show the html files (\sphinxstyleemphasis{firefox} for example). - -\item {} -\sphinxstylestrong{pdf\_viewer} : The viewer used to show the pdf files (\sphinxstyleemphasis{evince} for example). - -\item {} -\sphinxstylestrong{editor} : The editor used to edit ascii text files (\sphinxstyleemphasis{pluma or gedit} for example). - -\end{itemize} - -\end{itemize} - -\clearpage - - -\section{Command config} -\label{\detokenize{commands/config:svn}}\label{\detokenize{commands/config:command-config}}\label{\detokenize{commands/config::doc}} - -\subsection{Description} -\label{\detokenize{commands/config:description}} -The \sphinxstylestrong{config} command manages sat configuration. -It allows display, manipulation and operation on configuration files - - -\subsection{Usage} -\label{\detokenize{commands/config:usage}}\begin{itemize} -\item {} -Edit the user personal configuration file \sphinxcode{\sphinxupquote{\$HOME/.salomeTools/SAT.pyconf}}. It is used to store the user personal choices, like the favorite editor, browser, pdf viewer: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit} -\end{sphinxVerbatim} - -\item {} -List the available applications (they come from the sat projects defined in \sphinxcode{\sphinxupquote{data/local.pyconf}}: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n+nb}{list} -\end{sphinxVerbatim} - -\item {} -Edit the configuration of an application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{edit} -\end{sphinxVerbatim} - -\item {} -Copy an application configuration file into the user personal directory: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{copy} \PYG{p}{[}\PYG{n}{new\PYGZus{}name}\PYG{p}{]} -\end{sphinxVerbatim} - -\item {} -\begin{DUlineblock}{0em} -\item[] Print the value of a configuration parameter. -\item[] Use the automatic completion to get recursively the parameter names. -\item[] Use \sphinxstyleemphasis{\textendash{}no\_label} option to get \sphinxstyleemphasis{only} the value, \sphinxstyleemphasis{without} label (useful in automatic scripts). -\item[] Examples (with \sphinxstyleemphasis{SALOME-xx} as \sphinxstyleemphasis{SALOME-8.4.0} ): -\end{DUlineblock} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} sat config \PYGZhy{}\PYGZhy{}value \PYGZlt{}parameter\PYGZus{}path\PYGZgt{}} -sat config \PYGZhy{}\PYGZhy{}value . \PYG{c+c1}{\PYGZsh{} all the configuration} -sat config \PYGZhy{}\PYGZhy{}value LOCAL -sat config \PYGZhy{}\PYGZhy{}value LOCAL.workdir - -\PYG{c+c1}{\PYGZsh{} sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}value \PYGZlt{}parameter\PYGZus{}path\PYGZgt{}} -sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}value APPLICATION.workdir -sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}no\PYGZus{}label \PYGZhy{}\PYGZhy{}value APPLICATION.workdir -\end{sphinxVerbatim} - -\item {} -\begin{DUlineblock}{0em} -\item[] Print in one-line-by-value mode the value of a configuration parameter, -\item[] with its source \sphinxstyleemphasis{expression}, if any. -\item[] This is a debug mode, useful for developers. -\item[] Prints the parameter path, the source expression if any, and the final value: -\end{DUlineblock} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{g} \PYG{n}{USER} -\end{sphinxVerbatim} - -\begin{sphinxadmonition}{note}{Note:} -And so, \sphinxstyleemphasis{not only for fun}, to get \sphinxstylestrong{all expressions} of configuration - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat config SALOME\PYGZhy{}xx \PYGZhy{}g . \PYG{p}{\textbar{}} grep \PYGZhy{}e \PYG{l+s+s2}{\PYGZdq{}\PYGZhy{}\PYGZhy{}\PYGZgt{}\PYGZdq{}} -\end{sphinxVerbatim} -\end{sphinxadmonition} - -\item {} -Print the patches that are applied: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{show\PYGZus{}patchs} -\end{sphinxVerbatim} - -\item {} -Get information on a product configuration: - -\end{itemize} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}info \PYGZlt{}product\PYGZgt{}} -sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}info KERNEL -sat config SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}info qt -\end{sphinxVerbatim} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/config:some-useful-configuration-pathes}} -Exploring a current configuration. -\begin{itemize} -\item {} -\sphinxstylestrong{PATHS}: To get list of directories where to find files. - -\item {} -\sphinxstylestrong{USER}: To get user preferences (editor, pdf viewer, web browser, default working dir). - -\end{itemize} - -sat commands: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{v} \PYG{n}{PATHS} -\PYG{n}{sat} \PYG{n}{config} \PYG{n}{SALOME}\PYG{o}{\PYGZhy{}}\PYG{n}{xx} \PYG{o}{\PYGZhy{}}\PYG{n}{v} \PYG{n}{USERS} -\end{sphinxVerbatim} - -\clearpage - - -\section{Command prepare} -\label{\detokenize{commands/prepare:svn}}\label{\detokenize{commands/prepare:command-prepare}}\label{\detokenize{commands/prepare::doc}} - -\subsection{Description} -\label{\detokenize{commands/prepare:description}} -The \sphinxstylestrong{prepare} command brings the sources of an application in the \sphinxstyleemphasis{sources -application directory}, in order to compile them with the compile command. - -The sources can be prepared from VCS software (\sphinxstyleemphasis{cvs, svn, git}), an archive or a directory. - -\begin{sphinxadmonition}{warning}{Warning:} -When sat prepares a product, it first removes the -existing directory, except if the development mode is activated. -When you are working on a product, you need to declare in -the application configuration this product in \sphinxstylestrong{dev} mode. -\end{sphinxadmonition} - - -\subsection{Remarks} -\label{\detokenize{commands/prepare:remarks}} - -\subsubsection{VCS bases (git, svn, cvs)} -\label{\detokenize{commands/prepare:vcs-bases-git-svn-cvs}} -The \sphinxstyleemphasis{prepare} command does not manage authentication on the cvs server. -For example, to prepare modules from a cvs server, you first need to login once. - -To avoid typing a password for each product, -you may use a ssh key with passphrase, or store your password -(in .cvspass or .gitconfig files). -If you have security concerns, it is also possible to use -a bash agent and type your password only once. - - -\subsubsection{Dev mode} -\label{\detokenize{commands/prepare:dev-mode}} -By default \sphinxstyleemphasis{prepare} uses \sphinxstyleemphasis{export} mode: it creates an image -of the sources, corresponding to the tag or branch specified, -without any link to the VCS base. -To perform a \sphinxstyleemphasis{checkout} (svn, cvs) or a \sphinxstyleemphasis{git clone} (git), -you need to declare the product in dev mode in your application configuration: -edit the application configuration file (pyconf) and modify the product declaration: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}e -\PYG{c+c1}{\PYGZsh{} and edit the product section:} -\PYG{c+c1}{\PYGZsh{} \PYGZlt{}product\PYGZgt{} : \PYGZob{}tag : \PYGZdq{}my\PYGZus{}tag\PYGZdq{}, dev : \PYGZdq{}yes\PYGZdq{}, debug : \PYGZdq{}yes\PYGZdq{}\PYGZcb{}} -\end{sphinxVerbatim} - -The first time you will execute the \sphinxstyleemphasis{sat prepare} command, -your module will be downloaded in \sphinxstyleemphasis{checkout} mode -(inside the SOURCES directory of the application. -Then, you can develop in this repository, and finally push -them in the base when they are ready. -If you type during the development process by mistake -a \sphinxstyleemphasis{sat prepare} command, the sources in dev mode will -not be altered/removed (Unless you use -f option) - - -\subsection{Usage} -\label{\detokenize{commands/prepare:usage}}\begin{itemize} -\item {} -Prepare the sources of a complete application in SOURCES directory (all products): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Prepare only some modules: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}}\PYG{p}{,}\PYG{o}{\PYGZlt{}}\PYG{n}{product2}\PYG{o}{\PYGZgt{}} \PYG{o}{.}\PYG{o}{.}\PYG{o}{.} -\end{sphinxVerbatim} - -\item {} -Use \textendash{}force to force to prepare the products in development mode -(this will remove the sources and do a new clone/checkout): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force} -\end{sphinxVerbatim} - -\item {} -Use \textendash{}force\_patch to force to apply patch to the products -in development mode (otherwise they are not applied): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{prepare} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force\PYGZus{}patch} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/prepare:some-useful-configuration-pathes}} -Command \sphinxstyleemphasis{sat prepare} uses the \sphinxstyleemphasis{pyconf file configuration} of each product to know how to get the sources. - -\begin{sphinxadmonition}{note}{Note:} -to verify configuration of a product, and get name of this \sphinxstyleemphasis{pyconf files configuration} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat config \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}info \PYGZlt{}product\PYGZgt{} -\end{sphinxVerbatim} -\end{sphinxadmonition} -\begin{itemize} -\item {} -\sphinxstylestrong{get\_method}: the method to use to prepare the module, possible values are cvs, git, archive, dir. - -\item {} -\sphinxstylestrong{git\_info} : (used if get\_method = git) information to prepare sources from git. - -\item {} -\sphinxstylestrong{svn\_info} : (used if get\_method = svn) information to prepare sources from cvs. - -\item {} -\sphinxstylestrong{cvs\_info} : (used if get\_method = cvs) information to prepare sources from cvs. - -\item {} -\sphinxstylestrong{archive\_info} : (used if get\_method = archive) the path to the archive. - -\item {} -\sphinxstylestrong{dir\_info} : (used if get\_method = dir) the directory with the sources. - -\end{itemize} - -\clearpage - - -\section{Command compile} -\label{\detokenize{commands/compile:svn}}\label{\detokenize{commands/compile:command-compile}}\label{\detokenize{commands/compile::doc}} - -\subsection{Description} -\label{\detokenize{commands/compile:description}} -The \sphinxstylestrong{compile} command allows compiling the products of a \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[5]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} application. - - -\subsection{Usage} -\label{\detokenize{commands/compile:usage}}\begin{itemize} -\item {} -Compile a complete application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Compile only some products: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}}\PYG{p}{,}\PYG{o}{\PYGZlt{}}\PYG{n}{product2}\PYG{o}{\PYGZgt{}} \PYG{o}{.}\PYG{o}{.}\PYG{o}{.} -\end{sphinxVerbatim} - -\item {} -Use \sphinxstyleemphasis{sat -t} to duplicate the logs in the terminal (by default the log are stored and displayed with \sphinxstyleemphasis{sat log} command): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{o}{\PYGZhy{}}\PYG{n}{t} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product1}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Compile a module and its dependencies: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{med} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}fathers} -\end{sphinxVerbatim} - -\item {} -Compile a module and the modules depending on it (for example plugins): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{med} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}children} -\end{sphinxVerbatim} - -\item {} -Clean the build and install directories before starting compilation: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{GEOM} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}all} -\end{sphinxVerbatim} - -\begin{sphinxadmonition}{note}{Note:} -\begin{DUlineblock}{0em} -\item[] a warning will be shown if option \sphinxstyleemphasis{\textendash{}products} is missing -\item[] (as it will clean everything) -\end{DUlineblock} -\end{sphinxadmonition} - -\item {} -Clean only the install directories before starting compilation: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}install} -\end{sphinxVerbatim} - -\item {} -Add options for make: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{product}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{make\PYGZus{}flags} \PYG{o}{\PYGZlt{}}\PYG{n}{flags}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Use the \sphinxstyleemphasis{\textendash{}check} option to execute the unit tests after compilation: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{check} -\end{sphinxVerbatim} - -\item {} -Remove the build directory after successful compilation (some build directory like qt are big): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{n}{qt} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean\PYGZus{}build\PYGZus{}after} -\end{sphinxVerbatim} - -\item {} -Stop the compilation as soon as the compilation of a module fails: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{product}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{stop\PYGZus{}first\PYGZus{}fail} -\end{sphinxVerbatim} - -\item {} -Do not compile, just show if products are installed or not, and where is the installation: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n+nb}{compile} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{show} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/compile:some-useful-configuration-pathes}} -The way to compile a product is defined in the \sphinxstyleemphasis{pyconf file configuration}. -The main options are: -\begin{itemize} -\item {} -\sphinxstylestrong{build\_source} : the method used to build the product (cmake/autotools/script) - -\item {} -\sphinxstylestrong{compil\_script} : the compilation script if build\_source is equal to “script” - -\item {} -\sphinxstylestrong{cmake\_options} : additional options for cmake. - -\item {} -\sphinxstylestrong{nb\_proc} : number of jobs to use with make for this product. - -\end{itemize} - -\clearpage - - -\section{Command launcher} -\label{\detokenize{commands/launcher:svn}}\label{\detokenize{commands/launcher:command-launcher}}\label{\detokenize{commands/launcher::doc}} - -\subsection{Description} -\label{\detokenize{commands/launcher:description}} -The \sphinxstylestrong{launcher} command creates a SALOME launcher, a python script file to start \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[6]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote}. - - -\subsection{Usage} -\label{\detokenize{commands/launcher:usage}}\begin{itemize} -\item {} -Create a launcher: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -Generate a launcher in the application directory, i.e \sphinxcode{\sphinxupquote{\$APPLICATION.workdir}}. - -\item {} -Create a launcher with a given name (default name is \sphinxcode{\sphinxupquote{APPLICATION.profile.launcher\_name}}) - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{ZeLauncher} -\end{sphinxVerbatim} - -The launcher will be called \sphinxstyleemphasis{ZeLauncher}. - -\item {} -Set a specific resources catalog: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{catalog} \PYG{o}{\PYGZlt{}}\PYG{n}{path} \PYG{n}{of} \PYG{n}{a} \PYG{n}{salome} \PYG{n}{resources} \PYG{n}{catalog}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -Note that the catalog specified will be copied to the profile directory. - -\item {} -Generate the catalog for a list of machines: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{gencat} \PYG{o}{\PYGZlt{}}\PYG{n+nb}{list} \PYG{n}{of} \PYG{n}{machines}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -This will create a catalog by querying each machine (memory, number of processor) with ssh. - -\item {} -Generate a mesa launcher (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{use\PYGZus{}mesa} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Configuration} -\label{\detokenize{commands/launcher:configuration}} -Some useful configuration pathes: -\begin{itemize} -\item {} -\sphinxstylestrong{APPLICATION.profile} -\begin{itemize} -\item {} -\sphinxstylestrong{product} : the name of the profile product (the product in charge of holding the application stuff, like logos, splashscreen) - -\item {} -\sphinxstylestrong{launcher\_name} : the name of the launcher. - -\end{itemize} - -\end{itemize} - -\clearpage - - -\section{Command application} -\label{\detokenize{commands/application:svn}}\label{\detokenize{commands/application::doc}}\label{\detokenize{commands/application:command-application}} - -\subsection{Description} -\label{\detokenize{commands/application:description}} -The \sphinxstylestrong{application} command creates a virtual \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[7]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} application. -Virtual SALOME applications are used to start SALOME when distribution is needed. - - -\subsection{Usage} -\label{\detokenize{commands/application:usage}}\begin{itemize} -\item {} -Create an application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -Create the virtual application directory in the salomeTool application directory \sphinxcode{\sphinxupquote{\$APPLICATION.workdir}}. - -\item {} -Give a name to the application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{o}{\PYGZlt{}}\PYG{n}{my\PYGZus{}application\PYGZus{}name}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\sphinxstyleemphasis{Remark}: this option overrides the name given in the virtual\_app section of the configuration file \sphinxcode{\sphinxupquote{\$APPLICATION.virtual\_app.name}}. - -\item {} -Change the directory where the application is created: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{target} \PYG{o}{\PYGZlt{}}\PYG{n}{my\PYGZus{}application\PYGZus{}directory}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Set a specific \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[8]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} resources catalog (it will be used for the distribution of components on distant machines): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{catalog} \PYG{o}{\PYGZlt{}}\PYG{n}{path\PYGZus{}to\PYGZus{}catalog}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -Note that the catalog specified will be copied to the application directory. - -\item {} -Generate the catalog for a list of machines: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{application} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{gencat} \PYG{n}{machine1}\PYG{p}{,}\PYG{n}{machine2}\PYG{p}{,}\PYG{n}{machine3} -\end{sphinxVerbatim} - -This will create a catalog by querying each machine through ssh protocol (memory, number of processor) with ssh. - -\item {} -Generate a mesa application (if mesa and llvm are parts of the application). Use this option only if you have to use salome through ssh and have problems with ssh X forwarding of OpengGL modules (like Paravis): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{launcher} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{use\PYGZus{}mesa} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/application:some-useful-configuration-pathes}} -The virtual application can be configured with the virtual\_app section of the configutation file. -\begin{itemize} -\item {} -\sphinxstylestrong{APPLICATION.virtual\_app} -\begin{itemize} -\item {} -\sphinxstylestrong{name} : name of the launcher (to replace the default runAppli). - -\item {} -\sphinxstylestrong{application\_name} : (optional) the name of the virtual application directory, if missing the default value is \sphinxcode{\sphinxupquote{\$name + \_appli}}. - -\end{itemize} - -\end{itemize} - -\clearpage - - -\section{Command log} -\label{\detokenize{commands/log:svn}}\label{\detokenize{commands/log:command-log}}\label{\detokenize{commands/log::doc}} - -\subsection{Description} -\label{\detokenize{commands/log:description}} -The \sphinxstylestrong{log} command displays sat log in a web browser or in a terminal. - - -\subsection{Usage} -\label{\detokenize{commands/log:usage}}\begin{itemize} -\item {} -Show (in a web browser) the log of the commands corresponding to an application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Show the log for commands that do not use any application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} -\end{sphinxVerbatim} - -\item {} -The \textendash{}terminal (or -t) display the log directly in the terminal, through a \sphinxhref{https://en.wikipedia.org/wiki/Command-line\_interface}{CLI}% -\begin{footnote}[9]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Command-line\_interface} -% -\end{footnote} interactive menu: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{terminal} -\end{sphinxVerbatim} - -\item {} -The \textendash{}last option displays only the last command: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{last} -\end{sphinxVerbatim} - -\item {} -To access the last compilation log in terminal mode, use \textendash{}last\_terminal option: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{last\PYGZus{}terminal} -\end{sphinxVerbatim} - -\item {} -The \textendash{}clean (int) option erases the n older log files and print the number of remaining log files: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{log} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{clean} \PYG{l+m+mi}{50} -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/log:some-useful-configuration-pathes}}\begin{itemize} -\item {} -\sphinxstylestrong{USER} -\begin{itemize} -\item {} -\sphinxstylestrong{browser} : The browser used to show the log (by default \sphinxstyleemphasis{firefox}). - -\item {} -\sphinxstylestrong{log\_dir} : The directory used to store the log files. - -\end{itemize} - -\end{itemize} - -\clearpage - - -\section{Command environ} -\label{\detokenize{commands/environ:svn}}\label{\detokenize{commands/environ:command-environ}}\label{\detokenize{commands/environ::doc}} - -\subsection{Description} -\label{\detokenize{commands/environ:description}} -The \sphinxstylestrong{environ} command generates the environment files used -to run and compile your application (as \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[10]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} is an example). - -\begin{sphinxadmonition}{note}{Note:} -these files are \sphinxstylestrong{not} required, -salomeTool set the environment himself, when compiling. -And so does the salome launcher. - -These files are useful when someone wants to check the environment. -They could be used in debug mode to set the environment for \sphinxstyleemphasis{gdb}. -\end{sphinxadmonition} - -The configuration part at the end of this page explains how -to specify the environment used by sat (at build or run time), -and saved in some files by \sphinxstyleemphasis{sat environ} command. - - -\subsection{Usage} -\label{\detokenize{commands/environ:usage}}\begin{itemize} -\item {} -Create the shell environment files of the application: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{environ} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Create the environment files of the application for a given shell. -Options are bash, bat (for windows) and cfg (the configuration format used by \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[11]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote}): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{environ} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{shell} \PYG{p}{[}\PYG{n}{bash}\PYG{o}{\textbar{}}\PYG{n}{cfg}\PYG{o}{\textbar{}}\PYG{n+nb}{all}\PYG{p}{]} -\end{sphinxVerbatim} - -\item {} -Use a different prefix for the files (default is ‘env’): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} This will create file \PYGZlt{}prefix\PYGZgt{}\PYGZus{}launch.sh, \PYGZlt{}prefix\PYGZgt{}\PYGZus{}build.sh} -sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}prefix \PYGZlt{}prefix\PYGZgt{} -\end{sphinxVerbatim} - -\item {} -Use a different target directory for the files: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} This will create file env\PYGZus{}launch.sh, env\PYGZus{}build.sh} -\PYG{c+c1}{\PYGZsh{} in the directory corresponding to \PYGZlt{}path\PYGZgt{}} -sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}target \PYGZlt{}path\PYGZgt{} -\end{sphinxVerbatim} - -\item {} -Generate the environment files only with the given products: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} This will create the environment files only for the given products} -\PYG{c+c1}{\PYGZsh{} and their prerequisites.} -\PYG{c+c1}{\PYGZsh{} It is useful when you want to visualise which environment uses} -\PYG{c+c1}{\PYGZsh{} sat to compile a given product.} -sat environ \PYGZlt{}application\PYGZgt{} \PYGZhy{}\PYGZhy{}product \PYGZlt{}product1\PYGZgt{},\PYGZlt{}product2\PYGZgt{}, ... -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Configuration} -\label{\detokenize{commands/environ:configuration}} -The specification of the environment can be done through several mechanisms. -\begin{enumerate} -\item {} -For salome products (the products with the property \sphinxcode{\sphinxupquote{is\_SALOME\_module}} as \sphinxcode{\sphinxupquote{yes}}) the environment is set automatically by sat, in respect with \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[12]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} requirements. - -\item {} -For other products, the environment is set with the use of the environ section within the pyconf file of the product. The user has two possibilities, either set directly the environment within the section, or specify a python script which wil be used to set the environment programmatically. - -\end{enumerate} - -Within the section, the user can define environment variables. He can also modify PATH variables, by appending or prepending directories. -In the following example, we prepend \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}/lib} to \sphinxcode{\sphinxupquote{LD\_LIBRARY\_PATH}} (note the \sphinxstyleemphasis{left first} underscore), append \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}/lib} to \sphinxcode{\sphinxupquote{PYTHONPATH}} (note the \sphinxstyleemphasis{right last} underscore), and set \sphinxcode{\sphinxupquote{LAPACK\_ROOT\_DIR}} to \sphinxstyleemphasis{\textless{}install\_dir\textgreater{}}: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -environ : -\PYG{o}{\PYGZob{}} - \PYGZus{}LD\PYGZus{}LIBRARY\PYGZus{}PATH : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}} - PYTHONPATH\PYGZus{} : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}} - LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} -\PYG{o}{\PYGZcb{}} -\end{sphinxVerbatim} - -It is possible to distinguish the build environment from the launch environment: use a subsection called \sphinxstyleemphasis{build} or \sphinxstyleemphasis{launch}. In the example below, \sphinxcode{\sphinxupquote{LD\_LIBRARY\_PATH}} and \sphinxcode{\sphinxupquote{PYTHONPATH}} are only modified at run time, not at compile time: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -environ : -\PYG{o}{\PYGZob{}} - build : - \PYG{o}{\PYGZob{}} - LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} - \PYG{o}{\PYGZcb{}} - launch : - \PYG{o}{\PYGZob{}} - LAPACK\PYGZus{}ROOT\PYGZus{}DIR : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} - \PYGZus{}LD\PYGZus{}LIBRARY\PYGZus{}PATH : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}} - PYTHONPATH\PYGZus{} : \PYG{n+nv}{\PYGZdl{}install\PYGZus{}dir} + \PYG{n+nv}{\PYGZdl{}VARS}.sep + \PYG{l+s+s2}{\PYGZdq{}lib\PYGZdq{}} - \PYG{o}{\PYGZcb{}} -\PYG{o}{\PYGZcb{}} -\end{sphinxVerbatim} -\begin{enumerate} -\setcounter{enumi}{2} -\item {} -The last possibility is to set the environment with a python script. The script should be provided in the \sphinxstyleemphasis{products/env\_scripts} directory of the sat project, and its name is specified in the environment section with the key \sphinxcode{\sphinxupquote{environ.env\_script}}: - -\end{enumerate} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{environ} \PYG{p}{:} -\PYG{p}{\PYGZob{}} - \PYG{n}{env\PYGZus{}script} \PYG{p}{:} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{lapack.py}\PYG{l+s+s1}{\PYGZsq{}} -\PYG{p}{\PYGZcb{}} -\end{sphinxVerbatim} - -Please note that the two modes are complementary and are both taken into account. -Most of the time, the first mode is sufficient. - -The second mode can be used when the environment has to be set programmatically. -The developer implements a handle (as a python method) -which is called by sat to set the environment. -Here is an example: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+ch}{\PYGZsh{}!/usr/bin/env python} -\PYG{c+c1}{\PYGZsh{}\PYGZhy{}*\PYGZhy{} coding:utf\PYGZhy{}8 \PYGZhy{}*\PYGZhy{}} - -\PYG{k+kn}{import} \PYG{n+nn}{os.path} -\PYG{k+kn}{import} \PYG{n+nn}{platform} - -\PYG{k}{def} \PYG{n+nf}{set\PYGZus{}env}\PYG{p}{(}\PYG{n}{env}\PYG{p}{,} \PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{n}{version}\PYG{p}{)}\PYG{p}{:} - \PYG{n}{env}\PYG{o}{.}\PYG{n}{set}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{TRUST\PYGZus{}ROOT\PYGZus{}DIR}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{)} - \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{bin}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)} - \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{include}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)} - \PYG{n}{env}\PYG{o}{.}\PYG{n}{prepend}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{LD\PYGZus{}LIBRARY\PYGZus{}PATH}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{os}\PYG{o}{.}\PYG{n}{path}\PYG{o}{.}\PYG{n}{join}\PYG{p}{(}\PYG{n}{prereq\PYGZus{}dir}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{lib}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}\PYG{p}{)} - \PYG{k}{return} -\end{sphinxVerbatim} - -SalomeTools defines four handles: -\begin{itemize} -\item {} -\sphinxstylestrong{set\_env(env, prereq\_dir, version)} : used at build and run time. - -\item {} -\sphinxstylestrong{set\_env\_launch(env, prereq\_dir, version)} : used only at run time (if defined!) - -\item {} -\sphinxstylestrong{set\_env\_build(env, prereq\_dir, version)} : used only at build time (if defined!) - -\item {} -\sphinxstylestrong{set\_native\_env(env)} : used only for native products, at build and run time. - -\end{itemize} - -\clearpage - - -\section{Command clean} -\label{\detokenize{commands/clean:svn}}\label{\detokenize{commands/clean:command-clean}}\label{\detokenize{commands/clean::doc}} - -\subsection{Description} -\label{\detokenize{commands/clean:description}} -The \sphinxstylestrong{clean} command removes products in the \sphinxstyleemphasis{source, build, or install} directories of an application. Theses directories are usually named \sphinxcode{\sphinxupquote{SOURCES, BUILD, INSTALL}}. - -Use the options to define what directories you want to suppress and to set the list of products - - -\subsection{Usage} -\label{\detokenize{commands/clean:usage}}\begin{itemize} -\item {} -Clean all previously created \sphinxstyleemphasis{build} and \sphinxstyleemphasis{install} directories (example application as \sphinxstyleemphasis{SALOME\_xx}): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} take care, is long time to restore, sometimes} -sat clean SALOME\PYGZhy{}xx \PYGZhy{}\PYGZhy{}build \PYGZhy{}\PYGZhy{}install -\end{sphinxVerbatim} - -\item {} -Clean previously created \sphinxstyleemphasis{build} and \sphinxstyleemphasis{install} directories, only for products with property \sphinxstyleemphasis{is\_salome\_module}: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -sat clean SALOME\PYGZhy{}xxx \PYGZhy{}\PYGZhy{}build \PYGZhy{}\PYGZhy{}install \PYG{l+s+se}{\PYGZbs{}} - \PYGZhy{}\PYGZhy{}properties is\PYGZus{}salome\PYGZus{}module:yes -\end{sphinxVerbatim} - -\end{itemize} - - -\subsection{Availables options} -\label{\detokenize{commands/clean:availables-options}}\begin{itemize} -\item {} -\sphinxstylestrong{\textendash{}products} : Products to clean. - -\item {} -\sphinxstylestrong{\textendash{}properties} : - -\begin{DUlineblock}{0em} -\item[] Filter the products by their properties. -\item[] Syntax: \sphinxstyleemphasis{\textendash{}properties \textless{}property\textgreater{}:\textless{}value\textgreater{}} -\end{DUlineblock} - -\item {} -\sphinxstylestrong{\textendash{}sources} : Clean the product source directories. - -\item {} -\sphinxstylestrong{\textendash{}build} : Clean the product build directories. - -\item {} -\sphinxstylestrong{\textendash{}install} : Clean the product install directories. - -\item {} -\sphinxstylestrong{\textendash{}all} : Clean the product source, build and install directories. - -\item {} -\sphinxstylestrong{\textendash{}sources\_without\_dev} : - -\begin{DUlineblock}{0em} -\item[] Do not clean the products in development mode, -\item[] (they could have \sphinxhref{https://en.wikipedia.org/wiki/Version\_control}{VCS}% -\begin{footnote}[13]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Version\_control} -% -\end{footnote} commits pending). -\end{DUlineblock} - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/clean:some-useful-configuration-pathes}} -No specific configuration. - -\clearpage - - -\section{Command package} -\label{\detokenize{commands/package:svn}}\label{\detokenize{commands/package:command-package}}\label{\detokenize{commands/package::doc}} - -\subsection{Description} -\label{\detokenize{commands/package:description}} -The \sphinxstylestrong{package} command creates a \sphinxhref{http://www.salome-platform.org}{SALOME}% -\begin{footnote}[14]\sphinxAtStartFootnote -\sphinxnolinkurl{http://www.salome-platform.org} -% -\end{footnote} archive (usually a compressed \sphinxhref{https://en.wikipedia.org/wiki/Tar\_(computing)}{Tar}% -\begin{footnote}[15]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Tar\_(computing)} -% -\end{footnote} file .tgz). -This tar file is used later to intall SALOME on other remote computer. - -Depending on the selected options, the archive includes sources and binaries -of SALOME products and prerequisites. - -Usually utility \sphinxstyleemphasis{salomeTools} is included in the archive. - -\begin{sphinxadmonition}{note}{Note:} -By default the package includes the sources of prerequisites and products. -To select a subset use the \sphinxstyleemphasis{\textendash{}without\_property} or \sphinxstyleemphasis{\textendash{}with\_vcs} options. -\end{sphinxadmonition} - - -\subsection{Usage} -\label{\detokenize{commands/package:usage}}\begin{itemize} -\item {} -Create a package for a product (example as \sphinxstyleemphasis{SALOME\_xx}): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} -\end{sphinxVerbatim} - -This command will create an archive named \sphinxcode{\sphinxupquote{SALOME\_xx.tgz}} -in the working directory (\sphinxcode{\sphinxupquote{USER.workDir}}). -If the archive already exists, do nothing. - -\item {} -Create a package with a specific name: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{YourSpecificName} -\end{sphinxVerbatim} - -\end{itemize} - -\begin{sphinxadmonition}{note}{Note:} -By default, the archive is created in the working directory of the user (\sphinxcode{\sphinxupquote{USER.workDir}}). - -If the option \sphinxstyleemphasis{\textendash{}name} is used with a path (relative or absolute) it will be used. - -If the option \sphinxstyleemphasis{\textendash{}name} is not used and binaries (prerequisites and products) -are included in the package, the \sphinxhref{https://en.wikipedia.org/wiki/Operating\_system}{OS}% -\begin{footnote}[16]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Operating\_system} -% -\end{footnote} architecture -will be appended to the name (example: \sphinxcode{\sphinxupquote{SALOME\_xx-CO7.tgz}}). - -Examples: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} Creates SALOME\PYGZus{}xx.tgz in \PYGZdl{}USER.workDir} -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} - -\PYG{c+c1}{\PYGZsh{} Creates SALOME\PYGZus{}xx\PYGZus{}\PYGZlt{}arch\PYGZgt{}.tgz in \PYGZdl{}USER.workDir} -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{binaries} - -\PYG{c+c1}{\PYGZsh{} Creates MySpecificName.tgz in \PYGZdl{}USER.workDir} -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{name} \PYG{n}{MySpecificName} -\end{sphinxVerbatim} -\end{sphinxadmonition} -\begin{itemize} -\item {} -Force the creation of the archive (if it already exists): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{force} -\end{sphinxVerbatim} - -\item {} -Include the binaries in the archive (products and prerequisites): - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{binaries} -\end{sphinxVerbatim} - -This command will create an archive named \sphinxcode{\sphinxupquote{SALOME\_xx \_\textless{}arch\textgreater{}.tgz}} -where \textless{}arch\textgreater{} is the \sphinxhref{https://en.wikipedia.org/wiki/Operating\_system}{OS}% -\begin{footnote}[17]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Operating\_system} -% -\end{footnote} architecture of the machine. - -\item {} -Do not delete Version Control System (\sphinxhref{https://en.wikipedia.org/wiki/Version\_control}{VCS}% -\begin{footnote}[18]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Version\_control} -% -\end{footnote}) informations from the configurations files of the embedded salomeTools: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{package} \PYG{n}{SALOME\PYGZus{}xx} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{with\PYGZus{}vcs} -\end{sphinxVerbatim} - -The version control systems known by this option are \sphinxhref{https://fr.wikipedia.org/wiki/Concurrent\_versions\_system}{CVS}% -\begin{footnote}[19]\sphinxAtStartFootnote -\sphinxnolinkurl{https://fr.wikipedia.org/wiki/Concurrent\_versions\_system} -% -\end{footnote}, \sphinxhref{https://en.wikipedia.org/wiki/Apache\_Subversion}{SVN}% -\begin{footnote}[20]\sphinxAtStartFootnote -\sphinxnolinkurl{https://en.wikipedia.org/wiki/Apache\_Subversion} -% -\end{footnote} and \sphinxhref{https://git-scm.com}{Git}% -\begin{footnote}[21]\sphinxAtStartFootnote -\sphinxnolinkurl{https://git-scm.com} -% -\end{footnote}. - -\end{itemize} - - -\subsection{Some useful configuration pathes} -\label{\detokenize{commands/package:some-useful-configuration-pathes}} -No specific configuration. - -\clearpage - - -\section{Command generate} -\label{\detokenize{commands/generate:svn}}\label{\detokenize{commands/generate:command-generate}}\label{\detokenize{commands/generate::doc}} - -\subsection{Description} -\label{\detokenize{commands/generate:description}} -The \sphinxstylestrong{generate} command generates and compile SALOME modules from cpp modules using YACSGEN. - -\begin{sphinxadmonition}{note}{Note:} -This command uses YACSGEN to generate the module. It needs to be specified with \sphinxstyleemphasis{\textendash{}yacsgen} option, or defined in the product or by the environment variable \sphinxcode{\sphinxupquote{\$YACSGEN\_ROOT\_DIR}}. -\end{sphinxadmonition} - - -\subsection{Remarks} -\label{\detokenize{commands/generate:remarks}}\begin{itemize} -\item {} -This command will only apply on the CPP modules of the application, those who have both properties: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{cpp} \PYG{p}{:} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{yes}\PYG{l+s+s2}{\PYGZdq{}} -\PYG{n}{generate} \PYG{p}{:} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{yes}\PYG{l+s+s2}{\PYGZdq{}} -\end{sphinxVerbatim} - -\item {} -The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation) - -\end{itemize} - - -\subsection{Usage} -\label{\detokenize{commands/generate:usage}}\begin{itemize} -\item {} -Generate all the modules of a product: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\item {} -Generate only specific modules: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{products} \PYG{o}{\PYGZlt{}}\PYG{n}{list\PYGZus{}of\PYGZus{}products}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -Remark: modules which don’t have the \sphinxstyleemphasis{generate} property are ignored. - -\item {} -Use a specific version of YACSGEN: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{sat} \PYG{n}{generate} \PYG{o}{\PYGZlt{}}\PYG{n}{application}\PYG{o}{\PYGZgt{}} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZhy{}}\PYG{n}{yacsgen} \PYG{o}{\PYGZlt{}}\PYG{n}{path\PYGZus{}to\PYGZus{}yacsgen}\PYG{o}{\PYGZgt{}} -\end{sphinxVerbatim} - -\end{itemize} - - -\chapter{Developer documentation} -\label{\detokenize{index:developer-documentation}} -\clearpage - - -\section{Add a user custom command} -\label{\detokenize{write_command:svn}}\label{\detokenize{write_command:add-a-user-custom-command}}\label{\detokenize{write_command::doc}} - -\subsection{Introduction} -\label{\detokenize{write_command:introduction}} -\begin{sphinxadmonition}{note}{Note:} -This documentation is for \sphinxhref{https://docs.python.org/2.7}{Python}% -\begin{footnote}[22]\sphinxAtStartFootnote -\sphinxnolinkurl{https://docs.python.org/2.7} -% -\end{footnote} developers. -\end{sphinxadmonition} - -The salomeTools product provides a simple way to develop commands. -The first thing to do is to add a file with \sphinxstyleemphasis{.py} extension in the \sphinxcode{\sphinxupquote{commands}} directory of salomeTools. - -Here are the basic requirements that must be followed in this file in order to add a command. - - -\subsection{Basic requirements} -\label{\detokenize{write_command:basic-requirements}} -By adding a file \sphinxstyleemphasis{mycommand.py} in the \sphinxcode{\sphinxupquote{commands}} directory, salomeTools will define a new command named \sphinxcode{\sphinxupquote{mycommand}}. - -In \sphinxstyleemphasis{mycommand.py}, there must be the following method: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:} - \PYG{c+c1}{\PYGZsh{} your algorithm ...} - \PYG{k}{pass} -\end{sphinxVerbatim} - -In fact, at this point, the command will already be functional. -But there are some useful services provided by salomeTools : -\begin{itemize} -\item {} -You can give some options to your command: - -\end{itemize} - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{k+kn}{import} \PYG{n+nn}{src} - -\PYG{c+c1}{\PYGZsh{} Define all possible option for mycommand command : \PYGZsq{}sat mycommand \PYGZlt{}options\PYGZgt{}\PYGZsq{}} -\PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)} -\PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{m}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{} - \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{} - \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{My option changes the behavior of my command.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} - -\PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:} - \PYG{c+c1}{\PYGZsh{} Parse the options} - \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)} - \PYG{c+c1}{\PYGZsh{} algorithm} -\end{sphinxVerbatim} -\begin{itemize} -\item {} -You can add a \sphinxstyleemphasis{description} method that will display a message when the user will call the help: - -\end{itemize} - -\fvset{hllines={, 9, 10,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] - \PYG{k+kn}{import} \PYG{n+nn}{src} - - \PYG{c+c1}{\PYGZsh{} Define all possible option for mycommand command : \PYGZsq{}sat mycommand \PYGZlt{}options\PYGZgt{}\PYGZsq{}} - \PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)} - \PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{m}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{} - \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{myoption}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYGZbs{} - \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{My option changes the behavior of my command.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} - - \PYG{k}{def} \PYG{n+nf}{description}\PYG{p}{(}\PYG{p}{)}\PYG{p}{:} - \PYG{k}{return} \PYG{n}{\PYGZus{}}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{The help of mycommand.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)} - - \PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:} - \PYG{c+c1}{\PYGZsh{} Parse the options} - \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)} - \PYG{c+c1}{\PYGZsh{} algorithm} -\end{sphinxVerbatim} - - -\subsection{HowTo access salomeTools config and other commands} -\label{\detokenize{write_command:howto-access-salometools-config-and-other-commands}} -The \sphinxstyleemphasis{runner} variable is an python instance of \sphinxstyleemphasis{Sat} class. -It gives access to \sphinxstyleemphasis{runner.cfg} which is the data model defined from all -\sphinxstyleemphasis{configuration pyconf files} of salomeTools -For example, \sphinxstyleemphasis{runner.cfg.APPLICATION.workdir} -contains the root directory of the current application. - -The \sphinxstyleemphasis{runner} variable gives also access to other commands of salomeTools: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} as CLI\PYGZus{} \PYGZsq{}sat prepare ...\PYGZsq{}} -\PYG{n}{runner}\PYG{o}{.}\PYG{n}{prepare}\PYG{p}{(}\PYG{n}{runner}\PYG{o}{.}\PYG{n}{cfg}\PYG{o}{.}\PYG{n}{VARS}\PYG{o}{.}\PYG{n}{application}\PYG{p}{)} -\end{sphinxVerbatim} - - -\subsection{HowTo logger} -\label{\detokenize{write_command:howto-logger}} -The logger variable is an instance of the Logger class. -It gives access to the write method. - -When this method is called, the message passed as parameter -will be displayed in the terminal and written in an xml log file. - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{My message}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{,} \PYG{l+m+mi}{3}\PYG{p}{)} \PYG{c+c1}{\PYGZsh{} 3 as default} -\end{sphinxVerbatim} - -The second argument defines the level of verbosity -that is wanted for this message. -It has to be between 1 and 5 (the most verbose level). - - -\subsection{HELLO example} -\label{\detokenize{write_command:hello-example}} -Here is a \sphinxstyleemphasis{hello} command, file \sphinxstyleemphasis{commands/hello.py}: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{k+kn}{import} \PYG{n+nn}{src} - -\PYG{l+s+sd}{\PYGZdq{}\PYGZdq{}\PYGZdq{}} -\PYG{l+s+sd}{hello.py} -\PYG{l+s+sd}{Define all possible options for hello command:} -\PYG{l+s+sd}{sat hello \PYGZlt{}options\PYGZgt{}} -\PYG{l+s+sd}{\PYGZdq{}\PYGZdq{}\PYGZdq{}} - -\PYG{n}{parser} \PYG{o}{=} \PYG{n}{src}\PYG{o}{.}\PYG{n}{options}\PYG{o}{.}\PYG{n}{Options}\PYG{p}{(}\PYG{p}{)} -\PYG{n}{parser}\PYG{o}{.}\PYG{n}{add\PYGZus{}option}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{f}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{french}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{boolean}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{french}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{french set hello message in french.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)} - -\PYG{k}{def} \PYG{n+nf}{description}\PYG{p}{(}\PYG{p}{)}\PYG{p}{:} - \PYG{k}{return} \PYG{n}{\PYGZus{}}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{The help of hello.}\PYG{l+s+s2}{\PYGZdq{}}\PYG{p}{)} - -\PYG{k}{def} \PYG{n+nf}{run}\PYG{p}{(}\PYG{n}{args}\PYG{p}{,} \PYG{n}{runner}\PYG{p}{,} \PYG{n}{logger}\PYG{p}{)}\PYG{p}{:} - \PYG{c+c1}{\PYGZsh{} Parse the options} - \PYG{p}{(}\PYG{n}{options}\PYG{p}{,} \PYG{n}{args}\PYG{p}{)} \PYG{o}{=} \PYG{n}{parser}\PYG{o}{.}\PYG{n}{parse\PYGZus{}args}\PYG{p}{(}\PYG{n}{args}\PYG{p}{)} - \PYG{c+c1}{\PYGZsh{} algorithm} - \PYG{k}{if} \PYG{o+ow}{not} \PYG{n}{options}\PYG{o}{.}\PYG{n}{french}\PYG{p}{:} - \PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{HELLO! WORLD!}\PYG{l+s+se}{\PYGZbs{}n}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} - \PYG{k}{else}\PYG{p}{:} - \PYG{n}{logger}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{Bonjour tout le monde!}\PYG{l+s+se}{\PYGZbs{}n}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} -\end{sphinxVerbatim} - -A first call of hello: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{c+c1}{\PYGZsh{} Get the help of hello:} -./sat \PYGZhy{}\PYGZhy{}help hello - -\PYG{c+c1}{\PYGZsh{} To get bonjour} -./sat hello \PYGZhy{}\PYGZhy{}french -Bonjour tout le monde! - -\PYG{c+c1}{\PYGZsh{} To get hello} -./sat hello -HELLO! WORLD! - -\PYG{c+c1}{\PYGZsh{} To get the log} -./sat log -\end{sphinxVerbatim} - - -\chapter{Code documentation} -\label{\detokenize{index:code-documentation}} - -\section{src} -\label{\detokenize{commands/apidoc/modules:src}}\label{\detokenize{commands/apidoc/modules::doc}} - -\subsection{src package} -\label{\detokenize{commands/apidoc/src::doc}}\label{\detokenize{commands/apidoc/src:src-package}} - -\subsubsection{Subpackages} -\label{\detokenize{commands/apidoc/src:subpackages}} - -\paragraph{src.colorama package} -\label{\detokenize{commands/apidoc/src.colorama:src-colorama-package}}\label{\detokenize{commands/apidoc/src.colorama::doc}} - -\subparagraph{Submodules} -\label{\detokenize{commands/apidoc/src.colorama:submodules}} - -\subparagraph{src.colorama.ansi module} -\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.ansi}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-ansi-module}}\index{src.colorama.ansi (module)} -This module generates ANSI character codes to printing colors to terminals. -See: \sphinxurl{http://en.wikipedia.org/wiki/ANSI\_escape\_code} -\index{AnsiBack (class in src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiBack}}} -Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}}) -\index{BLACK (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 40}}} -\end{fulllineitems} - -\index{BLUE (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 44}}} -\end{fulllineitems} - -\index{CYAN (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 46}}} -\end{fulllineitems} - -\index{GREEN (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 42}}} -\end{fulllineitems} - -\index{LIGHTBLACK\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLACK_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLACK\_EX}}\sphinxbfcode{\sphinxupquote{ = 100}}} -\end{fulllineitems} - -\index{LIGHTBLUE\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTBLUE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLUE\_EX}}\sphinxbfcode{\sphinxupquote{ = 104}}} -\end{fulllineitems} - -\index{LIGHTCYAN\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTCYAN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTCYAN\_EX}}\sphinxbfcode{\sphinxupquote{ = 106}}} -\end{fulllineitems} - -\index{LIGHTGREEN\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTGREEN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTGREEN\_EX}}\sphinxbfcode{\sphinxupquote{ = 102}}} -\end{fulllineitems} - -\index{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTMAGENTA_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTMAGENTA\_EX}}\sphinxbfcode{\sphinxupquote{ = 105}}} -\end{fulllineitems} - -\index{LIGHTRED\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTRED_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTRED\_EX}}\sphinxbfcode{\sphinxupquote{ = 101}}} -\end{fulllineitems} - -\index{LIGHTWHITE\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTWHITE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTWHITE\_EX}}\sphinxbfcode{\sphinxupquote{ = 107}}} -\end{fulllineitems} - -\index{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.LIGHTYELLOW_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTYELLOW\_EX}}\sphinxbfcode{\sphinxupquote{ = 103}}} -\end{fulllineitems} - -\index{MAGENTA (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 45}}} -\end{fulllineitems} - -\index{RED (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 41}}} -\end{fulllineitems} - -\index{RESET (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.RESET}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET}}\sphinxbfcode{\sphinxupquote{ = 49}}} -\end{fulllineitems} - -\index{WHITE (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.WHITE}}\pysigline{\sphinxbfcode{\sphinxupquote{WHITE}}\sphinxbfcode{\sphinxupquote{ = 47}}} -\end{fulllineitems} - -\index{YELLOW (src.colorama.ansi.AnsiBack attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiBack.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 43}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{AnsiCodes (class in src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiCodes}}} -Bases: \sphinxcode{\sphinxupquote{object}} - -\end{fulllineitems} - -\index{AnsiCursor (class in src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiCursor}}} -Bases: \sphinxcode{\sphinxupquote{object}} -\index{BACK() (src.colorama.ansi.AnsiCursor method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.BACK}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{BACK}}}{\emph{n=1}}{} -\end{fulllineitems} - -\index{DOWN() (src.colorama.ansi.AnsiCursor method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.DOWN}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{DOWN}}}{\emph{n=1}}{} -\end{fulllineitems} - -\index{FORWARD() (src.colorama.ansi.AnsiCursor method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.FORWARD}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{FORWARD}}}{\emph{n=1}}{} -\end{fulllineitems} - -\index{POS() (src.colorama.ansi.AnsiCursor method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.POS}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{POS}}}{\emph{x=1}, \emph{y=1}}{} -\end{fulllineitems} - -\index{UP() (src.colorama.ansi.AnsiCursor method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCursor.UP}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{UP}}}{\emph{n=1}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{AnsiFore (class in src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiFore}}} -Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}}) -\index{BLACK (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 30}}} -\end{fulllineitems} - -\index{BLUE (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 34}}} -\end{fulllineitems} - -\index{CYAN (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 36}}} -\end{fulllineitems} - -\index{GREEN (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 32}}} -\end{fulllineitems} - -\index{LIGHTBLACK\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLACK_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLACK\_EX}}\sphinxbfcode{\sphinxupquote{ = 90}}} -\end{fulllineitems} - -\index{LIGHTBLUE\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTBLUE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTBLUE\_EX}}\sphinxbfcode{\sphinxupquote{ = 94}}} -\end{fulllineitems} - -\index{LIGHTCYAN\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTCYAN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTCYAN\_EX}}\sphinxbfcode{\sphinxupquote{ = 96}}} -\end{fulllineitems} - -\index{LIGHTGREEN\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTGREEN_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTGREEN\_EX}}\sphinxbfcode{\sphinxupquote{ = 92}}} -\end{fulllineitems} - -\index{LIGHTMAGENTA\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTMAGENTA_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTMAGENTA\_EX}}\sphinxbfcode{\sphinxupquote{ = 95}}} -\end{fulllineitems} - -\index{LIGHTRED\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTRED_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTRED\_EX}}\sphinxbfcode{\sphinxupquote{ = 91}}} -\end{fulllineitems} - -\index{LIGHTWHITE\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTWHITE_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTWHITE\_EX}}\sphinxbfcode{\sphinxupquote{ = 97}}} -\end{fulllineitems} - -\index{LIGHTYELLOW\_EX (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.LIGHTYELLOW_EX}}\pysigline{\sphinxbfcode{\sphinxupquote{LIGHTYELLOW\_EX}}\sphinxbfcode{\sphinxupquote{ = 93}}} -\end{fulllineitems} - -\index{MAGENTA (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 35}}} -\end{fulllineitems} - -\index{RED (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 31}}} -\end{fulllineitems} - -\index{RESET (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.RESET}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET}}\sphinxbfcode{\sphinxupquote{ = 39}}} -\end{fulllineitems} - -\index{WHITE (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.WHITE}}\pysigline{\sphinxbfcode{\sphinxupquote{WHITE}}\sphinxbfcode{\sphinxupquote{ = 37}}} -\end{fulllineitems} - -\index{YELLOW (src.colorama.ansi.AnsiFore attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiFore.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 33}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{AnsiStyle (class in src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{AnsiStyle}}} -Bases: {\hyperref[\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.colorama.ansi.AnsiCodes}}}}} (\autopageref*{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiCodes}}) -\index{BRIGHT (src.colorama.ansi.AnsiStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.BRIGHT}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT}}\sphinxbfcode{\sphinxupquote{ = 1}}} -\end{fulllineitems} - -\index{DIM (src.colorama.ansi.AnsiStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.DIM}}\pysigline{\sphinxbfcode{\sphinxupquote{DIM}}\sphinxbfcode{\sphinxupquote{ = 2}}} -\end{fulllineitems} - -\index{NORMAL (src.colorama.ansi.AnsiStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.NORMAL}}\pysigline{\sphinxbfcode{\sphinxupquote{NORMAL}}\sphinxbfcode{\sphinxupquote{ = 22}}} -\end{fulllineitems} - -\index{RESET\_ALL (src.colorama.ansi.AnsiStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.AnsiStyle.RESET_ALL}}\pysigline{\sphinxbfcode{\sphinxupquote{RESET\_ALL}}\sphinxbfcode{\sphinxupquote{ = 0}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{clear\_line() (in module src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.clear_line}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{clear\_line}}}{\emph{mode=2}}{} -\end{fulllineitems} - -\index{clear\_screen() (in module src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.clear_screen}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{clear\_screen}}}{\emph{mode=2}}{} -\end{fulllineitems} - -\index{code\_to\_chars() (in module src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.code_to_chars}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{code\_to\_chars}}}{\emph{code}}{} -\end{fulllineitems} - -\index{set\_title() (in module src.colorama.ansi)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansi.set_title}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansi.}}\sphinxbfcode{\sphinxupquote{set\_title}}}{\emph{title}}{} -\end{fulllineitems} - - - -\subparagraph{src.colorama.ansitowin32 module} -\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.ansitowin32}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-ansitowin32-module}}\index{src.colorama.ansitowin32 (module)}\index{AnsiToWin32 (class in src.colorama.ansitowin32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{AnsiToWin32}}}{\emph{wrapped}, \emph{convert=None}, \emph{strip=None}, \emph{autoreset=False}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Implements a ‘write()’ method which, on Windows, will strip ANSI character -sequences from the text, and if outputting to a tty, will convert them into -win32 function calls. -\index{ANSI\_CSI\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE}}\pysigline{\sphinxbfcode{\sphinxupquote{ANSI\_CSI\_RE}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}} -\end{fulllineitems} - -\index{ANSI\_OSC\_RE (src.colorama.ansitowin32.AnsiToWin32 attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.ANSI_OSC_RE}}\pysigline{\sphinxbfcode{\sphinxupquote{ANSI\_OSC\_RE}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}} -\end{fulllineitems} - -\index{call\_win32() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.call_win32}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{call\_win32}}}{\emph{command}, \emph{params}}{} -\end{fulllineitems} - -\index{convert\_ansi() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_ansi}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{convert\_ansi}}}{\emph{paramstring}, \emph{command}}{} -\end{fulllineitems} - -\index{convert\_osc() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.convert_osc}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{convert\_osc}}}{\emph{text}}{} -\end{fulllineitems} - -\index{extract\_params() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.extract_params}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{extract\_params}}}{\emph{command}, \emph{paramstring}}{} -\end{fulllineitems} - -\index{get\_win32\_calls() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.get_win32_calls}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_win32\_calls}}}{}{} -\end{fulllineitems} - -\index{reset\_all() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.reset_all}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{reset\_all}}}{}{} -\end{fulllineitems} - -\index{should\_wrap() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.should_wrap}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{should\_wrap}}}{}{} -True if this class is actually needed. If false, then the output -stream will not be affected, nor will win32 calls be issued, so -wrapping stdout is not actually required. This will generally be -False on non-Windows platforms, unless optional functionality like -autoreset has been requested using kwargs to init() - -\end{fulllineitems} - -\index{write() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{text}}{} -\end{fulllineitems} - -\index{write\_and\_convert() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_and_convert}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_and\_convert}}}{\emph{text}}{} -Write the given text to our wrapped stream, stripping any ANSI -sequences from the text, and optionally converting them into win32 -calls. - -\end{fulllineitems} - -\index{write\_plain\_text() (src.colorama.ansitowin32.AnsiToWin32 method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.AnsiToWin32.write_plain_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_plain\_text}}}{\emph{text}, \emph{start}, \emph{end}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{StreamWrapper (class in src.colorama.ansitowin32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{StreamWrapper}}}{\emph{wrapped}, \emph{converter}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Wraps a stream (such as stdout), acting as a transparent proxy for all -attribute access apart from method ‘write()’, which is delegated to our -Converter instance. -\index{write() (src.colorama.ansitowin32.StreamWrapper method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.StreamWrapper.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{text}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{is\_a\_tty() (in module src.colorama.ansitowin32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_a_tty}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{is\_a\_tty}}}{\emph{stream}}{} -\end{fulllineitems} - -\index{is\_stream\_closed() (in module src.colorama.ansitowin32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.ansitowin32.is_stream_closed}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.ansitowin32.}}\sphinxbfcode{\sphinxupquote{is\_stream\_closed}}}{\emph{stream}}{} -\end{fulllineitems} - - - -\subparagraph{src.colorama.initialise module} -\label{\detokenize{commands/apidoc/src.colorama:src-colorama-initialise-module}}\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.initialise}}\index{src.colorama.initialise (module)}\index{colorama\_text() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.colorama_text}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{colorama\_text}}}{\emph{*args}, \emph{**kwds}}{} -\end{fulllineitems} - -\index{deinit() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.deinit}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{deinit}}}{}{} -\end{fulllineitems} - -\index{init() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.init}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{init}}}{\emph{autoreset=False}, \emph{convert=None}, \emph{strip=None}, \emph{wrap=True}}{} -\end{fulllineitems} - -\index{reinit() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.reinit}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{reinit}}}{}{} -\end{fulllineitems} - -\index{reset\_all() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.reset_all}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{reset\_all}}}{}{} -\end{fulllineitems} - -\index{wrap\_stream() (in module src.colorama.initialise)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.initialise.wrap_stream}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.initialise.}}\sphinxbfcode{\sphinxupquote{wrap\_stream}}}{\emph{stream}, \emph{convert}, \emph{strip}, \emph{autoreset}, \emph{wrap}}{} -\end{fulllineitems} - - - -\subparagraph{src.colorama.win32 module} -\label{\detokenize{commands/apidoc/src.colorama:src-colorama-win32-module}}\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.win32}}\index{src.colorama.win32 (module)}\index{SetConsoleTextAttribute() (in module src.colorama.win32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.win32.SetConsoleTextAttribute}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.win32.}}\sphinxbfcode{\sphinxupquote{SetConsoleTextAttribute}}}{\emph{*\_}}{} -\end{fulllineitems} - -\index{winapi\_test() (in module src.colorama.win32)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.win32.winapi_test}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.colorama.win32.}}\sphinxbfcode{\sphinxupquote{winapi\_test}}}{\emph{*\_}}{} -\end{fulllineitems} - - - -\subparagraph{src.colorama.winterm module} -\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama.winterm}}\label{\detokenize{commands/apidoc/src.colorama:src-colorama-winterm-module}}\index{src.colorama.winterm (module)}\index{WinColor (class in src.colorama.winterm)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinColor}}} -Bases: \sphinxcode{\sphinxupquote{object}} -\index{BLACK (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLACK}}\pysigline{\sphinxbfcode{\sphinxupquote{BLACK}}\sphinxbfcode{\sphinxupquote{ = 0}}} -\end{fulllineitems} - -\index{BLUE (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.BLUE}}\pysigline{\sphinxbfcode{\sphinxupquote{BLUE}}\sphinxbfcode{\sphinxupquote{ = 1}}} -\end{fulllineitems} - -\index{CYAN (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.CYAN}}\pysigline{\sphinxbfcode{\sphinxupquote{CYAN}}\sphinxbfcode{\sphinxupquote{ = 3}}} -\end{fulllineitems} - -\index{GREEN (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREEN}}\pysigline{\sphinxbfcode{\sphinxupquote{GREEN}}\sphinxbfcode{\sphinxupquote{ = 2}}} -\end{fulllineitems} - -\index{GREY (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.GREY}}\pysigline{\sphinxbfcode{\sphinxupquote{GREY}}\sphinxbfcode{\sphinxupquote{ = 7}}} -\end{fulllineitems} - -\index{MAGENTA (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.MAGENTA}}\pysigline{\sphinxbfcode{\sphinxupquote{MAGENTA}}\sphinxbfcode{\sphinxupquote{ = 5}}} -\end{fulllineitems} - -\index{RED (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.RED}}\pysigline{\sphinxbfcode{\sphinxupquote{RED}}\sphinxbfcode{\sphinxupquote{ = 4}}} -\end{fulllineitems} - -\index{YELLOW (src.colorama.winterm.WinColor attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinColor.YELLOW}}\pysigline{\sphinxbfcode{\sphinxupquote{YELLOW}}\sphinxbfcode{\sphinxupquote{ = 6}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{WinStyle (class in src.colorama.winterm)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinStyle}}} -Bases: \sphinxcode{\sphinxupquote{object}} -\index{BRIGHT (src.colorama.winterm.WinStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT}}\sphinxbfcode{\sphinxupquote{ = 8}}} -\end{fulllineitems} - -\index{BRIGHT\_BACKGROUND (src.colorama.winterm.WinStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.BRIGHT_BACKGROUND}}\pysigline{\sphinxbfcode{\sphinxupquote{BRIGHT\_BACKGROUND}}\sphinxbfcode{\sphinxupquote{ = 128}}} -\end{fulllineitems} - -\index{NORMAL (src.colorama.winterm.WinStyle attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinStyle.NORMAL}}\pysigline{\sphinxbfcode{\sphinxupquote{NORMAL}}\sphinxbfcode{\sphinxupquote{ = 0}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{WinTerm (class in src.colorama.winterm)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.colorama.winterm.}}\sphinxbfcode{\sphinxupquote{WinTerm}}} -Bases: \sphinxcode{\sphinxupquote{object}} -\index{back() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.back}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{back}}}{\emph{back=None}, \emph{light=False}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{cursor\_adjust() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.cursor_adjust}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{cursor\_adjust}}}{\emph{x}, \emph{y}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{erase\_line() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{erase\_line}}}{\emph{mode=0}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{erase\_screen() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.erase_screen}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{erase\_screen}}}{\emph{mode=0}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{fore() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.fore}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{fore}}}{\emph{fore=None}, \emph{light=False}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{get\_attrs() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_attrs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_attrs}}}{}{} -\end{fulllineitems} - -\index{get\_position() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.get_position}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_position}}}{\emph{handle}}{} -\end{fulllineitems} - -\index{reset\_all() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.reset_all}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{reset\_all}}}{\emph{on\_stderr=None}}{} -\end{fulllineitems} - -\index{set\_attrs() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_attrs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_attrs}}}{\emph{value}}{} -\end{fulllineitems} - -\index{set\_console() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_console}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_console}}}{\emph{attrs=None}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{set\_cursor\_position() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_cursor_position}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_cursor\_position}}}{\emph{position=None}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - -\index{set\_title() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.set_title}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_title}}}{\emph{title}}{} -\end{fulllineitems} - -\index{style() (src.colorama.winterm.WinTerm method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src.colorama:src.colorama.winterm.WinTerm.style}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{style}}}{\emph{style=None}, \emph{on\_stderr=False}}{} -\end{fulllineitems} - - -\end{fulllineitems} - - - -\subparagraph{Module contents} -\label{\detokenize{commands/apidoc/src.colorama:module-src.colorama}}\label{\detokenize{commands/apidoc/src.colorama:module-contents}}\index{src.colorama (module)} - -\subsubsection{Submodules} -\label{\detokenize{commands/apidoc/src:submodules}} - -\subsubsection{src.ElementTree module} -\label{\detokenize{commands/apidoc/src:src-elementtree-module}}\label{\detokenize{commands/apidoc/src:module-src.ElementTree}}\index{src.ElementTree (module)}\index{Comment() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.Comment}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{Comment}}}{\emph{text=None}}{} -\end{fulllineitems} - -\index{dump() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.dump}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{dump}}}{\emph{elem}}{} -\end{fulllineitems} - -\index{Element() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.Element}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{Element}}}{\emph{tag}, \emph{attrib=\{\}}, \emph{**extra}}{} -\end{fulllineitems} - -\index{ElementTree (class in src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{ElementTree}}}{\emph{element=None}, \emph{file=None}}{}~\index{find() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.find}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{find}}}{\emph{path}}{} -\end{fulllineitems} - -\index{findall() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.findall}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findall}}}{\emph{path}}{} -\end{fulllineitems} - -\index{findtext() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.findtext}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findtext}}}{\emph{path}, \emph{default=None}}{} -\end{fulllineitems} - -\index{getiterator() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.getiterator}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getiterator}}}{\emph{tag=None}}{} -\end{fulllineitems} - -\index{getroot() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.getroot}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getroot}}}{}{} -\end{fulllineitems} - -\index{parse() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.parse}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parse}}}{\emph{source}, \emph{parser=None}}{} -\end{fulllineitems} - -\index{write() (src.ElementTree.ElementTree method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ElementTree.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{file}, \emph{encoding='us-ascii'}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{fromstring() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.fromstring}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{fromstring}}}{\emph{text}}{} -\end{fulllineitems} - -\index{iselement() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iselement}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{iselement}}}{\emph{element}}{} -\end{fulllineitems} - -\index{iterparse (class in src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iterparse}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{iterparse}}}{\emph{source}, \emph{events=None}}{}~\index{next() (src.ElementTree.iterparse method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.iterparse.next}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{next}}}{}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{parse() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.parse}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{parse}}}{\emph{source}, \emph{parser=None}}{} -\end{fulllineitems} - -\index{PI() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.PI}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{PI}}}{\emph{target}, \emph{text=None}}{} -\end{fulllineitems} - -\index{ProcessingInstruction() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.ProcessingInstruction}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{ProcessingInstruction}}}{\emph{target}, \emph{text=None}}{} -\end{fulllineitems} - -\index{QName (class in src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.QName}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{QName}}}{\emph{text\_or\_uri}, \emph{tag=None}}{} -\end{fulllineitems} - -\index{SubElement() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.SubElement}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{SubElement}}}{\emph{parent}, \emph{tag}, \emph{attrib=\{\}}, \emph{**extra}}{} -\end{fulllineitems} - -\index{tostring() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.tostring}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{tostring}}}{\emph{element}, \emph{encoding=None}}{} -\end{fulllineitems} - -\index{TreeBuilder (class in src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{TreeBuilder}}}{\emph{element\_factory=None}}{}~\index{close() (src.ElementTree.TreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{} -\end{fulllineitems} - -\index{data() (src.ElementTree.TreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.data}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{data}}}{\emph{data}}{} -\end{fulllineitems} - -\index{end() (src.ElementTree.TreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.end}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{end}}}{\emph{tag}}{} -\end{fulllineitems} - -\index{start() (src.ElementTree.TreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.TreeBuilder.start}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{start}}}{\emph{tag}, \emph{attrs}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{XML() (in module src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XML}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{XML}}}{\emph{text}}{} -\end{fulllineitems} - -\index{XMLTreeBuilder (class in src.ElementTree)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.ElementTree.}}\sphinxbfcode{\sphinxupquote{XMLTreeBuilder}}}{\emph{html=0}, \emph{target=None}}{}~\index{close() (src.ElementTree.XMLTreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{} -\end{fulllineitems} - -\index{doctype() (src.ElementTree.XMLTreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.doctype}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{doctype}}}{\emph{name}, \emph{pubid}, \emph{system}}{} -\end{fulllineitems} - -\index{feed() (src.ElementTree.XMLTreeBuilder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ElementTree.XMLTreeBuilder.feed}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{feed}}}{\emph{data}}{} -\end{fulllineitems} - - -\end{fulllineitems} - - - -\subsubsection{src.architecture module} -\label{\detokenize{commands/apidoc/src:module-src.architecture}}\label{\detokenize{commands/apidoc/src:src-architecture-module}}\index{src.architecture (module)} -In this file : all the stuff that can change with the architecture -on which SAT is running -\index{get\_distrib\_version() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_distrib_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_distrib\_version}}}{\emph{distrib}, \emph{codes}}{} -Gets the version of the distribution -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{distrib}}) \textendash{} The distribution on which the version will be found. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{L\{Mapping\}}} (\sphinxstyleliteralemphasis{\sphinxupquote{codes}}) \textendash{} The map containing distribution correlation table. - -\end{itemize} - -\item[{Returns}] \leavevmode -The version of the distribution on which salomeTools is running, -regarding the distribution correlation table contained in codes -variable. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_distribution() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_distribution}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_distribution}}}{\emph{codes}}{} -Gets the code for the distribution -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{L\{Mapping\}}} (\sphinxstyleliteralemphasis{\sphinxupquote{codes}}) \textendash{} The map containing distribution correlation table. - -\item[{Returns}] \leavevmode -The distribution on which salomeTools is running, regarding the -distribution correlation table contained in codes variable. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_nb\_proc() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_nb_proc}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_nb\_proc}}}{}{}~\begin{description} -\item[{Gets the number of processors of the machine }] \leavevmode -on which salomeTools is running. - -\end{description} -\begin{quote}\begin{description} -\item[{Returns}] \leavevmode -the number of processors. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_python\_version() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_python_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_python\_version}}}{}{} -Gets the version of the running python. -\begin{quote}\begin{description} -\item[{Returns}] \leavevmode -the version of the running python. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_user() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.get_user}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{get\_user}}}{}{} -method that gets the username that launched sat -\begin{quote}\begin{description} -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_windows() (in module src.architecture)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.architecture.is_windows}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.architecture.}}\sphinxbfcode{\sphinxupquote{is\_windows}}}{}{} -method that checks windows OS -\begin{quote}\begin{description} -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.compilation module} -\label{\detokenize{commands/apidoc/src:module-src.compilation}}\label{\detokenize{commands/apidoc/src:src-compilation-module}}\index{src.compilation (module)}\index{Builder (class in src.compilation)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.compilation.}}\sphinxbfcode{\sphinxupquote{Builder}}}{\emph{config}, \emph{logger}, \emph{product\_info}, \emph{options=OptResult( )}, \emph{check\_src=True}}{} -Class to handle all construction steps, like cmake, configure, make, … -\index{build\_configure() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.build_configure}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{build\_configure}}}{\emph{options=''}}{} -\end{fulllineitems} - -\index{check() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.check}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{check}}}{\emph{command=''}}{} -\end{fulllineitems} - -\index{cmake() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.cmake}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{cmake}}}{\emph{options=''}}{} -\end{fulllineitems} - -\index{complete\_environment() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.complete_environment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{complete\_environment}}}{\emph{make\_options}}{} -\end{fulllineitems} - -\index{configure() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.configure}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{configure}}}{\emph{options=''}}{} -\end{fulllineitems} - -\index{do\_batch\_script\_build() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_batch_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_batch\_script\_build}}}{\emph{script}, \emph{nb\_proc}}{} -\end{fulllineitems} - -\index{do\_default\_build() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_default_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_default\_build}}}{\emph{build\_conf\_options=''}, \emph{configure\_options=''}, \emph{show\_warning=True}}{} -\end{fulllineitems} - -\index{do\_python\_script\_build() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_python_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_python\_script\_build}}}{\emph{script}, \emph{nb\_proc}}{} -\end{fulllineitems} - -\index{do\_script\_build() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.do_script_build}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{do\_script\_build}}}{\emph{script}, \emph{number\_of\_proc=0}}{} -\end{fulllineitems} - -\index{hack\_libtool() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.hack_libtool}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{hack\_libtool}}}{}{} -\end{fulllineitems} - -\index{install() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.install}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{install}}}{}{} -\end{fulllineitems} - -\index{log() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.log}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{log}}}{\emph{text}, \emph{level}, \emph{showInfo=True}}{} -\end{fulllineitems} - -\index{log\_command() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.log_command}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{log\_command}}}{\emph{command}}{} -\end{fulllineitems} - -\index{make() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.make}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{make}}}{\emph{nb\_proc}, \emph{make\_opt=''}}{} -\end{fulllineitems} - -\index{prepare() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.prepare}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare}}}{}{} -\end{fulllineitems} - -\index{put\_txt\_log\_in\_appli\_log\_dir() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.put_txt_log_in_appli_log_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{put\_txt\_log\_in\_appli\_log\_dir}}}{\emph{file\_name}}{}~\begin{description} -\item[{Put the txt log (that contain the system logs, like make command}] \leavevmode -output) in the directory \textless{}APPLICATION DIR\textgreater{}/LOGS/\textless{}product\_name\textgreater{}/ - -\end{description} -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Str}} (\sphinxstyleliteralemphasis{\sphinxupquote{file\_name}}) \textendash{} the name of the file to write - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{wmake() (src.compilation.Builder method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.compilation.Builder.wmake}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{wmake}}}{\emph{nb\_proc}, \emph{opt\_nb\_proc=None}}{} -\end{fulllineitems} - - -\end{fulllineitems} - - - -\subsubsection{src.debug module} -\label{\detokenize{commands/apidoc/src:module-src.debug}}\label{\detokenize{commands/apidoc/src:src-debug-module}}\index{src.debug (module)} -This file assume DEBUG functionalities use. -Print salomeTools debug messages in sys.stderr. -Show pretty print debug representation from instances of SAT classes -(pretty print src.pyconf.Config) - -\begin{DUlineblock}{0em} -\item[] Warning: supposedly show messages in SAT development phase, not production -\item[] -\item[] Usage: -\item[] \textgreater{}\textgreater{} import debug as DBG -\item[] \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable) \# not shown in production -\item[] \textgreater{}\textgreater{} DBG.write(“aTitle”, aVariable, True) \# unconditionaly shown (as show=True) -\item[] -\item[] to set show message as development phase: -\item[] \textgreater{}\textgreater{} DBG.push\_debug(True) -\item[] -\item[] to set no show message as production phase: -\item[] \textgreater{}\textgreater{} DBG.push\_debug(False) -\item[] -\item[] to set show message temporary as development phase, only in a method: -\item[] \textgreater{}\textgreater{} def aMethodToDebug(…): -\item[] \textgreater{}\textgreater{} DBG.push\_debug(True) \#force show as appended status -\item[] \textgreater{}\textgreater{} etc. method code with some DBG.write() -\item[] \textgreater{}\textgreater{} DBG.pop\_debug() \#restore previous status (show or not show) -\item[] \textgreater{}\textgreater{} return -\item[] -\item[] to set a message for future fix, as temporary problem to not forget: -\item[] DBG.tofix(“aTitle”, aVariable, True/False) \#True/False in production shown, or not -\item[] -\item[] in command line interface you could redirect stderr to file ‘myDebug.log’: -\item[] \textgreater{}\textgreater{} sat compile … 2\textgreater{} myDebug.log \# only stderr -\item[] \textgreater{}\textgreater{} sat compile … \&\textgreater{} myDebug.log \# stdout and stderr -\end{DUlineblock} -\index{InStream (class in src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.InStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{InStream}}}{\emph{buf=''}}{} -Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}} - -utility class for pyconf.Config input iostream - -\end{fulllineitems} - -\index{OutStream (class in src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{OutStream}}}{\emph{buf=''}}{} -Bases: \sphinxcode{\sphinxupquote{StringIO.StringIO}} - -utility class for pyconf.Config output iostream -\index{close() (src.debug.OutStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.OutStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{} -because Config.\_\_save\_\_ calls close() stream as file -keep value before lost as self.value - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{format\_color\_exception() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.format_color_exception}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{format\_color\_exception}}}{\emph{msg}, \emph{limit=None}, \emph{trace=None}}{} -Format a stack trace and the exception information. -as traceback.format\_exception(), with color -with traceback only if (\_debug) or (DBG.\_user in DBG.\_developpers) - -\end{fulllineitems} - -\index{format\_exception() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.format_exception}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{format\_exception}}}{\emph{msg}, \emph{limit=None}, \emph{trace=None}}{} -Format a stack trace and the exception information. -as traceback.format\_exception(), without color -with traceback only if (\_debug) or (DBG.\_user in DBG.\_developpers) - -\end{fulllineitems} - -\index{getLocalEnv() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getLocalEnv}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getLocalEnv}}}{}{} -get string for environment variables representation - -\end{fulllineitems} - -\index{getStrConfigDbg() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigDbg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigDbg}}}{\emph{config}}{} -set string as saveConfigDbg, -as (path expression evaluation) for debug - -\end{fulllineitems} - -\index{getStrConfigStd() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.getStrConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{getStrConfigStd}}}{\emph{config}}{} -set string as saveConfigStd, as file .pyconf - -\end{fulllineitems} - -\index{indent() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.indent}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount=2}, \emph{ch=' '}}{} -indent multi lines message - -\end{fulllineitems} - -\index{isTypeConfig() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.isTypeConfig}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{isTypeConfig}}}{\emph{var}}{} -To know if var is instance from Config/pyconf - -\end{fulllineitems} - -\index{pop\_debug() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.pop_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{pop\_debug}}}{}{} -restore previous debug outputs status - -\end{fulllineitems} - -\index{push\_debug() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.push_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{push\_debug}}}{\emph{aBool}}{} -set debug outputs activated, or not - -\end{fulllineitems} - -\index{saveConfigDbg() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.saveConfigDbg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{saveConfigDbg}}}{\emph{config}, \emph{aStream}, \emph{indent=0}, \emph{path=''}}{} -pyconf returns multilines (path expression evaluation) for debug - -\end{fulllineitems} - -\index{saveConfigStd() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.saveConfigStd}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{saveConfigStd}}}{\emph{config}, \emph{aStream}}{} -returns as file .pyconf - -\end{fulllineitems} - -\index{tofix() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.tofix}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{tofix}}}{\emph{title}, \emph{var=''}, \emph{force=None}}{} -write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True -use this only if no logger accessible for classic logger.warning(message) - -\end{fulllineitems} - -\index{write() (in module src.debug)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.debug.write}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.debug.}}\sphinxbfcode{\sphinxupquote{write}}}{\emph{title}, \emph{var=''}, \emph{force=None}, \emph{fmt='\textbackslash{}n\#\#\#\# DEBUG: \%s:\textbackslash{}n\%s\textbackslash{}n'}}{} -write sys.stderr a message if \_debug{[}-1{]}==True or optionaly force=True - -\end{fulllineitems} - - - -\subsubsection{src.environment module} -\label{\detokenize{commands/apidoc/src:src-environment-module}}\label{\detokenize{commands/apidoc/src:module-src.environment}}\index{src.environment (module)}\index{Environ (class in src.environment)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Environ}}}{\emph{environ=None}}{} -Class to manage the environment context -\index{append() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as append\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_value() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -append value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{command\_value() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_defined() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{} -Check if the key exists in the environment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as prepend\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend\_value() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.environment.Environ method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Environ.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{FileEnvWriter (class in src.environment)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{FileEnvWriter}}}{\emph{config}, \emph{logger}, \emph{out\_dir}, \emph{src\_root}, \emph{env\_info=None}}{} -Class to dump the environment to a file. -\index{write\_cfgForPy\_file() (src.environment.FileEnvWriter method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter.write_cfgForPy_file}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_cfgForPy\_file}}}{\emph{filename}, \emph{additional\_env=\{\}}, \emph{for\_package=None}, \emph{with\_commercial=True}}{} -Append to current opened aFile a cfgForPy -environment (SALOME python launcher). -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{for\_package}}) \textendash{} the file path - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_env}}) \textendash{} a dictionary of additional variables -to add to the environment - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} If not None, produce a relative environment -designed for a package. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{write\_env\_file() (src.environment.FileEnvWriter method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.FileEnvWriter.write_env_file}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_env\_file}}}{\emph{filename}, \emph{forBuild}, \emph{shell}, \emph{for\_package=None}}{} -Create an environment file. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the file path - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{forBuild}}) \textendash{} if true, the build environment - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the type of file wanted (.sh, .bat) - -\end{itemize} - -\item[{Returns}] \leavevmode -The path to the generated file - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{SalomeEnviron (class in src.environment)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{SalomeEnviron}}}{\emph{cfg}, \emph{environ}, \emph{forBuild=False}, \emph{for\_package=None}, \emph{enable\_simple\_env\_script=True}}{} -Class to manage the environment of SALOME. -\index{add\_comment() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{} -Add a commentary to the out stream (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the commentary to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_line() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{nb\_line}}{} -Add empty lines to the out stream (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{nb\_line}}) \textendash{} the number of empty lines to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_warning() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{} -Add a warning to the out stream (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the warning to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -append value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{dump() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.dump}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dump}}}{\emph{out}}{} -Write the environment to out -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{out}}) \textendash{} the stream where to write the environment - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required}}{} -Add a final instruction in the out file (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_names() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.get_names}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_names}}}{\emph{lProducts}}{} -Get the products name to add in SALOME\_MODULES environment variable -It is the name of the product, except in the case where the is a -component name. And it has to be in SALOME\_MODULES variable only -if the product has the property has\_salome\_hui = “yes” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{lProducts}}) \textendash{} List of products to potentially add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_defined() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{} -Check if the key exists in the environment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{load\_cfg\_environment() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.load_cfg_environment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load\_cfg\_environment}}}{\emph{cfg\_env}}{} -Loads environment defined in cfg\_env -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{cfg\_env}}) \textendash{} A config containing an environment - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{run\_env\_script() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.run_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_env\_script}}}{\emph{product\_info}, \emph{logger=None}, \emph{native=False}}{} -Runs an environment script. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{native}}) \textendash{} if True load set\_native\_env instead of set\_env - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{run\_simple\_env\_script() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.run_simple_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_simple\_env\_script}}}{\emph{script\_path}, \emph{logger=None}}{} -Runs an environment script. Same as run\_env\_script, but with a -script path as parameter. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{script\_path}}) \textendash{} a path to an environment script - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_a\_product() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_a_product}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_a\_product}}}{\emph{product}, \emph{logger}}{} -Sets the environment of a product. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product}}) \textendash{} The product name - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_application\_env() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_application_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_application\_env}}}{\emph{logger}}{} -Sets the environment defined in the APPLICATION file. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_cpp\_env() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_cpp_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_cpp\_env}}}{\emph{product\_info}}{} -Sets the generic environment for a SALOME cpp product. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_full\_environ() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_full_environ}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_full\_environ}}}{\emph{logger}, \emph{env\_info}}{} -Sets the full environment for products -specified in env\_info dictionary. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{env\_info}}) \textendash{} the list of products - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_products() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_products}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_products}}}{\emph{logger}, \emph{src\_root=None}}{} -Sets the environment for all the products. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{src}} (\sphinxstyleliteralemphasis{\sphinxupquote{src\_root}}) \textendash{} the application working directory - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_python\_libdirs() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_python_libdirs}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_python\_libdirs}}}{}{} -Set some generic variables for python library paths - -\end{fulllineitems} - -\index{set\_salome\_generic\_product\_env() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_generic_product_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_salome\_generic\_product\_env}}}{\emph{pi}}{} -Sets the generic environment for a SALOME product. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{pi}}) \textendash{} The product description - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set\_salome\_minimal\_product\_env() (src.environment.SalomeEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.SalomeEnviron.set_salome_minimal_product_env}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set\_salome\_minimal\_product\_env}}}{\emph{product\_info}, \emph{logger}}{} -Sets the minimal environment for a SALOME product. -xxx\_ROOT\_DIR and xxx\_SRC\_DIR -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The product description - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{Shell (class in src.environment)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.Shell}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{Shell}}}{\emph{name}, \emph{extension}}{} -Definition of a Shell. - -\end{fulllineitems} - -\index{load\_environment() (in module src.environment)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.environment.load_environment}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.environment.}}\sphinxbfcode{\sphinxupquote{load\_environment}}}{\emph{config}, \emph{build}, \emph{logger}}{} -Loads the environment (used to run the tests, for example). -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} the global config - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{build}}) \textendash{} build environement if True - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to display messages - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.fileEnviron module} -\label{\detokenize{commands/apidoc/src:src-fileenviron-module}}\label{\detokenize{commands/apidoc/src:module-src.fileEnviron}}\index{src.fileEnviron (module)}\index{BashFileEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{BashFileEnviron}}}{\emph{output}, \emph{environ=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}) - -Class for bash shell. -\index{command\_value() (src.fileEnviron.BashFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.fileEnviron.BashFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{} -Add a final instruction in the out file (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.fileEnviron.BashFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BashFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{BatFileEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{BatFileEnviron}}}{\emph{output}, \emph{environ=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}) - -for Windows batch shell. -\index{add\_comment() (src.fileEnviron.BatFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{} -Add a comment in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{command\_value() (src.fileEnviron.BatFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.fileEnviron.BatFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{} -Add a final instruction in the out file (in case of file generation) -In the particular windows case, do nothing -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.fileEnviron.BatFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.fileEnviron.BatFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.BatFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ContextFileEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{ContextFileEnviron}}}{\emph{output}, \emph{environ=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}) - -Class for a salome context configuration file. -\index{add\_echo() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{} -Add a comment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_warning() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{} -Add a warning -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_value() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -append value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{command\_value() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{} -Add a final instruction in the out file (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend\_value() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.fileEnviron.ContextFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ContextFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{FileEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{FileEnviron}}}{\emph{output}, \emph{environ=None}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Base class for shell environment -\index{add\_comment() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{} -Add a comment in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_echo() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{} -Add a “echo” in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_line() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{} -Add some empty lines in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_warning() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{} -Add a warning “echo” in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as append\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_value() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -append value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{command\_value() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{} -Add a final instruction in the out file (in case of file generation) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_defined() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{} -Check if the key exists in the environment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as prepend\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend\_value() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.fileEnviron.FileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable ‘key’ to value ‘value’ -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{LauncherFileEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{LauncherFileEnviron}}}{\emph{output}, \emph{environ=None}}{} -Class to generate a launcher file script -(in python syntax) SalomeContext API -\index{add() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add}}}{\emph{key}, \emph{value}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_comment() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{} -\end{fulllineitems} - -\index{add\_echo() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{} -Add a comment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the comment to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_line() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{} -Add some empty lines in the launcher file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_warning() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{} -Add a warning -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the warning to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as append\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_value() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.append_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -append value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{change\_to\_launcher() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.change_to_launcher}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{change\_to\_launcher}}}{\emph{value}}{} -\end{fulllineitems} - -\index{command\_value() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{finish() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.finish}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{finish}}}{\emph{required=True}}{} -Add a final instruction in the out file (in case of file generation) -In the particular launcher case, do nothing -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{bool}} (\sphinxstyleliteralemphasis{\sphinxupquote{required}}) \textendash{} Do nothing if required is False - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_defined() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{key}}{} -Check if the key exists in the environment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -Same as prepend\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend\_value() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.prepend_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend\_value}}}{\emph{key}, \emph{value}, \emph{sep=':'}}{} -prepend value to key using sep -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{set() (src.fileEnviron.LauncherFileEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.LauncherFileEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{key}, \emph{value}}{} -Set the environment variable “key” to value “value” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ScreenEnviron (class in src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{ScreenEnviron}}}{\emph{output}, \emph{environ=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.fileEnviron.FileEnviron}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.fileEnviron.FileEnviron}}) -\index{add\_comment() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_comment}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_comment}}}{\emph{comment}}{} -Add a comment in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{comment}}) \textendash{} the comment to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_echo() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_echo}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_echo}}}{\emph{text}}{} -Add a “echo” in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the text to echo - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_line() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_line}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_line}}}{\emph{number}}{} -Add some empty lines in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{number}}) \textendash{} the number of lines to add - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{add\_warning() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.add_warning}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_warning}}}{\emph{warning}}{} -Add a warning “echo” in the shell file -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{warning}}) \textendash{} the text to echo - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{} -Same as append\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to append - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to append to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{command\_value() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.command_value}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{command\_value}}}{\emph{key}, \emph{command}}{} -Get the value given by the system command “command” -and put it in the environment variable key. -Has to be overwritten in the derived classes -This can be seen as a virtual method -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command}}) \textendash{} the environment variable - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command to execute - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{name}}{} -Get the value of the environment variable “key” -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{is\_defined() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.is_defined}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{is\_defined}}}{\emph{name}}{} -Check if the key exists in the environment -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{key}}) \textendash{} the environment variable to check - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{prepend() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.prepend}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepend}}}{\emph{name}, \emph{value}, \emph{sep=':'}}{} -Same as prepend\_value but the value argument can be a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{sep}}) \textendash{} the environment variable to prepend - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}}\sphinxstyleliteralstrong{\sphinxupquote{ or }}\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the value(s) to prepend to key - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the separator string - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{run\_env\_script() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.run_env_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_env\_script}}}{\emph{module}, \emph{script}}{} -\end{fulllineitems} - -\index{set() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.set}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{set}}}{\emph{name}, \emph{value}}{} -Set the environment variable ‘key’ to value ‘value’ -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the environment variable to set - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{write() (src.fileEnviron.ScreenEnviron method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.ScreenEnviron.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{command}, \emph{name}, \emph{value}, \emph{sign='='}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{get\_file\_environ() (in module src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.get_file_environ}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{get\_file\_environ}}}{\emph{output}, \emph{shell}, \emph{environ=None}}{} -Instantiate correct FileEnvironment sub-class. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{file}} (\sphinxstyleliteralemphasis{\sphinxupquote{output}}) \textendash{} the output file stream. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{shell}}) \textendash{} the type of shell syntax to use. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{environ}}) \textendash{} a potential additional environment. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{special\_path\_separator() (in module src.fileEnviron)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fileEnviron.special_path_separator}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fileEnviron.}}\sphinxbfcode{\sphinxupquote{special\_path\_separator}}}{\emph{name}}{} -TCLLIBPATH, TKLIBPATH, PV\_PLUGIN\_PATH environments variables need -some exotic path separator. -This function gives the separator regarding the name of the variable -to append or prepend. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{name}}) \textendash{} The name of the variable to find the separator - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.fork module} -\label{\detokenize{commands/apidoc/src:module-src.fork}}\label{\detokenize{commands/apidoc/src:src-fork-module}}\index{src.fork (module)}\index{batch() (in module src.fork)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fork.batch}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{batch}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args={[}{]}}, \emph{log=None}, \emph{delai=20}, \emph{sommeil=1}}{} -\end{fulllineitems} - -\index{batch\_salome() (in module src.fork)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fork.batch_salome}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{batch\_salome}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args}, \emph{getTmpDir}, \emph{pendant='SALOME\_Session\_Server'}, \emph{fin='killSalome.py'}, \emph{log=None}, \emph{delai=20}, \emph{sommeil=1}, \emph{delaiapp=0}}{} -\end{fulllineitems} - -\index{launch\_command() (in module src.fork)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fork.launch_command}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{launch\_command}}}{\emph{cmd}, \emph{logger}, \emph{cwd}, \emph{args={[}{]}}, \emph{log=None}}{} -\end{fulllineitems} - -\index{show\_progress() (in module src.fork)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fork.show_progress}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{show\_progress}}}{\emph{logger}, \emph{top}, \emph{delai}, \emph{ss=''}}{} -shortcut function to display the progression -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{delai}}) \textendash{} the number to display - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the number max - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{ss}}) \textendash{} the string to display - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{write\_back() (in module src.fork)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.fork.write_back}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.fork.}}\sphinxbfcode{\sphinxupquote{write\_back}}}{\emph{logger}, \emph{message}, \emph{level}}{} -shortcut function to write at the begin of the line -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} the text to display - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the level of verbosity - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.logger module} -\label{\detokenize{commands/apidoc/src:module-src.logger}}\label{\detokenize{commands/apidoc/src:src-logger-module}}\index{src.logger (module)} -Implements the classes and method relative to the logging -\index{Logger (class in src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{Logger}}}{\emph{config=None}, \emph{silent\_sysstd=False}, \emph{all\_in\_terminal=False}, \emph{micro\_command=False}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Class to handle log mechanism. -\index{add\_link() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.add_link}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_link}}}{\emph{log\_file\_name}, \emph{command\_name}, \emph{command\_res}, \emph{full\_launched\_command}}{} -Add a link to another log file. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{command\_res}}) \textendash{} The file name of the link. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the command linked. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The result of the command linked. “0” or “1” - -\end{itemize} - -\item[{Parma full\_launched\_command str}] \leavevmode -The full lanch command -(“sat command …”) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{end\_write() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.end_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{end\_write}}}{\emph{attribute}}{} -Called just after command end: Put all fields -corresponding to the command end context (time). -Write the log xml file on the hard drive. -And display the command to launch to get the log -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attribute}}) \textendash{} the attribute to add to the node “Site”. - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{error() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.error}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{error}}}{\emph{message}}{} -Print an error. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print. - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{flush() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{} -Flush terminal - -\end{fulllineitems} - -\index{put\_initial\_xml\_fields() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.put_initial_xml_fields}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{put\_initial\_xml\_fields}}}{}{} -Called at class initialization: Put all fields -corresponding to the command context (user, time, …) - -\end{fulllineitems} - -\index{write() (src.logger.Logger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.Logger.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{message}, \emph{level=None}, \emph{screenOnly=False}}{} -function used in the commands -to print in the terminal and the log file. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The message to print. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} The output level corresponding -to the message 0 \textless{} level \textless{} 6. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{screenOnly}}) \textendash{} if True, do not write in log file. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{date\_to\_datetime() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.date_to_datetime}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{date\_to\_datetime}}}{\emph{date}}{} -From a string date in format YYYYMMDD\_HHMMSS -returns list year, mon, day, hour, minutes, seconds -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date in format YYYYMMDD\_HHMMSS - -\item[{Returns}] \leavevmode -the same date and time in separate variables. - -\item[{Return type}] \leavevmode -(str,str,str,str,str,str) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{getCurrentLogger() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getCurrentLogger}}}{}{} -get current logging logger, set as DefaultLogger if not set yet - -\end{fulllineitems} - -\index{getDefaultLogger() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getDefaultLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getDefaultLogger}}}{}{} -get simple logging logger DefaultLogger, set it as current - -\end{fulllineitems} - -\index{getUnittestLogger() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.getUnittestLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{getUnittestLogger}}}{}{} -get simple logging logger UnittestLogger, set it as current - -\end{fulllineitems} - -\index{isCurrentLoggerUnittest() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.isCurrentLoggerUnittest}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{isCurrentLoggerUnittest}}}{}{} -\end{fulllineitems} - -\index{list\_log\_file() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.list_log_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{list\_log\_file}}}{\emph{dirPath}, \emph{expression}}{} -Find all files corresponding to expression in dirPath -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{expression}}) \textendash{} the directory where to search the files - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the regular expression of files to find - -\end{itemize} - -\item[{Returns}] \leavevmode -the list of files path and informations about it - -\item[{Return type}] \leavevmode -list - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{sendMessageToCurrentLogger() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.sendMessageToCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{sendMessageToCurrentLogger}}}{\emph{message}, \emph{level}}{} -assume relay from obsolescent -logger.write(msg, 1/2/3…) to future -logging.critical/warning/info…(msg) (as logging package tips) - -\end{fulllineitems} - -\index{setCurrentLogger() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.setCurrentLogger}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{setCurrentLogger}}}{\emph{logger}}{} -temporary send all in stdout as simple logging logger - -\end{fulllineitems} - -\index{show\_command\_log() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.show_command_log}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{show\_command\_log}}}{\emph{logFilePath}, \emph{cmd}, \emph{application}, \emph{notShownCommands}}{} -Used in updateHatXml. -Determine if the log xml file logFilePath -has to be shown or not in the hat log. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the path to the command xml log file - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the command of the log file - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the application passed as parameter -to the salomeTools command - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{notShownCommands}}) \textendash{} the list of commands -that are not shown by default - -\end{itemize} - -\item[{Returns}] \leavevmode -True if cmd is not in notShownCommands and the application -in the log file corresponds to application - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{timedelta\_total\_seconds() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.timedelta_total_seconds}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{timedelta\_total\_seconds}}}{\emph{timedelta}}{} -Replace total\_seconds from datetime module -in order to be compatible with old python versions -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{datetime.timedelta}} (\sphinxstyleliteralemphasis{\sphinxupquote{timedelta}}) \textendash{} The delta between two dates - -\item[{Returns}] \leavevmode -The number of seconds corresponding to timedelta. - -\item[{Return type}] \leavevmode -float - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{update\_hat\_xml() (in module src.logger)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.logger.update_hat_xml}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.logger.}}\sphinxbfcode{\sphinxupquote{update\_hat\_xml}}}{\emph{logDir}, \emph{application=None}, \emph{notShownCommands={[}{]}}}{} -Create the xml file in logDir that contain all the xml file -and have a name like YYYYMMDD\_HHMMSS\_namecmd.xml -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{application}}) \textendash{} the directory to parse - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the name of the application if there is any - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.options module} -\label{\detokenize{commands/apidoc/src:module-src.options}}\label{\detokenize{commands/apidoc/src:src-options-module}}\index{src.options (module)} -The Options class that manages the access to all options passed as -parameters in salomeTools command lines -\index{OptResult (class in src.options)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.OptResult}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{OptResult}}} -Bases: \sphinxcode{\sphinxupquote{object}} - -An instance of this class will be the object manipulated -in code of all salomeTools commands -The aim of this class is to have an elegant syntax to manipulate the options. - -\begin{DUlineblock}{0em} -\item[] Example: -\item[] \textgreater{}\textgreater{} options, remainderArgs = command.parseArguments(args) -\item[] \textgreater{}\textgreater{} print(options.output\_verbose\_level) -\item[] \textgreater{}\textgreater{} ‘INFO’ -\end{DUlineblock} - -\end{fulllineitems} - -\index{Options (class in src.options)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.options.}}\sphinxbfcode{\sphinxupquote{Options}}} -Bases: \sphinxcode{\sphinxupquote{object}} - -Class to manage all salomeTools options -\index{add\_option() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.add_option}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_option}}}{\emph{shortName}, \emph{longName}, \emph{optionType}, \emph{destName}, \emph{helpString=''}, \emph{default=None}}{} -Add an option to a command. It gets all attributes -of an option and append it in the options field -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{shortName}} \textendash{} (str) -The short name of the option (as ‘-l’ for level option). - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{longName}} \textendash{} (str) -The long name of the option (as ‘\textendash{}level’ for level option). - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{optionType}} \textendash{} (str) The type of the option (ex “int”). - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{destName}} \textendash{} (str) The name that will be used in the code. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{helpString}} \textendash{} (str) -The text to display when user ask for help on a command. - -\end{itemize} - -\item[{Returns}] \leavevmode -None - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{debug\_write() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.debug_write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{debug\_write}}}{}{} -\end{fulllineitems} - -\index{filterLevel() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterLevel}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterLevel}}}{\emph{aLevel}}{} -filter level logging values - -\end{fulllineitems} - -\index{filterList2() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.filterList2}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{filterList2}}}{\emph{aStr}}{} -filter a list as ‘KERNEL,YACS,etc.’ - -\end{fulllineitems} - -\index{getDetailOption() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.getDetailOption}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getDetailOption}}}{\emph{option}}{} -for convenience -\begin{quote}\begin{description} -\item[{Returns}] \leavevmode -(tuple) 4-elements (shortName, longName, optionType, helpString) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_help() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.get_help}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_help}}}{}{} -Returns all options stored in self.options -as help message colored string -\begin{quote}\begin{description} -\item[{Returns}] \leavevmode -(str) colored string - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{indent() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.indent}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{indent}}}{\emph{text}, \emph{amount}, \emph{car=' '}}{} -indent multi lines message - -\end{fulllineitems} - -\index{parse\_args() (src.options.Options method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.options.Options.parse_args}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parse\_args}}}{\emph{argList=None}}{} -Instantiates the class OptResult -that gives access to all options in the code -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{argList}} \textendash{} (list) the raw list of arguments that were passed - -\item[{Returns}] \leavevmode -(OptResult, list) as (optResult, args) -optResult is the option instance to manipulate in the code. -args is the full raw list of passed options - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - - - -\subsubsection{src.printcolors module} -\label{\detokenize{commands/apidoc/src:module-src.printcolors}}\label{\detokenize{commands/apidoc/src:src-printcolors-module}}\index{src.printcolors (module)} -In this file is stored the mechanism that manage color prints in the terminal -\index{cleancolor() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.cleancolor}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{cleancolor}}}{\emph{message}}{} -remove color from a colored text. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{message}}) \textendash{} The text to be cleaned. - -\item[{Returns}] \leavevmode -The cleaned text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{print\_color\_map() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_color_map}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_color\_map}}}{}{} -This method prints the color map - -\end{fulllineitems} - -\index{print\_color\_range() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_color_range}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_color\_range}}}{\emph{start}, \emph{end}}{} -print possible range values for colors -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{end}}) \textendash{} The smaller value. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} The bigger value. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{print\_value() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.print_value}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{print\_value}}}{\emph{logger}, \emph{label}, \emph{value}, \emph{level=1}, \emph{suffix=''}}{} -shortcut method to print a label and a value with the info color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{class logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} the logger instance. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} (\sphinxstyleliteralemphasis{\sphinxupquote{level}}) \textendash{} the label to print. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{suffix}}) \textendash{} the value to print. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{int}} \textendash{} the level of verboseness. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the suffix to add at the end. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printc() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printc}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printc}}}{\emph{txt}, \emph{code=''}}{} -print a text with colors -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{code}}) \textendash{} The text to be printed. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The color to use. - -\end{itemize} - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcError() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcError}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcError}}}{\emph{txt}}{} -print a text error color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcHeader() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHeader}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHeader}}}{\emph{txt}}{} -print a text header color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcHighlight() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcHighlight}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcHighlight}}}{\emph{txt}}{} -print a text highlight color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcInfo() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcInfo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcInfo}}}{\emph{txt}}{} -print a text info color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcLabel() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcLabel}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcLabel}}}{\emph{txt}}{} -print a text label color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcSuccess() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcSuccess}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcSuccess}}}{\emph{txt}}{} -print a text success color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{printcWarning() (in module src.printcolors)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.printcolors.printcWarning}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.printcolors.}}\sphinxbfcode{\sphinxupquote{printcWarning}}}{\emph{txt}}{} -print a text warning color -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{txt}}) \textendash{} The text to be printed. - -\item[{Returns}] \leavevmode -The colored text. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.product module} -\label{\detokenize{commands/apidoc/src:module-src.product}}\label{\detokenize{commands/apidoc/src:src-product-module}}\index{src.product (module)} -In this file are implemented the methods -relative to the product notion of salomeTools -\index{check\_config\_exists() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_config_exists}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_config\_exists}}}{\emph{config}, \emph{prod\_dir}, \emph{prod\_info}}{} -Verify that the installation directory of a product in a base exists -Check all the config-\textless{}i\textgreater{} directory and verify the sat-config.pyconf file -that is in it -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{prod\_dir}}) \textendash{} The product installation directory path -(without config-\textless{}i\textgreater{}) - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to -the product - -\end{itemize} - -\item[{Returns}] \leavevmode -True or false is the installation is found or not -and if it is found, the path of the found installation - -\item[{Return type}] \leavevmode -(boolean, str) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{check\_installation() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_installation}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_installation}}}{\emph{product\_info}}{} -Verify if a product is well installed. Checks install directory presence -and some additional files if it is defined in the config -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if it is well installed - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{check\_source() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.check_source}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{check\_source}}}{\emph{product\_info}}{} -Verify if a sources of product is preset. Checks source directory presence -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if it is well installed - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_base\_install\_dir() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_base_install_dir}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_base\_install\_dir}}}{\emph{config}, \emph{prod\_info}, \emph{version}}{} -Compute the installation directory of a product in base -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to -the product - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} The version of the product - -\end{itemize} - -\item[{Returns}] \leavevmode -The path of the product installation - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_install\_dir() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_install_dir}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_install\_dir}}}{\emph{config}, \emph{base}, \emph{version}, \emph{prod\_info}}{} -Compute the installation directory of a given product -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{version}}) \textendash{} This corresponds to the value given by user in its -application.pyconf for the specific product. If “yes”, the -user wants the product to be in base. If “no”, he wants the -product to be in the application workdir - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to -the product - -\end{itemize} - -\item[{Returns}] \leavevmode -The path of the product installation - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_product\_components() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_components}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_components}}}{\emph{product\_info}}{} -Get the component list to generate with the product -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -The list of names of the components - -\item[{Return type}] \leavevmode -List - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_product\_config() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_config}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_config}}}{\emph{config}, \emph{product\_name}, \emph{with\_install\_dir=True}}{} -Get the specific configuration of a product from the global configuration -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_name}}) \textendash{} The name of the product - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{with\_install\_dir}}) \textendash{} If false, do not provide an install -directory (at false only for internal use -of the function check\_config\_exists) - -\end{itemize} - -\item[{Returns}] \leavevmode -the specific configuration of the product - -\item[{Return type}] \leavevmode -{\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}}) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_product\_dependencies() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_dependencies}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_dependencies}}}{\emph{config}, \emph{product\_info}}{} -Get recursively the list of products that are -in the product\_info dependencies -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} \textendash{} The configuration specific to -the product - -\end{itemize} - -\item[{Returns}] \leavevmode -the list of products in dependence - -\item[{Return type}] \leavevmode -list - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_product\_section() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_product_section}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_product\_section}}}{\emph{config}, \emph{product\_name}, \emph{version}, \emph{section=None}}{} -Get the product description from the configuration -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{section}}) \textendash{} The product name - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The version of the product - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The searched section (if not None, the section is -explicitly given - -\end{itemize} - -\item[{Returns}] \leavevmode -The product description - -\item[{Return type}] \leavevmode -{\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}}) - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_products\_infos() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.get_products_infos}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{get\_products\_infos}}}{\emph{lproducts}, \emph{config}}{} -Get the specific configuration of a list of products -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lproducts}}) \textendash{} The list of product names - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration - -\end{itemize} - -\item[{Returns}] \leavevmode -the list of tuples -(product name, specific configuration of the product) - -\item[{Return type}] \leavevmode -{[}(str, {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Config}]{\sphinxcrossref{Config}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Config}})){]} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_compiles() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_compiles}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_compiles}}}{\emph{product\_info}}{} -Know if a product compiles or not -(some products do not have a compilation procedure) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product compiles, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_has\_env\_script() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_env_script}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_env\_script}}}{\emph{product\_info}}{} -Know if a product has an environment script -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product it has an environment script, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_has\_logo() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_logo}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_logo}}}{\emph{product\_info}}{} -Know if a product has a logo (YACSGEN generate) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -The path of the logo if the product has a logo, else False - -\item[{Return type}] \leavevmode -Str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_has\_patches() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_patches}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_patches}}}{\emph{product\_info}}{} -Know if a product has one or more patches -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product has one or more patches - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_has\_salome\_gui() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_salome_gui}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_salome\_gui}}}{\emph{product\_info}}{} -Know if a product has a SALOME gui -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product has a SALOME gui, else False - -\item[{Return type}] \leavevmode -Boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_has\_script() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_has_script}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_has\_script}}}{\emph{product\_info}}{} -Know if a product has a compilation script -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product it has a compilation script, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_autotools() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_autotools}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_autotools}}}{\emph{product\_info}}{} -Know if a product is compiled using the autotools -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is autotools, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_cmake() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cmake}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cmake}}}{\emph{product\_info}}{} -Know if a product is compiled using the cmake -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is cmake, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_cpp() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_cpp}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_cpp}}}{\emph{product\_info}}{} -Know if a product is cpp -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is a cpp, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_debug() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_debug}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_debug}}}{\emph{product\_info}}{} -Know if a product is in debug mode -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is in debug mode, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_dev() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_dev}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_dev}}}{\emph{product\_info}}{} -Know if a product is in dev mode -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is in dev mode, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_fixed() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_fixed}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_fixed}}}{\emph{product\_info}}{} -Know if a product is fixed -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is fixed, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_generated() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_generated}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_generated}}}{\emph{product\_info}}{} -Know if a product is generated (YACSGEN) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is generated - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_mpi() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_mpi}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_mpi}}}{\emph{product\_info}}{} -Know if a product has openmpi in its dependencies -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product has openmpi inits dependencies - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_native() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_native}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_native}}}{\emph{product\_info}}{} -Know if a product is native -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is native, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_salome() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_salome}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_salome}}}{\emph{product\_info}}{} -Know if a product is a SALOME module -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is a SALOME module, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_smesh\_plugin() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_smesh_plugin}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_smesh\_plugin}}}{\emph{product\_info}}{} -Know if a product is a SMESH plugin -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is a SMESH plugin, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_vcs() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_vcs}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_vcs}}}{\emph{product\_info}}{} -Know if a product is download using git, svn or cvs (not archive) -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is vcs, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{product\_is\_verbose() (in module src.product)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.product.product_is_verbose}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.product.}}\sphinxbfcode{\sphinxupquote{product\_is\_verbose}}}{\emph{product\_info}}{} -Know if a product is in verbose mode -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{product\_info}}) \textendash{} The configuration specific to -the product - -\item[{Returns}] \leavevmode -True if the product is in verbose mode, else False - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.pyconf module} -\label{\detokenize{commands/apidoc/src:src-pyconf-module}}\label{\detokenize{commands/apidoc/src:module-src.pyconf}}\index{src.pyconf (module)} -This is a configuration module for Python. - -This module should work under Python versions \textgreater{}= 2.2, and cannot be used with -earlier versions since it uses new-style classes. - -Development and testing has only been carried out (so far) on Python 2.3.4 and -Python 2.4.2. See the test module (test\_config.py) included in the -U\{distribution\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} (follow the -download link). - -A simple example - with the example configuration file: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -messages: -[ - \PYGZob{} - stream : {}`sys.stderr{}` - message: \PYGZsq{}Welcome\PYGZsq{} - name: \PYGZsq{}Harry\PYGZsq{} - \PYGZcb{} - \PYGZob{} - stream : {}`sys.stdout{}` - message: \PYGZsq{}Welkom\PYGZsq{} - name: \PYGZsq{}Ruud\PYGZsq{} - \PYGZcb{} - \PYGZob{} - stream : \PYGZdl{}messages[0].stream - message: \PYGZsq{}Bienvenue\PYGZsq{} - name: Yves - \PYGZcb{} -] -\end{sphinxVerbatim} - -a program to read the configuration would be: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{k+kn}{from} \PYG{n+nn}{config} \PYG{k}{import} \PYG{n}{Config} - -\PYG{n}{f} \PYG{o}{=} \PYG{n}{file}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{simple.cfg}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} -\PYG{n}{cfg} \PYG{o}{=} \PYG{n}{Config}\PYG{p}{(}\PYG{n}{f}\PYG{p}{)} -\PYG{k}{for} \PYG{n}{m} \PYG{o+ow}{in} \PYG{n}{cfg}\PYG{o}{.}\PYG{n}{messages}\PYG{p}{:} - \PYG{n}{s} \PYG{o}{=} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s1}{, }\PYG{l+s+si}{\PYGZpc{}s}\PYG{l+s+s1}{\PYGZsq{}} \PYG{o}{\PYGZpc{}} \PYG{p}{(}\PYG{n}{m}\PYG{o}{.}\PYG{n}{message}\PYG{p}{,} \PYG{n}{m}\PYG{o}{.}\PYG{n}{name}\PYG{p}{)} - \PYG{k}{try}\PYG{p}{:} - \PYG{n+nb}{print} \PYG{o}{\PYGZgt{}\PYGZgt{}} \PYG{n}{m}\PYG{o}{.}\PYG{n}{stream}\PYG{p}{,} \PYG{n}{s} - \PYG{k}{except} \PYG{n+ne}{IOError}\PYG{p}{,} \PYG{n}{e}\PYG{p}{:} - \PYG{n+nb}{print} \PYG{n}{e} -\end{sphinxVerbatim} - -which, when run, would yield the console output: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{Welcome}\PYG{p}{,} \PYG{n}{Harry} -\PYG{n}{Welkom}\PYG{p}{,} \PYG{n}{Ruud} -\PYG{n}{Bienvenue}\PYG{p}{,} \PYG{n}{Yves} -\end{sphinxVerbatim} - -See U\{this tutorial\textless{}\sphinxurl{http://www.red-dove.com/python\_config}.html\textbar{}\_blank\textgreater{}\} for more -information. - -\#modified for salomeTools -@version: 0.3.7.1 - -@author: Vinay Sajip - -@copyright: Copyright (C) 2004-2007 Vinay Sajip. All Rights Reserved. - -@var streamOpener: The default stream opener. This is a factory function which -takes a string (e.g. filename) and returns a stream suitable for reading. If -unable to open the stream, an IOError exception should be thrown. - -The default value of this variable is L\{defaultStreamOpener\}. For an example -of how it’s used, see test\_config.py (search for streamOpener). -\index{Config (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Config}}}{\emph{streamOrFile=None}, \emph{parent=None}, \emph{PWD=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Mapping}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Mapping}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Mapping}}) - -This class represents a configuration, and is the only one which clients -need to interface to, under normal circumstances. -\index{Config.Namespace (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.Namespace}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{Namespace}}} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class is used for implementing default namespaces. - -An instance acts as a namespace. - -\end{fulllineitems} - -\index{addNamespace() (src.pyconf.Config method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.addNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addNamespace}}}{\emph{ns}, \emph{name=None}}{} -Add a namespace to this configuration which can be used to evaluate -(resolve) dotted-identifier expressions. -@param ns: The namespace to be added. -@type ns: A module or other namespace suitable for passing as an -argument to vars(). -@param name: A name for the namespace, which, if specified, provides -an additional level of indirection. -@type name: str - -\end{fulllineitems} - -\index{getByPath() (src.pyconf.Config method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{} -Obtain a value in the configuration via its path. -@param path: The path of the required value -@type path: str -@return the value at the specified path. -@rtype: any -@raise ConfigError: If the path is invalid - -\end{fulllineitems} - -\index{load() (src.pyconf.Config method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}}{} -Load the configuration from the specified stream. Multiple streams can -be used to populate the same instance, as long as there are no -clashing keys. The stream is closed. -@param stream: A stream from which the configuration is read. -@type stream: A read-only stream (file-like object). -@raise ConfigError: if keys in the loaded configuration clash with -existing keys. -@raise ConfigFormatError: if there is a syntax error in the stream. - -\end{fulllineitems} - -\index{removeNamespace() (src.pyconf.Config method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Config.removeNamespace}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{removeNamespace}}}{\emph{ns}, \emph{name=None}}{} -Remove a namespace added with L\{addNamespace\}. -@param ns: The namespace to be removed. -@param name: The name which was specified when L\{addNamespace\} was -called. -@type name: str - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigError} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigError}}} -Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}} - -This is the base class of exceptions raised by this module. - -\end{fulllineitems} - -\index{ConfigFormatError} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigFormatError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigFormatError}}} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}}) - -This is the base class of exceptions raised due to syntax errors in -configurations. - -\end{fulllineitems} - -\index{ConfigInputStream (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigInputStream}}}{\emph{stream}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -An input stream which can read either ANSI files with default encoding -or Unicode files with BOMs. - -Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had -built-in support. -\index{close() (src.pyconf.ConfigInputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{} -\end{fulllineitems} - -\index{read() (src.pyconf.ConfigInputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.read}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read}}}{\emph{size}}{} -\end{fulllineitems} - -\index{readline() (src.pyconf.ConfigInputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigInputStream.readline}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readline}}}{}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigList (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList}}\pysigline{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigList}}} -Bases: \sphinxcode{\sphinxupquote{list}} - -This class implements an ordered list of configurations and allows you -to try getting the configuration from each entry in turn, returning -the first successfully obtained value. -\index{getByPath() (src.pyconf.ConfigList method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigList.getByPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getByPath}}}{\emph{path}}{} -Obtain a value from the first configuration in the list which defines -it. - -@param path: The path of the value to retrieve. -@type path: str -@return: The value from the earliest configuration in the list which -defines it. -@rtype: any -@raise ConfigError: If no configuration in the list has an entry with -the specified path. - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigMerger (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigMerger}}}{\emph{resolver=\textless{}function defaultMergeResolve\textgreater{}}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This class is used for merging two configurations. If a key exists in the -merge operand but not the merge target, then the entry is copied from the -merge operand to the merge target. If a key exists in both configurations, -then a resolver (a callable) is called to decide how to handle the -conflict. -\index{handleMismatch() (src.pyconf.ConfigMerger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.handleMismatch}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{handleMismatch}}}{\emph{obj1}, \emph{obj2}}{} -Handle a mismatch between two objects. - -@param obj1: The object to merge into. -@type obj1: any -@param obj2: The object to merge. -@type obj2: any - -\end{fulllineitems} - -\index{merge() (src.pyconf.ConfigMerger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.merge}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{merge}}}{\emph{merged}, \emph{mergee}}{} -Merge two configurations. The second configuration is unchanged, -and the first is changed to reflect the results of the merge. - -@param merged: The configuration to merge into. -@type merged: L\{Config\}. -@param mergee: The configuration to merge. -@type mergee: L\{Config\}. - -\end{fulllineitems} - -\index{mergeMapping() (src.pyconf.ConfigMerger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeMapping}}}{\emph{map1}, \emph{map2}}{} -Merge two mappings recursively. The second mapping is unchanged, -and the first is changed to reflect the results of the merge. - -@param map1: The mapping to merge into. -@type map1: L\{Mapping\}. -@param map2: The mapping to merge. -@type map2: L\{Mapping\}. - -\end{fulllineitems} - -\index{mergeSequence() (src.pyconf.ConfigMerger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.mergeSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{mergeSequence}}}{\emph{seq1}, \emph{seq2}}{} -Merge two sequences. The second sequence is unchanged, -and the first is changed to have the elements of the second -appended to it. - -@param seq1: The sequence to merge into. -@type seq1: L\{Sequence\}. -@param seq2: The sequence to merge. -@type seq2: L\{Sequence\}. - -\end{fulllineitems} - -\index{overwriteKeys() (src.pyconf.ConfigMerger method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigMerger.overwriteKeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{overwriteKeys}}}{\emph{map1}, \emph{seq2}}{} -Renint variables. The second mapping is unchanged, -and the first is changed depending the keys of the second mapping. -@param map1: The mapping to reinit keys into. -@type map1: L\{Mapping\}. -@param map2: The mapping container reinit information. -@type map2: L\{Mapping\}. - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigOutputStream (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigOutputStream}}}{\emph{stream}, \emph{encoding=None}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -An output stream which can write either ANSI files with default encoding -or Unicode files with BOMs. - -Handles UTF-8, UTF-16LE, UTF-16BE. Could handle UTF-32 if Python had -built-in support. -\index{close() (src.pyconf.ConfigOutputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.close}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{close}}}{}{} -\end{fulllineitems} - -\index{flush() (src.pyconf.ConfigOutputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.flush}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{flush}}}{}{} -\end{fulllineitems} - -\index{write() (src.pyconf.ConfigOutputStream method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigOutputStream.write}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write}}}{\emph{data}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigReader (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigReader}}}{\emph{config}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class implements a parser for configurations. -\index{getChar() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getChar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getChar}}}{}{} -Get the next char from the stream. Update line and column numbers -appropriately. - -@return: The next character from the stream. -@rtype: str - -\end{fulllineitems} - -\index{getToken() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.getToken}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getToken}}}{}{} -Get a token from the stream. String values are returned in a form -where you need to eval() the returned value to get the actual -string. The return value is (token\_type, token\_value). - -Multiline string tokenizing is thanks to David Janes (BlogMatrix) - -@return: The next token. -@rtype: A token tuple. - -\end{fulllineitems} - -\index{load() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.load}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{load}}}{\emph{stream}, \emph{parent=None}, \emph{suffix=None}}{} -Load the configuration from the specified stream. - -@param stream: A stream from which to load the configuration. -@type stream: A stream (file-like object). -@param parent: The parent of the configuration (to which this reader -belongs) in the hierarchy. Specified when the configuration is -included in another one. -@type parent: A L\{Container\} instance. -@param suffix: The suffix of this configuration in the parent -configuration. Should be specified whenever the parent is not None. -@raise ConfigError: If parent is specified but suffix is not. -@raise ConfigFormatError: If there are syntax errors in the stream. - -\end{fulllineitems} - -\index{location() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.location}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{location}}}{}{} -Return the current location (filename, line, column) in the stream -as a string. - -Used when printing error messages, - -@return: A string representing a location in the stream being read. -@rtype: str - -\end{fulllineitems} - -\index{match() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.match}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{match}}}{\emph{t}}{} -Ensure that the current token type matches the specified value, and -advance to the next token. - -@param t: The token type to match. -@type t: A valid token type. -@return: The token which was last read from the stream before this -function is called. -@rtype: a token tuple - see L\{getToken\}. -@raise ConfigFormatError: If the token does not match what’s expected. - -\end{fulllineitems} - -\index{parseFactor() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseFactor}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseFactor}}}{}{} -Parse a factor in an multiplicative expression (a * b, a / b, a \% b) - -@return: the parsed factor -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseKeyValuePair() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseKeyValuePair}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseKeyValuePair}}}{\emph{parent}}{} -Parse a key-value pair, and add it to the provided L\{Mapping\}. - -@param parent: The mapping to add entries to. -@type parent: A L\{Mapping\} instance. -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseMapping() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMapping}}}{\emph{parent}, \emph{suffix}}{} -Parse a mapping. - -@param parent: The container to which the mapping will be added. -@type parent: A L\{Container\} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: a L\{Mapping\} instance representing the mapping. -@rtype: L\{Mapping\} -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseMappingBody() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseMappingBody}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseMappingBody}}}{\emph{parent}}{} -Parse the internals of a mapping, and add entries to the provided -L\{Mapping\}. - -@param parent: The mapping to add entries to. -@type parent: A L\{Mapping\} instance. - -\end{fulllineitems} - -\index{parseReference() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseReference}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseReference}}}{\emph{type}}{} -Parse a reference. - -@return: the parsed reference -@rtype: L\{Reference\} -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseScalar() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseScalar}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseScalar}}}{}{} -Parse a scalar - a terminal value such as a string or number, or -an L\{Expression\} or L\{Reference\}. - -@return: the parsed scalar -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseSequence() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSequence}}}{\emph{parent}, \emph{suffix}}{} -Parse a sequence. - -@param parent: The container to which the sequence will be added. -@type parent: A L\{Container\} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: a L\{Sequence\} instance representing the sequence. -@rtype: L\{Sequence\} -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseSuffix() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseSuffix}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseSuffix}}}{\emph{ref}}{} -Parse a reference suffix. - -@param ref: The reference of which this suffix is a part. -@type ref: L\{Reference\}. -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseTerm() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseTerm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseTerm}}}{}{} -Parse a term in an additive expression (a + b, a - b) - -@return: the parsed term -@rtype: any scalar -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{parseValue() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.parseValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{parseValue}}}{\emph{parent}, \emph{suffix}}{} -Parse a value. - -@param parent: The container to which the value will be added. -@type parent: A L\{Container\} instance. -@param suffix: The suffix for the value. -@type suffix: str -@return: The value -@rtype: any -@raise ConfigFormatError: if a syntax error is found. - -\end{fulllineitems} - -\index{setStream() (src.pyconf.ConfigReader method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigReader.setStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setStream}}}{\emph{stream}}{} -Set the stream to the specified value, and prepare to read from it. - -@param stream: A stream from which to load the configuration. -@type stream: A stream (file-like object). - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{ConfigResolutionError} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.ConfigResolutionError}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{ConfigResolutionError}}} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.ConfigError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.ConfigError}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.ConfigError}}) - -This is the base class of exceptions raised due to semantic errors in -configurations. - -\end{fulllineitems} - -\index{Container (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Container}}}{\emph{parent}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class is the base class for mappings and sequences. - -@ivar path: A string which describes how to get -to this instance from the root of the hierarchy. - -Example: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{a}\PYG{o}{.}\PYG{n}{list}\PYG{o}{.}\PYG{n}{of}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{]}\PYG{o}{.}\PYG{o+ow}{or}\PYG{p}{[}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{more}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{]}\PYG{o}{.}\PYG{n}{elements} -\end{sphinxVerbatim} -\index{evaluate() (src.pyconf.Container method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{item}}{} -Evaluate items which are instances of L\{Reference\} or L\{Expression\}. - -L\{Reference\} instances are evaluated using L\{Reference.resolve\}, -and L\{Expression\} instances are evaluated using -L\{Expression.evaluate\}. - -@param item: The item to be evaluated. -@type item: any -@return: If the item is an instance of L\{Reference\} or L\{Expression\}, -the evaluated value is returned, otherwise the item is returned -unchanged. - -\end{fulllineitems} - -\index{setPath() (src.pyconf.Container method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.setPath}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{setPath}}}{\emph{path}}{} -Set the path for this instance. -@param path: The path - a string which describes how to get -to this instance from the root of the hierarchy. -@type path: str - -\end{fulllineitems} - -\index{writeToStream() (src.pyconf.Container method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{} -Write this instance to a stream at the specified indentation level. - -Should be redefined in subclasses. - -@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L\{Container\} -@raise NotImplementedError: If a subclass does not override this - -\end{fulllineitems} - -\index{writeValue() (src.pyconf.Container method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Container.writeValue}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeValue}}}{\emph{value}, \emph{stream}, \emph{indent}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{Expression (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Expression}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Expression}}}{\emph{op}, \emph{lhs}, \emph{rhs}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class implements a value which is obtained by evaluating an expression. -\index{evaluate() (src.pyconf.Expression method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Expression.evaluate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{evaluate}}}{\emph{container}}{} -Evaluate this instance in the context of a container. - -@param container: The container to evaluate in from. -@type container: L\{Container\} -@return: The evaluated value. -@rtype: any -@raise ConfigResolutionError: If evaluation fails. -@raise ZeroDivideError: If division by zero occurs. -@raise TypeError: If the operation is invalid, e.g. -subtracting one string from another. - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{Mapping (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Mapping}}}{\emph{parent=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}}) - -This internal class implements key-value mappings in configurations. -\index{addMapping() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.addMapping}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addMapping}}}{\emph{key}, \emph{value}, \emph{comment}, \emph{setting=False}}{} -Add a key-value mapping with a comment. - -@param key: The key for the mapping. -@type key: str -@param value: The value for the mapping. -@type value: any -@param comment: The comment for the key (can be None). -@type comment: str -@param setting: If True, ignore clashes. This is set -to true when called from L\{\_\_setattr\_\_\}. -@raise ConfigFormatError: If an existing key is seen -again and setting is False. - -\end{fulllineitems} - -\index{get() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.get}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get}}}{\emph{key}, \emph{default=None}}{} -Allows a dictionary-style get operation. - -\end{fulllineitems} - -\index{iteritems() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iteritems}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iteritems}}}{}{} -\end{fulllineitems} - -\index{iterkeys() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.iterkeys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{iterkeys}}}{}{} -\end{fulllineitems} - -\index{keys() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.keys}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{keys}}}{}{} -Return the keys in a similar way to a dictionary. - -\end{fulllineitems} - -\index{writeToStream() (src.pyconf.Mapping method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Mapping.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{} -Write this instance to a stream at the specified indentation level. - -Should be redefined in subclasses. - -@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L\{Container\} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{Reference (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Reference}}}{\emph{config}, \emph{type}, \emph{ident}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class implements a value which is a reference to another value. -\index{addElement() (src.pyconf.Reference method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.addElement}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{addElement}}}{\emph{type}, \emph{ident}}{} -Add an element to the reference. - -@param type: The type of reference. -@type type: BACKTICK or DOLLAR -@param ident: The identifier which continues the reference. -@type ident: str - -\end{fulllineitems} - -\index{findConfig() (src.pyconf.Reference method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.findConfig}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{findConfig}}}{\emph{container}}{} -Find the closest enclosing configuration to the specified container. - -@param container: The container to start from. -@type container: L\{Container\} -@return: The closest enclosing configuration, or None. -@rtype: L\{Config\} - -\end{fulllineitems} - -\index{resolve() (src.pyconf.Reference method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Reference.resolve}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{resolve}}}{\emph{container}}{} -Resolve this instance in the context of a container. - -@param container: The container to resolve from. -@type container: L\{Container\} -@return: The resolved value. -@rtype: any -@raise ConfigResolutionError: If resolution fails. - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{Sequence (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{Sequence}}}{\emph{parent=None}}{} -Bases: {\hyperref[\detokenize{commands/apidoc/src:src.pyconf.Container}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{src.pyconf.Container}}}}} (\autopageref*{\detokenize{commands/apidoc/src:src.pyconf.Container}}) - -This internal class implements a value which is a sequence of other values. -\index{Sequence.SeqIter (class in src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxbfcode{\sphinxupquote{SeqIter}}}{\emph{seq}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -This internal class implements an iterator for a L\{Sequence\} instance. -\index{next() (src.pyconf.Sequence.SeqIter method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.SeqIter.next}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{next}}}{}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{append() (src.pyconf.Sequence method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.append}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append}}}{\emph{item}, \emph{comment}}{} -Add an item to the sequence. - -@param item: The item to add. -@type item: any -@param comment: A comment for the item. -@type comment: str - -\end{fulllineitems} - -\index{writeToStream() (src.pyconf.Sequence method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.Sequence.writeToStream}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{writeToStream}}}{\emph{stream}, \emph{indent}, \emph{container}}{} -Write this instance to a stream at the specified indentation level. - -Should be redefined in subclasses. - -@param stream: The stream to write to -@type stream: A writable stream (file-like object) -@param indent: The indentation level -@type indent: int -@param container: The container of this instance -@type container: L\{Container\} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{deepCopyMapping() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.deepCopyMapping}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{deepCopyMapping}}}{\emph{inMapping}}{} -\end{fulllineitems} - -\index{defaultMergeResolve() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{} -A default resolver for merge conflicts. -Returns a string indicating what action to take to resolve the conflict. - -@param map1: The map being merged into. -@type map1: L\{Mapping\}. -@param map2: The map being used as the merge operand. -@type map2: L\{Mapping\}. -@param key: The key in map2 (which also exists in map1). -@type key: str -\begin{description} -\item[{@return: One of “merge”, “append”, “mismatch” or “overwrite”}] \leavevmode -indicating what action should be taken. This should -be appropriate to the objects being merged - e.g. -there is no point returning “merge” if the two objects -are instances of L\{Sequence\}. - -\end{description} - -@rtype: str - -\end{fulllineitems} - -\index{defaultStreamOpener() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.defaultStreamOpener}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{defaultStreamOpener}}}{\emph{name}}{} -This function returns a read-only stream, given its name. The name passed -in should correspond to an existing stream, otherwise an exception will be -raised. - -This is the default value of L\{streamOpener\}; assign your own callable to -streamOpener to return streams based on names. For example, you could use -urllib2.urlopen(). - -@param name: The name of a stream, most commonly a file name. -@type name: str -@return: A stream with the specified name. -@rtype: A read-only stream (file-like object) - -\end{fulllineitems} - -\index{isWord() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.isWord}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{isWord}}}{\emph{s}}{} -See if a passed-in value is an identifier. If the value passed in is not a -string, False is returned. An identifier consists of alphanumerics or -underscore characters. - -Examples: - -\fvset{hllines={, ,}}% -\begin{sphinxVerbatim}[commandchars=\\\{\}] -\PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{a word}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}}\PYG{k+kc}{False} -\PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{award}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}} \PYG{k+kc}{True} -\PYG{n}{isWord}\PYG{p}{(}\PYG{l+m+mi}{9}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}} \PYG{k+kc}{False} -\PYG{n}{isWord}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{a\PYGZus{}b\PYGZus{}c\PYGZus{}}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)} \PYG{o}{\PYGZhy{}}\PYG{o}{\PYGZgt{}}\PYG{k+kc}{True} -\end{sphinxVerbatim} - -@note: isWord(‘9abc’) will return True - not exactly correct, but adequate -for the way it’s used here. - -@param s: The name to be tested -@type s: any -@return: True if a word, else False -@rtype: bool - -\end{fulllineitems} - -\index{makePath() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.makePath}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{makePath}}}{\emph{prefix}, \emph{suffix}}{} -Make a path from a prefix and suffix. - -Examples: -makePath(‘’, ‘suffix’) -\textgreater{} ‘suffix’ -makePath(‘prefix’, ‘suffix’) -\textgreater{} ‘prefix.suffix’ -makePath(‘prefix’, ‘{[}1{]}’) -\textgreater{} ‘prefix{[}1{]}’ - -@param prefix: The prefix to use. If it evaluates as false, the suffix is returned. -@type prefix: str -@param suffix: The suffix to use. It is either an identifier or an index in brackets. -@type suffix: str -@return: The path concatenation of prefix and suffix, with adot if the suffix is not a bracketed index. -@rtype: str - -\end{fulllineitems} - -\index{overwriteMergeResolve() (in module src.pyconf)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.pyconf.overwriteMergeResolve}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.pyconf.}}\sphinxbfcode{\sphinxupquote{overwriteMergeResolve}}}{\emph{map1}, \emph{map2}, \emph{key}}{} -An overwriting resolver for merge conflicts. Calls L\{defaultMergeResolve\}, -but where a “mismatch” is detected, returns “overwrite” instead. - -@param map1: The map being merged into. -@type map1: L\{Mapping\}. -@param map2: The map being used as the merge operand. -@type map2: L\{Mapping\}. -@param key: The key in map2 (which also exists in map1). -@type key: str - -\end{fulllineitems} - - - -\subsubsection{src.system module} -\label{\detokenize{commands/apidoc/src:src-system-module}}\label{\detokenize{commands/apidoc/src:module-src.system}}\index{src.system (module)} -In this file : all functions that do a system call, -like open a browser or an editor, or call a git command -\index{archive\_extract() (in module src.system)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.system.archive_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{archive\_extract}}}{\emph{from\_what}, \emph{where}, \emph{logger}}{} -Extracts sources from an archive. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The path to the archive. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use. - -\end{itemize} - -\item[{Returns}] \leavevmode -True if the extraction is successful - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{cvs\_extract() (in module src.system)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.system.cvs_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{cvs\_extract}}}{\emph{protocol}, \emph{user}, \emph{server}, \emph{base}, \emph{tag}, \emph{product}, \emph{where}, \emph{logger}, \emph{checkout=False}, \emph{environment=None}}{} -Extracts sources from a cvs repository. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The cvs protocol. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The user to be used. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote cvs server. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} -. - - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The product. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout cvs. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when -extracting. - -\end{itemize} - -\item[{Returns}] \leavevmode -True if the extraction is successful - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{git\_extract() (in module src.system)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.system.git_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{git\_extract}}}{\emph{from\_what}, \emph{tag}, \emph{where}, \emph{logger}, \emph{environment=None}}{} -Extracts sources from a git repository. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The remote git repository. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when -extracting. - -\end{itemize} - -\item[{Returns}] \leavevmode -True if the extraction is successful - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{show\_in\_editor() (in module src.system)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.system.show_in_editor}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{show\_in\_editor}}}{\emph{editor}, \emph{filePath}, \emph{logger}}{} -open filePath using editor. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{filePath}}) \textendash{} The editor to use. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path to the file to open. - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{svn\_extract() (in module src.system)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.system.svn_extract}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.system.}}\sphinxbfcode{\sphinxupquote{svn\_extract}}}{\emph{user}, \emph{from\_what}, \emph{tag}, \emph{where}, \emph{logger}, \emph{checkout=False}, \emph{environment=None}}{} -Extracts sources from a svn repository. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{where}}) \textendash{} The user to be used. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The remote git repository. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The tag. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The path where to extract. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logger instance to use. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{boolean}} (\sphinxstyleliteralemphasis{\sphinxupquote{checkout}}) \textendash{} If true use checkout svn. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{src.environment.Environ}} (\sphinxstyleliteralemphasis{\sphinxupquote{environment}}) \textendash{} The environment to source when -extracting. - -\end{itemize} - -\item[{Returns}] \leavevmode -True if the extraction is successful - -\item[{Return type}] \leavevmode -boolean - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{src.template module} -\label{\detokenize{commands/apidoc/src:module-src.template}}\label{\detokenize{commands/apidoc/src:src-template-module}}\index{src.template (module)}\index{MyTemplate (class in src.template)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{MyTemplate}}}{\emph{template}}{} -Bases: \sphinxcode{\sphinxupquote{string.Template}} -\index{delimiter (src.template.MyTemplate attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.delimiter}}\pysigline{\sphinxbfcode{\sphinxupquote{delimiter}}\sphinxbfcode{\sphinxupquote{ = '\textbackslash{}xc2\textbackslash{}xa4'}}} -\end{fulllineitems} - -\index{pattern (src.template.MyTemplate attribute)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.template.MyTemplate.pattern}}\pysigline{\sphinxbfcode{\sphinxupquote{pattern}}\sphinxbfcode{\sphinxupquote{ = \textless{}\_sre.SRE\_Pattern object\textgreater{}}}} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{substitute() (in module src.template)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.template.substitute}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.template.}}\sphinxbfcode{\sphinxupquote{substitute}}}{\emph{template\_file}, \emph{subst\_dic}}{} -\end{fulllineitems} - - - -\subsubsection{src.test\_module module} -\label{\detokenize{commands/apidoc/src:module-src.test_module}}\label{\detokenize{commands/apidoc/src:src-test-module-module}}\index{src.test\_module (module)}\index{Test (class in src.test\_module)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.test\_module.}}\sphinxbfcode{\sphinxupquote{Test}}}{\emph{config}, \emph{logger}, \emph{tmp\_working\_dir}, \emph{testbase=''}, \emph{grids=None}, \emph{sessions=None}, \emph{launcher=''}, \emph{show\_desktop=True}}{}~\index{generate\_launching\_commands() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_launching_commands}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_launching\_commands}}}{}{} -\end{fulllineitems} - -\index{generate\_script() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.generate_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{generate\_script}}}{\emph{listTest}, \emph{script\_path}, \emph{ignoreList}}{} -\end{fulllineitems} - -\index{get\_test\_timeout() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.get_test_timeout}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_test\_timeout}}}{\emph{test\_name}, \emph{default\_value}}{} -\end{fulllineitems} - -\index{get\_tmp\_dir() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.get_tmp_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_tmp\_dir}}}{}{} -\end{fulllineitems} - -\index{prepare\_testbase() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase}}}{\emph{test\_base\_name}}{} -\end{fulllineitems} - -\index{prepare\_testbase\_from\_dir() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_dir}}}{\emph{testbase\_name}, \emph{testbase\_dir}}{} -\end{fulllineitems} - -\index{prepare\_testbase\_from\_git() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_git}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_git}}}{\emph{testbase\_name}, \emph{testbase\_base}, \emph{testbase\_tag}}{} -\end{fulllineitems} - -\index{prepare\_testbase\_from\_svn() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.prepare_testbase_from_svn}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{prepare\_testbase\_from\_svn}}}{\emph{user}, \emph{testbase\_name}, \emph{testbase\_base}}{} -\end{fulllineitems} - -\index{read\_results() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.read_results}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{read\_results}}}{\emph{listTest}, \emph{has\_timed\_out}}{} -\end{fulllineitems} - -\index{run\_all\_tests() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_all_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_all\_tests}}}{}{} -\end{fulllineitems} - -\index{run\_grid\_tests() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_grid_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_grid\_tests}}}{}{} -\end{fulllineitems} - -\index{run\_script() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_script}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_script}}}{\emph{script\_name}}{} -\end{fulllineitems} - -\index{run\_session\_tests() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_session_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_session\_tests}}}{}{} -\end{fulllineitems} - -\index{run\_testbase\_tests() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_testbase_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_testbase\_tests}}}{}{} -\end{fulllineitems} - -\index{run\_tests() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.run_tests}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{run\_tests}}}{\emph{listTest}, \emph{ignoreList}}{} -\end{fulllineitems} - -\index{search\_known\_errors() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.search_known_errors}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{search\_known\_errors}}}{\emph{status}, \emph{test\_grid}, \emph{test\_session}, \emph{test}}{} -\end{fulllineitems} - -\index{write\_test\_margin() (src.test\_module.Test method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.Test.write_test_margin}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_test\_margin}}}{\emph{tab}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{getTmpDirDEFAULT() (in module src.test\_module)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.test_module.getTmpDirDEFAULT}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.test\_module.}}\sphinxbfcode{\sphinxupquote{getTmpDirDEFAULT}}}{}{} -\end{fulllineitems} - - - -\subsubsection{src.xmlManager module} -\label{\detokenize{commands/apidoc/src:src-xmlmanager-module}}\label{\detokenize{commands/apidoc/src:module-src.xmlManager}}\index{src.xmlManager (module)}\index{ReadXmlFile (class in src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{ReadXmlFile}}}{\emph{filePath}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Class to manage reading of an xml log file -\index{getRootAttrib() (src.xmlManager.ReadXmlFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.getRootAttrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{getRootAttrib}}}{}{} -Get the attibutes of the self.xmlroot -\begin{quote}\begin{description} -\item[{Returns}] \leavevmode -The attributes of the root node - -\item[{Return type}] \leavevmode -dict - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_attrib() (src.xmlManager.ReadXmlFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_attrib}}}{\emph{node\_name}}{} -Get the attibutes of the node node\_name in self.xmlroot -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} the name of the node - -\item[{Returns}] \leavevmode -the attibutes of the node node\_name in self.xmlroot - -\item[{Return type}] \leavevmode -dict - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_node\_text() (src.xmlManager.ReadXmlFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.ReadXmlFile.get_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{get\_node\_text}}}{\emph{node}}{}~\begin{description} -\item[{Get the text of the first node that has name }] \leavevmode -that corresponds to the parameter node - -\end{description} -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node}}) \textendash{} the name of the node from which get the text - -\item[{Returns}] \leavevmode -the text of the first node that has name -that corresponds to the parameter node - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{XmlLogFile (class in src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{XmlLogFile}}}{\emph{filePath}, \emph{rootname}, \emph{attrib=\{\}}}{} -Bases: \sphinxcode{\sphinxupquote{object}} - -Class to manage writing in salomeTools xml log file -\index{add\_simple\_node() (src.xmlManager.XmlLogFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.add_simple_node}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{add\_simple\_node}}}{\emph{node\_name}, \emph{text=None}, \emph{attrib=\{\}}}{} -Add a node with some attibutes and text to the root node. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the -attribute of the new node - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_node\_attrib() (src.xmlManager.XmlLogFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_attrib}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_attrib}}}{\emph{node\_name}, \emph{attrib}}{} -Append a new attributes to the node that has node\_name as name -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{node\_name}}) \textendash{} The name of the node on which append text - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_node\_text() (src.xmlManager.XmlLogFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.append_node_text}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{append\_node\_text}}}{\emph{node\_name}, \emph{text}}{} -Append a new text to the node that has node\_name as name -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} The name of the node on which append text - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The text to append - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{write\_tree() (src.xmlManager.XmlLogFile method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.XmlLogFile.write_tree}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{write\_tree}}}{\emph{stylesheet=None}, \emph{file\_path=None}}{} -Write the xml tree in the log file path. Add the stylesheet if asked. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The stylesheet to apply to the xml file - -\end{description}\end{quote} - -\end{fulllineitems} - - -\end{fulllineitems} - -\index{add\_simple\_node() (in module src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.add_simple_node}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{add\_simple\_node}}}{\emph{root\_node}, \emph{node\_name}, \emph{text=None}, \emph{attrib=\{\}}}{} -Add a node with some attibutes and text to the root node. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element where to add the new node - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{text}}) \textendash{} the name of the node to add - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the text of the node - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dict}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} the dictionary containing the -attribute of the new node - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{append\_node\_attrib() (in module src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.append_node_attrib}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{append\_node\_attrib}}}{\emph{root\_node}, \emph{attrib}}{} -Append a new attributes to the node that has node\_name as name -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{root\_node}}) \textendash{} the Etree element -where to append the new attibutes - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{dixt}} (\sphinxstyleliteralemphasis{\sphinxupquote{attrib}}) \textendash{} The attrib to append - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{find\_node\_by\_attrib() (in module src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.find_node_by_attrib}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{find\_node\_by\_attrib}}}{\emph{xmlroot}, \emph{name\_node}, \emph{key}, \emph{value}}{}~\begin{description} -\item[{Find the nfirst ode from xmlroot that has name name\_node and that has in }] \leavevmode -its attributes \{key : value\}. Return the node - -\end{description} -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element where to search - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{value}}) \textendash{} the name of node to search - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the key to search - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} the value to search - -\end{itemize} - -\item[{Returns}] \leavevmode -the found node - -\item[{Return type}] \leavevmode -xmlroot etree.Element - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{write\_report() (in module src.xmlManager)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.xmlManager.write_report}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.xmlManager.}}\sphinxbfcode{\sphinxupquote{write\_report}}}{\emph{filename}, \emph{xmlroot}, \emph{stylesheet}}{} -Writes a report file from a XML tree. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{stylesheet}}) \textendash{} The path to the file to create - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{etree.Element}} (\sphinxstyleliteralemphasis{\sphinxupquote{xmlroot}}) \textendash{} the Etree element to write to the file - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The stylesheet to add to the begin of the file - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - - - -\subsubsection{Module contents} -\label{\detokenize{commands/apidoc/src:module-src}}\label{\detokenize{commands/apidoc/src:module-contents}}\index{src (module)} -initial imports and utilities methods for salomeTools -\index{Path (class in src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{class }}\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{Path}}}{\emph{path}}{}~\index{base() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.base}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{base}}}{}{} -\end{fulllineitems} - -\index{chmod() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.chmod}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{chmod}}}{\emph{mode}}{} -\end{fulllineitems} - -\index{copy() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copy}}}{\emph{path}, \emph{smart=False}}{} -\end{fulllineitems} - -\index{copydir() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copydir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copydir}}}{\emph{dst}, \emph{smart=False}}{} -\end{fulllineitems} - -\index{copyfile() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copyfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copyfile}}}{\emph{path}}{} -\end{fulllineitems} - -\index{copylink() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.copylink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{copylink}}}{\emph{path}}{} -\end{fulllineitems} - -\index{dir() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.dir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{dir}}}{}{} -\end{fulllineitems} - -\index{exists() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.exists}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{exists}}}{}{} -\end{fulllineitems} - -\index{isdir() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isdir}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isdir}}}{}{} -\end{fulllineitems} - -\index{isfile() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.isfile}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{isfile}}}{}{} -\end{fulllineitems} - -\index{islink() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.islink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{islink}}}{}{} -\end{fulllineitems} - -\index{list() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.list}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{list}}}{}{} -\end{fulllineitems} - -\index{make() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.make}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{make}}}{\emph{mode=None}}{} -\end{fulllineitems} - -\index{readlink() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.readlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{readlink}}}{}{} -\end{fulllineitems} - -\index{rm() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.rm}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{rm}}}{}{} -\end{fulllineitems} - -\index{smartcopy() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.smartcopy}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{smartcopy}}}{\emph{path}}{} -\end{fulllineitems} - -\index{symlink() (src.Path method)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.Path.symlink}}\pysiglinewithargsret{\sphinxbfcode{\sphinxupquote{symlink}}}{\emph{path}}{} -\end{fulllineitems} - - -\end{fulllineitems} - -\index{SatException} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.SatException}}\pysigline{\sphinxbfcode{\sphinxupquote{exception }}\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{SatException}}} -Bases: \sphinxcode{\sphinxupquote{exceptions.Exception}} - -rename Exception Class - -\end{fulllineitems} - -\index{activate\_mesa\_property() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.activate_mesa_property}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{activate\_mesa\_property}}}{\emph{config}}{} -Add mesa property into application properties -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global configuration. It must have an application! - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{check\_config\_has\_application() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.check_config_has_application}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{check\_config\_has\_application}}}{\emph{config}, \emph{details=None}}{} -check that the config has the key APPLICATION. Else raise an exception. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config. - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{check\_config\_has\_profile() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.check_config_has_profile}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{check\_config\_has\_profile}}}{\emph{config}, \emph{details=None}}{} -check that the config has the key APPLICATION.profile. -else, raise an exception. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config. - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{config\_has\_application() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.config_has_application}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{config\_has\_application}}}{\emph{config}}{} -\end{fulllineitems} - -\index{deepcopy\_list() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.deepcopy_list}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{deepcopy\_list}}}{\emph{input\_list}}{} -Do a deep copy of a list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to copy - -\item[{Returns}] \leavevmode -The copy of the list - -\item[{Return type}] \leavevmode -List - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{ensure\_path\_exists() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.ensure_path_exists}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{ensure\_path\_exists}}}{\emph{p}}{} -Create a path if not existing -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{p}}) \textendash{} The path. - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{find\_file\_in\_lpath() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.find_file_in_lpath}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{find\_file\_in\_lpath}}}{\emph{file\_name}, \emph{lpath}, \emph{additional\_dir=''}}{} -Find in all the directories in lpath list the file that has the same name -as file\_name. -If it is found -then return the full path of the file -else return False. - -The additional\_dir (optional) is the name of the directory to add to all -paths in lpath. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{additional\_dir}}) \textendash{} The file name to search - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{lpath}}) \textendash{} The list of directories where to search - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The name of the additional directory - -\end{itemize} - -\item[{Returns}] \leavevmode -the full path of the file or False if not found - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_base\_path() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_base_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_base\_path}}}{\emph{config}}{} -Returns the path of the products base. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance. - -\item[{Returns}] \leavevmode -The path of the products base. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_cfg\_param() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_cfg_param}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_cfg\_param}}}{\emph{config}, \emph{param\_name}, \emph{default}}{} -eearch for param\_name value in config. -if param\_name is not in config -then return default, -else return the found value -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{class 'common.pyconf.Config'}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The config. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{default}}) \textendash{} the name of the parameter to get the value - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{str}} \textendash{} The value to return if param\_name is not in config - -\end{itemize} - -\item[{Returns}] \leavevmode -see initial description of the function - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_launcher\_name() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_launcher_name}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_launcher\_name}}}{\emph{config}}{} -Returns the name of salome launcher. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance. - -\item[{Returns}] \leavevmode -The name of salome launcher. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_log\_path() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_log_path}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_log\_path}}}{\emph{config}}{} -Returns the path of the logs. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{Config}} (\sphinxstyleliteralemphasis{\sphinxupquote{config}}) \textendash{} The global Config instance. - -\item[{Returns}] \leavevmode -The path of the logs. - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{get\_property\_in\_product\_cfg() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_property_in_product_cfg}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_property\_in\_product\_cfg}}}{\emph{product\_cfg}, \emph{pprty}}{} -\end{fulllineitems} - -\index{get\_salome\_version() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_salome_version}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_salome\_version}}}{\emph{config}}{} -\end{fulllineitems} - -\index{get\_tmp\_filename() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.get_tmp_filename}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{get\_tmp\_filename}}}{\emph{cfg}, \emph{name}}{} -\end{fulllineitems} - -\index{handleRemoveReadonly() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.handleRemoveReadonly}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{handleRemoveReadonly}}}{\emph{func}, \emph{path}, \emph{exc}}{} -\end{fulllineitems} - -\index{merge\_dicts() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.merge_dicts}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{merge\_dicts}}}{\emph{*dict\_args}}{} -Given any number of dicts, shallow copy and merge into a new dict, -precedence goes to key value pairs in latter dicts. - -\end{fulllineitems} - -\index{only\_numbers() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.only_numbers}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{only\_numbers}}}{\emph{str\_num}}{} -\end{fulllineitems} - -\index{parse\_date() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.parse_date}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{parse\_date}}}{\emph{date}}{} -Transform YYYYMMDD\_hhmmss into YYYY-MM-DD hh:mm:ss. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{str}} (\sphinxstyleliteralemphasis{\sphinxupquote{date}}) \textendash{} The date to transform - -\item[{Returns}] \leavevmode -The date in the new format - -\item[{Return type}] \leavevmode -str - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{print\_info() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.print_info}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{print\_info}}}{\emph{logger}, \emph{info}}{} -Prints the tuples that are in info variable in a formatted way. -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode\begin{itemize} -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{Logger}} (\sphinxstyleliteralemphasis{\sphinxupquote{logger}}) \textendash{} The logging instance to use for the prints. - -\item {} -\sphinxstyleliteralstrong{\sphinxupquote{list}} (\sphinxstyleliteralemphasis{\sphinxupquote{info}}) \textendash{} The list of tuples to display - -\end{itemize} - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{read\_config\_from\_a\_file() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.read_config_from_a_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{read\_config\_from\_a\_file}}}{\emph{filePath}}{} -\end{fulllineitems} - -\index{remove\_item\_from\_list() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.remove_item_from_list}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{remove\_item\_from\_list}}}{\emph{input\_list}, \emph{item}}{} -Remove all occurences of item from input\_list -\begin{quote}\begin{description} -\item[{Parameters}] \leavevmode -\sphinxstyleliteralstrong{\sphinxupquote{List}} (\sphinxstyleliteralemphasis{\sphinxupquote{input\_list}}) \textendash{} The list to modify - -\item[{Returns}] \leavevmode -The without any item - -\item[{Return type}] \leavevmode -List - -\end{description}\end{quote} - -\end{fulllineitems} - -\index{replace\_in\_file() (in module src)} - -\begin{fulllineitems} -\phantomsection\label{\detokenize{commands/apidoc/src:src.replace_in_file}}\pysiglinewithargsret{\sphinxcode{\sphinxupquote{src.}}\sphinxbfcode{\sphinxupquote{replace\_in\_file}}}{\emph{filein}, \emph{strin}, \emph{strout}}{} -Replace \textless{}strin\textgreater{} by \textless{}strout\textgreater{} in file \textless{}filein\textgreater{} - -\end{fulllineitems} - - - -\chapter{Release Notes} -\label{\detokenize{index:release-notes}} - -\section{Release notes} -\label{\detokenize{release_notes/release_notes_5.0.0:release-notes}}\label{\detokenize{release_notes/release_notes_5.0.0::doc}} -In construction. - - -\renewcommand{\indexname}{Python Module Index} -\begin{sphinxtheindex} -\def\bigletter#1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}} -\bigletter{s} -\item {\sphinxstyleindexentry{src}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src}} -\item {\sphinxstyleindexentry{src.architecture}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.architecture}} -\item {\sphinxstyleindexentry{src.colorama}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama}} -\item {\sphinxstyleindexentry{src.colorama.ansi}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansi}} -\item {\sphinxstyleindexentry{src.colorama.ansitowin32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.ansitowin32}} -\item {\sphinxstyleindexentry{src.colorama.initialise}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.initialise}} -\item {\sphinxstyleindexentry{src.colorama.win32}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.win32}} -\item {\sphinxstyleindexentry{src.colorama.winterm}}\sphinxstyleindexpageref{commands/apidoc/src.colorama:\detokenize{module-src.colorama.winterm}} -\item {\sphinxstyleindexentry{src.compilation}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.compilation}} -\item {\sphinxstyleindexentry{src.debug}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.debug}} -\item {\sphinxstyleindexentry{src.ElementTree}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.ElementTree}} -\item {\sphinxstyleindexentry{src.environment}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.environment}} -\item {\sphinxstyleindexentry{src.fileEnviron}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fileEnviron}} -\item {\sphinxstyleindexentry{src.fork}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.fork}} -\item {\sphinxstyleindexentry{src.logger}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.logger}} -\item {\sphinxstyleindexentry{src.options}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.options}} -\item {\sphinxstyleindexentry{src.printcolors}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.printcolors}} -\item {\sphinxstyleindexentry{src.product}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.product}} -\item {\sphinxstyleindexentry{src.pyconf}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.pyconf}} -\item {\sphinxstyleindexentry{src.system}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.system}} -\item {\sphinxstyleindexentry{src.template}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.template}} -\item {\sphinxstyleindexentry{src.test\_module}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.test_module}} -\item {\sphinxstyleindexentry{src.xmlManager}}\sphinxstyleindexpageref{commands/apidoc/src:\detokenize{module-src.xmlManager}} -\end{sphinxtheindex} - -\renewcommand{\indexname}{Index} -\printindex -\end{document} \ No newline at end of file diff --git a/doc/build/latex/salomeTools.toc b/doc/build/latex/salomeTools.toc deleted file mode 100644 index 93daa3f..0000000 --- a/doc/build/latex/salomeTools.toc +++ /dev/null @@ -1,110 +0,0 @@ -\babel@toc {english}{} -\contentsline {chapter}{\numberline {1}Quick start}{3}{chapter.1} -\contentsline {section}{\numberline {1.1}Installation}{3}{section.1.1} -\contentsline {section}{\numberline {1.2}Configuration}{3}{section.1.2} -\contentsline {subsection}{\numberline {1.2.1}Syntax}{3}{subsection.1.2.1} -\contentsline {subsection}{\numberline {1.2.2}Description}{3}{subsection.1.2.2} -\contentsline {subsubsection}{VARS section}{3}{subsubsection*.3} -\contentsline {subsubsection}{PRODUCTS section}{4}{subsubsection*.4} -\contentsline {subsubsection}{APPLICATION section}{4}{subsubsection*.5} -\contentsline {subsubsection}{USER section}{4}{subsubsection*.6} -\contentsline {section}{\numberline {1.3}Usage of SAlomeTools}{5}{section.1.3} -\contentsline {subsection}{\numberline {1.3.1}Usage}{5}{subsection.1.3.1} -\contentsline {subsubsection}{Options of sat}{5}{subsubsection*.7} -\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}help or -h}}{5}{paragraph*.8} -\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}debug or -g}}{5}{paragraph*.9} -\contentsline {paragraph}{\sphinxstyleemphasis {\textendash {}verbose or -v}}{5}{paragraph*.10} -\contentsline {subsection}{\numberline {1.3.2}Build a SALOME product}{5}{subsection.1.3.2} -\contentsline {subsubsection}{Get the list of available products}{5}{subsubsection*.11} -\contentsline {subsubsection}{Prepare sources of a product}{5}{subsubsection*.12} -\contentsline {subsubsection}{Compile SALOME}{6}{subsubsection*.13} -\contentsline {chapter}{\numberline {2}List of Commands}{7}{chapter.2} -\contentsline {section}{\numberline {2.1}Command doc}{8}{section.2.1} -\contentsline {subsection}{\numberline {2.1.1}Description}{8}{subsection.2.1.1} -\contentsline {subsection}{\numberline {2.1.2}Usage}{8}{subsection.2.1.2} -\contentsline {subsection}{\numberline {2.1.3}Some useful configuration pathes}{8}{subsection.2.1.3} -\contentsline {section}{\numberline {2.2}Command config}{9}{section.2.2} -\contentsline {subsection}{\numberline {2.2.1}Description}{9}{subsection.2.2.1} -\contentsline {subsection}{\numberline {2.2.2}Usage}{9}{subsection.2.2.2} -\contentsline {subsection}{\numberline {2.2.3}Some useful configuration pathes}{10}{subsection.2.2.3} -\contentsline {section}{\numberline {2.3}Command prepare}{11}{section.2.3} -\contentsline {subsection}{\numberline {2.3.1}Description}{11}{subsection.2.3.1} -\contentsline {subsection}{\numberline {2.3.2}Remarks}{11}{subsection.2.3.2} -\contentsline {subsubsection}{VCS bases (git, svn, cvs)}{11}{subsubsection*.14} -\contentsline {subsubsection}{Dev mode}{11}{subsubsection*.15} -\contentsline {subsection}{\numberline {2.3.3}Usage}{11}{subsection.2.3.3} -\contentsline {subsection}{\numberline {2.3.4}Some useful configuration pathes}{12}{subsection.2.3.4} -\contentsline {section}{\numberline {2.4}Command compile}{13}{section.2.4} -\contentsline {subsection}{\numberline {2.4.1}Description}{13}{subsection.2.4.1} -\contentsline {subsection}{\numberline {2.4.2}Usage}{13}{subsection.2.4.2} -\contentsline {subsection}{\numberline {2.4.3}Some useful configuration pathes}{14}{subsection.2.4.3} -\contentsline {section}{\numberline {2.5}Command launcher}{15}{section.2.5} -\contentsline {subsection}{\numberline {2.5.1}Description}{15}{subsection.2.5.1} -\contentsline {subsection}{\numberline {2.5.2}Usage}{15}{subsection.2.5.2} -\contentsline {subsection}{\numberline {2.5.3}Configuration}{15}{subsection.2.5.3} -\contentsline {section}{\numberline {2.6}Command application}{16}{section.2.6} -\contentsline {subsection}{\numberline {2.6.1}Description}{16}{subsection.2.6.1} -\contentsline {subsection}{\numberline {2.6.2}Usage}{16}{subsection.2.6.2} -\contentsline {subsection}{\numberline {2.6.3}Some useful configuration pathes}{16}{subsection.2.6.3} -\contentsline {section}{\numberline {2.7}Command log}{17}{section.2.7} -\contentsline {subsection}{\numberline {2.7.1}Description}{17}{subsection.2.7.1} -\contentsline {subsection}{\numberline {2.7.2}Usage}{17}{subsection.2.7.2} -\contentsline {subsection}{\numberline {2.7.3}Some useful configuration pathes}{17}{subsection.2.7.3} -\contentsline {section}{\numberline {2.8}Command environ}{18}{section.2.8} -\contentsline {subsection}{\numberline {2.8.1}Description}{18}{subsection.2.8.1} -\contentsline {subsection}{\numberline {2.8.2}Usage}{18}{subsection.2.8.2} -\contentsline {subsection}{\numberline {2.8.3}Configuration}{18}{subsection.2.8.3} -\contentsline {section}{\numberline {2.9}Command clean}{21}{section.2.9} -\contentsline {subsection}{\numberline {2.9.1}Description}{21}{subsection.2.9.1} -\contentsline {subsection}{\numberline {2.9.2}Usage}{21}{subsection.2.9.2} -\contentsline {subsection}{\numberline {2.9.3}Availables options}{21}{subsection.2.9.3} -\contentsline {subsection}{\numberline {2.9.4}Some useful configuration pathes}{21}{subsection.2.9.4} -\contentsline {section}{\numberline {2.10}Command package}{22}{section.2.10} -\contentsline {subsection}{\numberline {2.10.1}Description}{22}{subsection.2.10.1} -\contentsline {subsection}{\numberline {2.10.2}Usage}{22}{subsection.2.10.2} -\contentsline {subsection}{\numberline {2.10.3}Some useful configuration pathes}{23}{subsection.2.10.3} -\contentsline {section}{\numberline {2.11}Command generate}{24}{section.2.11} -\contentsline {subsection}{\numberline {2.11.1}Description}{24}{subsection.2.11.1} -\contentsline {subsection}{\numberline {2.11.2}Remarks}{24}{subsection.2.11.2} -\contentsline {subsection}{\numberline {2.11.3}Usage}{24}{subsection.2.11.3} -\contentsline {chapter}{\numberline {3}Developer documentation}{25}{chapter.3} -\contentsline {section}{\numberline {3.1}Add a user custom command}{26}{section.3.1} -\contentsline {subsection}{\numberline {3.1.1}Introduction}{26}{subsection.3.1.1} -\contentsline {subsection}{\numberline {3.1.2}Basic requirements}{26}{subsection.3.1.2} -\contentsline {subsection}{\numberline {3.1.3}HowTo access salomeTools config and other commands}{27}{subsection.3.1.3} -\contentsline {subsection}{\numberline {3.1.4}HowTo logger}{27}{subsection.3.1.4} -\contentsline {subsection}{\numberline {3.1.5}HELLO example}{27}{subsection.3.1.5} -\contentsline {chapter}{\numberline {4}Code documentation}{29}{chapter.4} -\contentsline {section}{\numberline {4.1}src}{29}{section.4.1} -\contentsline {subsection}{\numberline {4.1.1}src package}{29}{subsection.4.1.1} -\contentsline {subsubsection}{Subpackages}{29}{subsubsection*.16} -\contentsline {paragraph}{src.colorama package}{29}{paragraph*.17} -\contentsline {subparagraph}{Submodules}{29}{subparagraph*.18} -\contentsline {subparagraph}{src.colorama.ansi module}{29}{subparagraph*.19} -\contentsline {subparagraph}{src.colorama.ansitowin32 module}{31}{subparagraph*.72} -\contentsline {subparagraph}{src.colorama.initialise module}{31}{subparagraph*.90} -\contentsline {subparagraph}{src.colorama.win32 module}{32}{subparagraph*.97} -\contentsline {subparagraph}{src.colorama.winterm module}{32}{subparagraph*.100} -\contentsline {subparagraph}{Module contents}{33}{subparagraph*.128} -\contentsline {subsubsection}{Submodules}{33}{subsubsection*.129} -\contentsline {subsubsection}{src.ElementTree module}{33}{subsubsection*.130} -\contentsline {subsubsection}{src.architecture module}{34}{subsubsection*.162} -\contentsline {subsubsection}{src.compilation module}{34}{subsubsection*.169} -\contentsline {subsubsection}{src.debug module}{35}{subsubsection*.188} -\contentsline {subsubsection}{src.environment module}{36}{subsubsection*.205} -\contentsline {subsubsection}{src.fileEnviron module}{40}{subsubsection*.243} -\contentsline {subsubsection}{src.fork module}{46}{subsubsection*.308} -\contentsline {subsubsection}{src.logger module}{47}{subsubsection*.314} -\contentsline {subsubsection}{src.options module}{48}{subsubsection*.333} -\contentsline {subsubsection}{src.printcolors module}{49}{subsubsection*.344} -\contentsline {subsubsection}{src.product module}{51}{subsubsection*.357} -\contentsline {subsubsection}{src.pyconf module}{55}{subsubsection*.387} -\contentsline {subsubsection}{src.system module}{62}{subsubsection*.459} -\contentsline {subsubsection}{src.template module}{64}{subsubsection*.465} -\contentsline {subsubsection}{src.test\_module module}{64}{subsubsection*.470} -\contentsline {subsubsection}{src.xmlManager module}{64}{subsubsection*.490} -\contentsline {subsubsection}{Module contents}{66}{subsubsection*.504} -\contentsline {chapter}{\numberline {5}Release Notes}{71}{chapter.5} -\contentsline {section}{\numberline {5.1}Release notes}{71}{section.5.1} -\contentsline {chapter}{Python Module Index}{73}{section*.546} -\contentsline {chapter}{Index}{75}{section*.547} diff --git a/doc/build/latex/sat_about.png b/doc/build/latex/sat_about.png deleted file mode 100644 index 600d3d8..0000000 Binary files a/doc/build/latex/sat_about.png and /dev/null differ diff --git a/doc/build/latex/sphinx.sty b/doc/build/latex/sphinx.sty deleted file mode 100644 index e323b2a..0000000 --- a/doc/build/latex/sphinx.sty +++ /dev/null @@ -1,1648 +0,0 @@ -% -% sphinx.sty -% -% Adapted from the old python.sty, mostly written by Fred Drake, -% by Georg Brandl. -% - -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{sphinx}[2018/03/11 v1.7.2 LaTeX package (Sphinx markup)] - -% provides \ltx@ifundefined -% (many packages load ltxcmds: graphicx does for pdftex and lualatex but -% not xelatex, and anyhow kvoptions does, but it may be needed in future to -% use \sphinxdeprecationwarning earlier, and it needs \ltx@ifundefined) -\RequirePackage{ltxcmds} - -%% for deprecation warnings -\newcommand\sphinxdeprecationwarning[4]{% #1 the deprecated macro or name, -% #2 = when deprecated, #3 = when removed, #4 = additional info - \edef\spx@tempa{\detokenize{#1}}% - \ltx@ifundefined{sphinx_depr_\spx@tempa}{% - \global\expandafter\let\csname sphinx_depr_\spx@tempa\endcsname\spx@tempa - \expandafter\AtEndDocument\expandafter{\expandafter\let\expandafter - \sphinxdeprecatedmacro\csname sphinx_depr_\spx@tempa\endcsname - \PackageWarningNoLine{sphinx}{^^J**** SPHINX DEPRECATION WARNING:^^J - \sphinxdeprecatedmacro^^J - \@spaces- is deprecated at Sphinx #2^^J - \@spaces- and removed at Sphinx #3.^^J - #4^^J****}}% - }{% warning already emitted (at end of latex log), don't repeat - }} - - -%% PACKAGES -% -% we delay handling of options to after having loaded packages, because -% of the need to use \definecolor. -\RequirePackage{graphicx} -\@ifclassloaded{memoir}{}{\RequirePackage{fancyhdr}} -% for \text macro and \iffirstchoice@ conditional even if amsmath not loaded -\RequirePackage{amstext} -\RequirePackage{textcomp}% "warn" option issued from template -\RequirePackage{titlesec} -\@ifpackagelater{titlesec}{2016/03/15}% - {\@ifpackagelater{titlesec}{2016/03/21}% - {}% - {\newif\ifsphinx@ttlpatch@ok - \IfFileExists{etoolbox.sty}{% - \RequirePackage{etoolbox}% - \patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}% - {\sphinx@ttlpatch@oktrue}{}% - \ifsphinx@ttlpatch@ok - \patchcmd{\ttlh@hang}{\noindent}{}{}{\sphinx@ttlpatch@okfalse}% - \fi - }{}% - \ifsphinx@ttlpatch@ok - \typeout{^^J Package Sphinx Info: ^^J - **** titlesec 2.10.1 successfully patched for bugfix ****^^J}% - \else - \AtEndDocument{\PackageWarningNoLine{sphinx}{^^J% -******** titlesec 2.10.1 has a bug, (section numbers disappear) ......|^^J% -******** and Sphinx could not patch it, perhaps because your local ...|^^J% -******** copy is already fixed without a changed release date. .......|^^J% -******** If not, you must update titlesec! ...........................|}}% - \fi - }% - }{} -\RequirePackage{tabulary} -% tabulary has a bug with its re-definition of \multicolumn in its first pass -% which is not \long. But now Sphinx does not use LaTeX's \multicolumn but its -% own macro. Hence we don't even need to patch tabulary. See sphinxmulticell.sty -% X or S (Sphinx) may have meanings if some table package is loaded hence -% \X was chosen to avoid possibility of conflict -\newcolumntype{\X}[2]{p{\dimexpr - (\linewidth-\arrayrulewidth)*#1/#2-\tw@\tabcolsep-\arrayrulewidth\relax}} -\newcolumntype{\Y}[1]{p{\dimexpr - #1\dimexpr\linewidth-\arrayrulewidth\relax-\tw@\tabcolsep-\arrayrulewidth\relax}} -% using here T (for Tabulary) feels less of a problem than the X could be -\newcolumntype{T}{J}% -% For tables allowing pagebreaks -\RequirePackage{longtable} -% User interface to set-up whitespace before and after tables: -\newcommand*\sphinxtablepre {0pt}% -\newcommand*\sphinxtablepost{\medskipamount}% -\newcommand*\sphinxbelowcaptionspace{.5\sphinxbaselineskip}% -% as one can not use \baselineskip from inside longtable (it is zero there) -% we need \sphinxbaselineskip, which defaults to \baselineskip -\def\sphinxbaselineskip{\baselineskip}% -% These commands are inserted by the table templates -\def\sphinxatlongtablestart - {\par - \vskip\parskip - \vskip\dimexpr\sphinxtablepre\relax % adjust vertical position - \vbox{}% get correct baseline from above - \LTpre\z@skip\LTpost\z@skip % set to zero longtable's own skips - \edef\sphinxbaselineskip{\dimexpr\the\dimexpr\baselineskip\relax\relax}% - }% -\def\sphinxatlongtableend{\prevdepth\z@\vskip\sphinxtablepost\relax}% -\def\sphinxlongtablecapskipadjust - {\dimexpr-\dp\strutbox-\sphinxbaselineskip+\sphinxbelowcaptionspace\relax}% -% Now for tables not using longtable -\def\sphinxattablestart - {\par - \vskip\dimexpr\sphinxtablepre\relax - }% -\let\sphinxattableend\sphinxatlongtableend -% longtable's wraps captions to a maximal width of \LTcapwidth -% so we do the same for all tables -\newcommand*\sphinxcapstartof[1]{% - \vskip\parskip - \vbox{}% force baselineskip for good positioning by capstart of hyperanchor - \def\@captype{#1}% - \capstart -% move back vertically to compensate space inserted by next paragraph - \vskip-\baselineskip\vskip-\parskip -}% -% use \LTcapwidth (default is 4in) to wrap caption (if line width is bigger) -\newcommand\sphinxcaption[2][\LTcapwidth]{% - \noindent\hb@xt@\linewidth{\hss - \vtop{\@tempdima\dimexpr#1\relax -% don't exceed linewidth for the caption width - \ifdim\@tempdima>\linewidth\hsize\linewidth\else\hsize\@tempdima\fi -% longtable ignores \abovecaptionskip/\belowcaptionskip, so add hooks here -% to uniformize control of caption distance to tables - \abovecaptionskip\sphinxabovecaptionskip - \belowcaptionskip\sphinxbelowcaptionskip - \caption[{#2}]% - {\strut\ignorespaces#2\ifhmode\unskip\@finalstrut\strutbox\fi}% - }\hss}% - \par\prevdepth\dp\strutbox -}% -\def\spx@abovecaptionskip{\abovecaptionskip} -\newcommand*\sphinxabovecaptionskip{\z@skip} -\newcommand*\sphinxbelowcaptionskip{\z@skip} - -\newcommand\sphinxaftercaption -{% this default definition serves with a caption *above* a table, to make sure - % its last baseline is \sphinxbelowcaptionspace above table top - \nobreak - \vskip\dimexpr\sphinxbelowcaptionspace\relax - \vskip-\baselineskip\vskip-\parskip -}% -% varwidth is crucial for our handling of general contents in merged cells -\RequirePackage{varwidth} -% but addition of a compatibility patch with hyperref is needed -% (tested with varwidth v 0.92 Mar 2009) -\AtBeginDocument {% - \let\@@vwid@Hy@raisedlink\Hy@raisedlink - \long\def\@vwid@Hy@raisedlink#1{\@vwid@wrap{\@@vwid@Hy@raisedlink{#1}}}% - \edef\@vwid@setup{% - \let\noexpand\Hy@raisedlink\noexpand\@vwid@Hy@raisedlink % HYPERREF ! - \unexpanded\expandafter{\@vwid@setup}}% -}% -% Homemade package to handle merged cells -\RequirePackage{sphinxmulticell} -\RequirePackage{makeidx} -% For framing code-blocks and warning type notices, and shadowing topics -\RequirePackage{framed} -% The xcolor package draws better fcolorboxes around verbatim code -\IfFileExists{xcolor.sty}{ - \RequirePackage{xcolor} -}{ - \RequirePackage{color} -} -% For highlighted code. -\RequirePackage{fancyvrb} -\fvset{fontsize=\small} -\define@key{FV}{hllines}{\def\sphinx@verbatim@checkifhl##1{\in@{, ##1,}{#1}}} -% For hyperlinked footnotes in tables; also for gathering footnotes from -% topic and warning blocks. Also to allow code-blocks in footnotes. -\RequirePackage{footnotehyper-sphinx} -% For the H specifier. Do not \restylefloat{figure}, it breaks Sphinx code -% for allowing figures in tables. -\RequirePackage{float} -% For floating figures in the text. Better to load after float. -\RequirePackage{wrapfig} -% Separate paragraphs by space by default. -\RequirePackage{parskip} -% For parsed-literal blocks. -\RequirePackage{alltt} -% Display "real" single quotes in literal blocks. -\RequirePackage{upquote} -% control caption around literal-block -\RequirePackage{capt-of} -\RequirePackage{needspace} -\RequirePackage{remreset}% provides \@removefromreset -% to make pdf with correct encoded bookmarks in Japanese -% this should precede the hyperref package -\ifx\kanjiskip\@undefined -% for non-Japanese: make sure bookmarks are ok also with lualatex - \PassOptionsToPackage{pdfencoding=unicode}{hyperref} -\else - \RequirePackage{atbegshi} - \ifx\ucs\@undefined - \ifnum 42146=\euc"A4A2 - \AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}} - \else - \AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}} - \fi - \else - \AtBeginShipoutFirst{\special{pdf:tounicode UTF8-UCS2}} - \fi -\fi - -\ifx\@jsc@uplatextrue\@undefined\else - \PassOptionsToPackage{setpagesize=false}{hyperref} -\fi - -% These options can be overriden inside 'hyperref' key -% or by later use of \hypersetup. -\PassOptionsToPackage{colorlinks,breaklinks,% - linkcolor=InnerLinkColor,filecolor=OuterLinkColor,% - menucolor=OuterLinkColor,urlcolor=OuterLinkColor,% - citecolor=InnerLinkColor}{hyperref} - -% stylesheet for highlighting with pygments -\RequirePackage{sphinxhighlight} -% fix baseline increase from Pygments latex formatter in case of error tokens -% and keep \fboxsep's scope local via added braces -\def\PYG@tok@err{% - \def\PYG@bc##1{{\setlength{\fboxsep}{-\fboxrule}% - \fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}% -} -\def\PYG@tok@cs{% - \def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}% - \def\PYG@bc##1{{\setlength{\fboxsep}{0pt}% - \colorbox[rgb]{1.00,0.94,0.94}{\strut ##1}}}% -}% - - -%% OPTIONS -% -% Handle options via "kvoptions" (later loaded by hyperref anyhow) -\RequirePackage{kvoptions} -\SetupKeyvalOptions{prefix=spx@opt@} % use \spx@opt@ prefix - -% Sphinx legacy text layout: 1in margins on all four sides -\ifx\@jsc@uplatextrue\@undefined -\DeclareStringOption[1in]{hmargin} -\DeclareStringOption[1in]{vmargin} -\DeclareStringOption[.5in]{marginpar} -\else -% Japanese standard document classes handle \mag in a special way -\DeclareStringOption[\inv@mag in]{hmargin} -\DeclareStringOption[\inv@mag in]{vmargin} -\DeclareStringOption[.5\dimexpr\inv@mag in\relax]{marginpar} -\fi - -\DeclareStringOption[0]{maxlistdepth}% \newcommand*\spx@opt@maxlistdepth{0} -\DeclareStringOption[-1]{numfigreset} -\DeclareBoolOption[false]{nonumfigreset} -\DeclareBoolOption[false]{mathnumfig} -% \DeclareBoolOption[false]{usespart}% not used -% dimensions, we declare the \dimen registers here. -\newdimen\sphinxverbatimsep -\newdimen\sphinxverbatimborder -\newdimen\sphinxshadowsep -\newdimen\sphinxshadowsize -\newdimen\sphinxshadowrule -% \DeclareStringOption is not convenient for the handling of these dimensions -% because we want to assign the values to the corresponding registers. Even if -% we added the code to the key handler it would be too late for the initial -% set-up and we would need to do initial assignments explicitely. We end up -% using \define@key directly. -% verbatim -\sphinxverbatimsep=\fboxsep - \define@key{sphinx}{verbatimsep}{\sphinxverbatimsep\dimexpr #1\relax} -\sphinxverbatimborder=\fboxrule - \define@key{sphinx}{verbatimborder}{\sphinxverbatimborder\dimexpr #1\relax} -% topic boxes -\sphinxshadowsep =5pt - \define@key{sphinx}{shadowsep}{\sphinxshadowsep\dimexpr #1\relax} -\sphinxshadowsize=4pt - \define@key{sphinx}{shadowsize}{\sphinxshadowsize\dimexpr #1\relax} -\sphinxshadowrule=\fboxrule - \define@key{sphinx}{shadowrule}{\sphinxshadowrule\dimexpr #1\relax} -% verbatim -\DeclareBoolOption[true]{verbatimwithframe} -\DeclareBoolOption[true]{verbatimwrapslines} -\DeclareBoolOption[true]{verbatimhintsturnover} -\DeclareBoolOption[true]{inlineliteralwraps} -\DeclareStringOption[t]{literalblockcappos} -\DeclareStringOption[r]{verbatimcontinuedalign} -\DeclareStringOption[r]{verbatimcontinuesalign} -% parsed literal -\DeclareBoolOption[true]{parsedliteralwraps} -% \textvisiblespace for compatibility with fontspec+XeTeX/LuaTeX -\DeclareStringOption[\textcolor{red}{\textvisiblespace}]{verbatimvisiblespace} -\DeclareStringOption % must use braces to hide the brackets - [{\makebox[2\fontcharwd\font`\x][r]{\textcolor{red}{\tiny$\m@th\hookrightarrow$}}}]% - {verbatimcontinued} -% notices/admonitions -% the dimensions for notices/admonitions are kept as macros and assigned to -% \spx@notice@border at time of use, hence \DeclareStringOption is ok for this -\newdimen\spx@notice@border -\DeclareStringOption[0.5pt]{noteborder} -\DeclareStringOption[0.5pt]{hintborder} -\DeclareStringOption[0.5pt]{importantborder} -\DeclareStringOption[0.5pt]{tipborder} -\DeclareStringOption[1pt]{warningborder} -\DeclareStringOption[1pt]{cautionborder} -\DeclareStringOption[1pt]{attentionborder} -\DeclareStringOption[1pt]{dangerborder} -\DeclareStringOption[1pt]{errorborder} -% footnotes -\DeclareStringOption[\mbox{ }]{AtStartFootnote} -% we need a public macro name for direct use in latex file -\newcommand*{\sphinxAtStartFootnote}{\spx@opt@AtStartFootnote} -% no such need for this one, as it is used inside other macros -\DeclareStringOption[\leavevmode\unskip]{BeforeFootnote} -% some font styling. -\DeclareStringOption[\sffamily\bfseries]{HeaderFamily} -% colours -% same problems as for dimensions: we want the key handler to use \definecolor. -% first, some colours with no prefix, for backwards compatibility -\newcommand*{\sphinxDeclareColorOption}[2]{% - \definecolor{#1}#2% - \define@key{sphinx}{#1}{\definecolor{#1}##1}% -}% -\sphinxDeclareColorOption{TitleColor}{{rgb}{0.126,0.263,0.361}} -\sphinxDeclareColorOption{InnerLinkColor}{{rgb}{0.208,0.374,0.486}} -\sphinxDeclareColorOption{OuterLinkColor}{{rgb}{0.216,0.439,0.388}} -\sphinxDeclareColorOption{VerbatimColor}{{rgb}{1,1,1}} -\sphinxDeclareColorOption{VerbatimBorderColor}{{rgb}{0,0,0}} -% now the colours defined with "sphinx" prefix in their names -\newcommand*{\sphinxDeclareSphinxColorOption}[2]{% - % set the initial default - \definecolor{sphinx#1}#2% - % set the key handler. The "value" ##1 must be acceptable by \definecolor. - \define@key{sphinx}{#1}{\definecolor{sphinx#1}##1}% -}% -% Default color chosen to be as in minted.sty LaTeX package! -\sphinxDeclareSphinxColorOption{VerbatimHighlightColor}{{rgb}{0.878,1,1}} -% admonition boxes, "light" style -\sphinxDeclareSphinxColorOption{noteBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{hintBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{importantBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{tipBorderColor}{{rgb}{0,0,0}} -% admonition boxes, "heavy" style -\sphinxDeclareSphinxColorOption{warningBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{cautionBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{attentionBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{dangerBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{errorBorderColor}{{rgb}{0,0,0}} -\sphinxDeclareSphinxColorOption{warningBgColor}{{rgb}{1,1,1}} -\sphinxDeclareSphinxColorOption{cautionBgColor}{{rgb}{1,1,1}} -\sphinxDeclareSphinxColorOption{attentionBgColor}{{rgb}{1,1,1}} -\sphinxDeclareSphinxColorOption{dangerBgColor}{{rgb}{1,1,1}} -\sphinxDeclareSphinxColorOption{errorBgColor}{{rgb}{1,1,1}} - -\DeclareDefaultOption{\@unknownoptionerror} -\ProcessKeyvalOptions* -% don't allow use of maxlistdepth via \sphinxsetup. -\DisableKeyvalOption{sphinx}{maxlistdepth} -\DisableKeyvalOption{sphinx}{numfigreset} -\DisableKeyvalOption{sphinx}{nonumfigreset} -\DisableKeyvalOption{sphinx}{mathnumfig} -% user interface: options can be changed midway in a document! -\newcommand\sphinxsetup[1]{\setkeys{sphinx}{#1}} - - -%% MAXLISTDEPTH -% -% remove LaTeX's cap on nesting depth if 'maxlistdepth' key used. -% This is a hack, which works with the standard classes: it assumes \@toodeep -% is always used in "true" branches: "\if ... \@toodeep \else .. \fi." - -% will force use the "false" branch (if there is one) -\def\spx@toodeep@hack{\fi\iffalse} - -% do nothing if 'maxlistdepth' key not used or if package enumitem loaded. -\ifnum\spx@opt@maxlistdepth=\z@\expandafter\@gobbletwo\fi -\AtBeginDocument{% -\@ifpackageloaded{enumitem}{\remove@to@nnil}{}% - \let\spx@toodeepORI\@toodeep - \def\@toodeep{% - \ifnum\@listdepth<\spx@opt@maxlistdepth\relax - \expandafter\spx@toodeep@hack - \else - \expandafter\spx@toodeepORI - \fi}% -% define all missing \@list... macros - \count@\@ne - \loop - \ltx@ifundefined{@list\romannumeral\the\count@} - {\iffalse}{\iftrue\advance\count@\@ne}% - \repeat - \loop - \ifnum\count@>\spx@opt@maxlistdepth\relax\else - \expandafter\let - \csname @list\romannumeral\the\count@\expandafter\endcsname - \csname @list\romannumeral\the\numexpr\count@-\@ne\endcsname - % workaround 2.6--3.2d babel-french issue (fixed in 3.2e; no change needed) - \ltx@ifundefined{leftmargin\romannumeral\the\count@} - {\expandafter\let - \csname leftmargin\romannumeral\the\count@\expandafter\endcsname - \csname leftmargin\romannumeral\the\numexpr\count@-\@ne\endcsname}{}% - \advance\count@\@ne - \repeat -% define all missing enum... counters and \labelenum... macros and \p@enum.. - \count@\@ne - \loop - \ltx@ifundefined{c@enum\romannumeral\the\count@} - {\iffalse}{\iftrue\advance\count@\@ne}% - \repeat - \loop - \ifnum\count@>\spx@opt@maxlistdepth\relax\else - \newcounter{enum\romannumeral\the\count@}% - \expandafter\def - \csname labelenum\romannumeral\the\count@\expandafter\endcsname - \expandafter - {\csname theenum\romannumeral\the\numexpr\count@\endcsname.}% - \expandafter\def - \csname p@enum\romannumeral\the\count@\expandafter\endcsname - \expandafter - {\csname p@enum\romannumeral\the\numexpr\count@-\@ne\expandafter - \endcsname\csname theenum\romannumeral\the\numexpr\count@-\@ne\endcsname.}% - \advance\count@\@ne - \repeat -% define all missing labelitem... macros - \count@\@ne - \loop - \ltx@ifundefined{labelitem\romannumeral\the\count@} - {\iffalse}{\iftrue\advance\count@\@ne}% - \repeat - \loop - \ifnum\count@>\spx@opt@maxlistdepth\relax\else - \expandafter\let - \csname labelitem\romannumeral\the\count@\expandafter\endcsname - \csname labelitem\romannumeral\the\numexpr\count@-\@ne\endcsname - \advance\count@\@ne - \repeat - \PackageInfo{sphinx}{maximal list depth extended to \spx@opt@maxlistdepth}% -\@gobble\@nnil -} - - -%% INDEX, BIBLIOGRAPHY, APPENDIX, TABLE OF CONTENTS -% -% fix the double index and bibliography on the table of contents -% in jsclasses (Japanese standard document classes) -\ifx\@jsc@uplatextrue\@undefined\else - \renewenvironment{sphinxtheindex} - {\cleardoublepage\phantomsection - \begin{theindex}} - {\end{theindex}} - - \renewenvironment{sphinxthebibliography}[1] - {\cleardoublepage% \phantomsection % not needed here since TeXLive 2010's hyperref - \begin{thebibliography}{1}} - {\end{thebibliography}} -\fi - -% disable \@chappos in Appendix in pTeX -\ifx\kanjiskip\@undefined\else - \let\py@OldAppendix=\appendix - \renewcommand{\appendix}{ - \py@OldAppendix - \gdef\@chappos{} - } -\fi - -% make commands known to non-Sphinx document classes -\providecommand*{\sphinxtableofcontents}{\tableofcontents} -\ltx@ifundefined{sphinxthebibliography} - {\newenvironment - {sphinxthebibliography}{\begin{thebibliography}}{\end{thebibliography}}% - } - {}% else clause of \ltx@ifundefined -\ltx@ifundefined{sphinxtheindex} - {\newenvironment{sphinxtheindex}{\begin{theindex}}{\end{theindex}}}% - {}% else clause of \ltx@ifundefined - - -%% COLOR (general) -% -% FIXME: \normalcolor should probably be used in place of \py@NormalColor -% elsewhere, and \py@NormalColor should never be defined. \normalcolor -% switches to the colour from last \color call in preamble. -\def\py@NormalColor{\color{black}} -% FIXME: it is probably better to use \color{TitleColor}, as TitleColor -% can be customized from 'sphinxsetup', and drop usage of \py@TitleColor -\def\py@TitleColor{\color{TitleColor}} -% FIXME: this line should be dropped, as "9" is default anyhow. -\ifdefined\pdfcompresslevel\pdfcompresslevel = 9 \fi - - -%% PAGE STYLING -% -% Style parameters and macros used by most documents here -\raggedbottom -\sloppy -\hbadness = 5000 % don't print trivial gripes - -\pagestyle{empty} % start this way - -% Redefine the 'normal' header/footer style when using "fancyhdr" package: -% Note: this presupposes "twoside". If "oneside" class option, there will be warnings. -\ltx@ifundefined{fancyhf}{}{ - % Use \pagestyle{normal} as the primary pagestyle for text. - \fancypagestyle{normal}{ - \fancyhf{} -% (for \py@HeaderFamily cf "TITLES") - \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}} - \fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}} - \fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}} - \fancyhead[LE,RO]{{\py@HeaderFamily \@title\sphinxheadercomma\py@release}} - \renewcommand{\headrulewidth}{0.4pt} - \renewcommand{\footrulewidth}{0.4pt} - % define chaptermark with \@chappos when \@chappos is available for Japanese - \ltx@ifundefined{@chappos}{} - {\def\chaptermark##1{\markboth{\@chapapp\space\thechapter\space\@chappos\space ##1}{}}} - } - % Update the plain style so we get the page number & footer line, - % but not a chapter or section title. This is to keep the first - % page of a chapter and the blank page between chapters `clean.' - \fancypagestyle{plain}{ - \fancyhf{} - \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}} - \renewcommand{\headrulewidth}{0pt} - \renewcommand{\footrulewidth}{0.4pt} - } -} - -% geometry -\ifx\kanjiskip\@undefined - \PassOptionsToPackage{% - hmargin={\unexpanded{\spx@opt@hmargin}},% - vmargin={\unexpanded{\spx@opt@vmargin}},% - marginpar=\unexpanded{\spx@opt@marginpar}} - {geometry} -\else - % set text width for Japanese documents to be integer multiple of 1zw - % and text height to be integer multiple of \baselineskip - % the execution is delayed to \sphinxsetup then geometry.sty - \normalsize\normalfont - \newcommand*\sphinxtextwidthja[1]{% - \if@twocolumn\tw@\fi - \dimexpr - \numexpr\dimexpr\paperwidth-\tw@\dimexpr#1\relax\relax/ - \dimexpr\if@twocolumn\tw@\else\@ne\fi zw\relax - zw\relax}% - \newcommand*\sphinxmarginparwidthja[1]{% - \dimexpr\numexpr\dimexpr#1\relax/\dimexpr1zw\relax zw\relax}% - \newcommand*\sphinxtextlinesja[1]{% - \numexpr\@ne+\dimexpr\paperheight-\topskip-\tw@\dimexpr#1\relax\relax/ - \baselineskip\relax}% - \ifx\@jsc@uplatextrue\@undefined\else - % the way we found in order for the papersize special written by - % geometry in the dvi file to be correct in case of jsbook class - \ifnum\mag=\@m\else % do nothing special if nomag class option or 10pt - \PassOptionsToPackage{truedimen}{geometry}% - \fi - \fi - \PassOptionsToPackage{% - hmarginratio={1:1},% - textwidth=\unexpanded{\sphinxtextwidthja{\spx@opt@hmargin}},% - vmarginratio={1:1},% - lines=\unexpanded{\sphinxtextlinesja{\spx@opt@vmargin}},% - marginpar=\unexpanded{\sphinxmarginparwidthja{\spx@opt@marginpar}},% - footskip=2\baselineskip,% - }{geometry}% - \AtBeginDocument - {% update a dimension used by the jsclasses - \ifx\@jsc@uplatextrue\@undefined\else\fullwidth\textwidth\fi - % for some reason, jreport normalizes all dimensions with \@settopoint - \@ifclassloaded{jreport} - {\@settopoint\textwidth\@settopoint\textheight\@settopoint\marginparwidth} - {}% <-- "false" clause of \@ifclassloaded - }% -\fi - -% fix fncychap's bug which uses prematurely the \textwidth value -\@ifpackagewith{fncychap}{Bjornstrup} - {\AtBeginDocument{\mylen\textwidth\advance\mylen-2\myhi}}% - {}% <-- "false" clause of \@ifpackagewith - - -%% TITLES -% -% Since Sphinx 1.5, users should use HeaderFamily key to 'sphinxsetup' rather -% than defining their own \py@HeaderFamily command (which is still possible). -% Memo: \py@HeaderFamily is also used by \maketitle as defined in -% sphinxmanual.cls/sphinxhowto.cls -\newcommand{\py@HeaderFamily}{\spx@opt@HeaderFamily} - -% This sets up the fancy chapter headings that make the documents look -% at least a little better than the usual LaTeX output. -\@ifpackagewith{fncychap}{Bjarne}{ - \ChNameVar {\raggedleft\normalsize \py@HeaderFamily} - \ChNumVar {\raggedleft\Large \py@HeaderFamily} - \ChTitleVar{\raggedleft\Large \py@HeaderFamily} - % This creates (numbered) chapter heads without the leading \vspace*{}: - \def\@makechapterhead#1{% - {\parindent \z@ \raggedright \normalfont - \ifnum \c@secnumdepth >\m@ne - \if@mainmatter - \DOCH - \fi - \fi - \interlinepenalty\@M - \if@mainmatter - \DOTI{#1}% - \else% - \DOTIS{#1}% - \fi - }} -}{}% <-- "false" clause of \@ifpackagewith - -% Augment the sectioning commands used to get our own font family in place, -% and reset some internal data items (\titleformat from titlesec package) -\titleformat{\section}{\Large\py@HeaderFamily}% - {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor} -\titleformat{\subsection}{\large\py@HeaderFamily}% - {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor} -\titleformat{\subsubsection}{\py@HeaderFamily}% - {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor} -% By default paragraphs (and subsubsections) will not be numbered because -% sphinxmanual.cls and sphinxhowto.cls set secnumdepth to 2 -\titleformat{\paragraph}{\py@HeaderFamily}% - {\py@TitleColor\theparagraph}{0.5em}{\py@TitleColor}{\py@NormalColor} -\titleformat{\subparagraph}{\py@HeaderFamily}% - {\py@TitleColor\thesubparagraph}{0.5em}{\py@TitleColor}{\py@NormalColor} - - -%% GRAPHICS -% -% \sphinxincludegraphics defined to resize images larger than the line width, -% except if height or width option present. -% -% If scale is present, rescale before fitting to line width. (since 1.5) -\newbox\spx@image@box -\newcommand*{\sphinxincludegraphics}[2][]{% - \in@{height}{#1}\ifin@\else\in@{width}{#1}\fi - \ifin@ % height or width present - \includegraphics[#1]{#2}% - \else % no height nor width (but #1 may be "scale=...") - \setbox\spx@image@box\hbox{\includegraphics[#1,draft]{#2}}% - \ifdim \wd\spx@image@box>\linewidth - \setbox\spx@image@box\box\voidb@x % clear memory - \includegraphics[#1,width=\linewidth]{#2}% - \else - \includegraphics[#1]{#2}% - \fi - \fi -} - - -%% FIGURE IN TABLE -% -\newenvironment{sphinxfigure-in-table}[1][\linewidth]{% - \def\@captype{figure}% - \sphinxsetvskipsforfigintablecaption - \begin{minipage}{#1}% -}{\end{minipage}} -% store original \caption macro for use with figures in longtable and tabulary -\AtBeginDocument{\let\spx@originalcaption\caption} -\newcommand*\sphinxfigcaption - {\ifx\equation$%$% this is trick to identify tabulary first pass - \firstchoice@false\else\firstchoice@true\fi - \spx@originalcaption } -\newcommand*\sphinxsetvskipsforfigintablecaption - {\abovecaptionskip\smallskipamount - \belowcaptionskip\smallskipamount} - - -%% FOOTNOTES -% -% Support large numbered footnotes in minipage -% But now obsolete due to systematic use of \savenotes/\spewnotes -% when minipages are in use in the various macro definitions next. -\def\thempfootnote{\arabic{mpfootnote}} - - -%% NUMBERING OF FIGURES, TABLES, AND LITERAL BLOCKS -\ltx@ifundefined{c@chapter} - {\newcounter{literalblock}}% - {\newcounter{literalblock}[chapter]% - \def\theliteralblock{\ifnum\c@chapter>\z@\arabic{chapter}.\fi - \arabic{literalblock}}% - }% -\ifspx@opt@nonumfigreset - \ltx@ifundefined{c@chapter}{}{% - \@removefromreset{figure}{chapter}% - \@removefromreset{table}{chapter}% - \@removefromreset{literalblock}{chapter}% - \ifspx@opt@mathnumfig - \@removefromreset{equation}{chapter}% - \fi - }% - \def\thefigure{\arabic{figure}}% - \def\thetable {\arabic{table}}% - \def\theliteralblock{\arabic{literalblock}}% - \ifspx@opt@mathnumfig - \def\theequation{\arabic{equation}}% - \fi -\else -\let\spx@preAthefigure\@empty -\let\spx@preBthefigure\@empty -% \ifspx@opt@usespart % <-- LaTeX writer could pass such a 'usespart' boolean -% % as sphinx.sty package option -% If document uses \part, (triggered in Sphinx by latex_toplevel_sectioning) -% LaTeX core per default does not reset chapter or section -% counters at each part. -% But if we modify this, we need to redefine \thechapter, \thesection to -% include the part number and this will cause problems in table of contents -% because of too wide numbering. Simplest is to do nothing. -% \fi -\ifnum\spx@opt@numfigreset>0 - \ltx@ifundefined{c@chapter} - {} - {\g@addto@macro\spx@preAthefigure{\ifnum\c@chapter>\z@\arabic{chapter}.}% - \g@addto@macro\spx@preBthefigure{\fi}}% -\fi -\ifnum\spx@opt@numfigreset>1 - \@addtoreset{figure}{section}% - \@addtoreset{table}{section}% - \@addtoreset{literalblock}{section}% - \ifspx@opt@mathnumfig - \@addtoreset{equation}{section}% - \fi - \g@addto@macro\spx@preAthefigure{\ifnum\c@section>\z@\arabic{section}.}% - \g@addto@macro\spx@preBthefigure{\fi}% -\fi -\ifnum\spx@opt@numfigreset>2 - \@addtoreset{figure}{subsection}% - \@addtoreset{table}{subsection}% - \@addtoreset{literalblock}{subsection}% - \ifspx@opt@mathnumfig - \@addtoreset{equation}{subsection}% - \fi - \g@addto@macro\spx@preAthefigure{\ifnum\c@subsection>\z@\arabic{subsection}.}% - \g@addto@macro\spx@preBthefigure{\fi}% -\fi -\ifnum\spx@opt@numfigreset>3 - \@addtoreset{figure}{subsubsection}% - \@addtoreset{table}{subsubsection}% - \@addtoreset{literalblock}{subsubsection}% - \ifspx@opt@mathnumfig - \@addtoreset{equation}{subsubsection}% - \fi - \g@addto@macro\spx@preAthefigure{\ifnum\c@subsubsection>\z@\arabic{subsubsection}.}% - \g@addto@macro\spx@preBthefigure{\fi}% -\fi -\ifnum\spx@opt@numfigreset>4 - \@addtoreset{figure}{paragraph}% - \@addtoreset{table}{paragraph}% - \@addtoreset{literalblock}{paragraph}% - \ifspx@opt@mathnumfig - \@addtoreset{equation}{paragraph}% - \fi - \g@addto@macro\spx@preAthefigure{\ifnum\c@subparagraph>\z@\arabic{subparagraph}.}% - \g@addto@macro\spx@preBthefigure{\fi}% -\fi -\ifnum\spx@opt@numfigreset>5 - \@addtoreset{figure}{subparagraph}% - \@addtoreset{table}{subparagraph}% - \@addtoreset{literalblock}{subparagraph}% - \ifspx@opt@mathnumfig - \@addtoreset{equation}{subparagraph}% - \fi - \g@addto@macro\spx@preAthefigure{\ifnum\c@subsubparagraph>\z@\arabic{subsubparagraph}.}% - \g@addto@macro\spx@preBthefigure{\fi}% -\fi -\expandafter\g@addto@macro -\expandafter\spx@preAthefigure\expandafter{\spx@preBthefigure}% -\let\thefigure\spx@preAthefigure -\let\thetable\spx@preAthefigure -\let\theliteralblock\spx@preAthefigure -\g@addto@macro\thefigure{\arabic{figure}}% -\g@addto@macro\thetable{\arabic{table}}% -\g@addto@macro\theliteralblock{\arabic{literalblock}}% - \ifspx@opt@mathnumfig - \let\theequation\spx@preAthefigure - \g@addto@macro\theequation{\arabic{equation}}% - \fi -\fi - - -%% LITERAL BLOCKS -% -% Based on use of "fancyvrb.sty"'s Verbatim. -% - with framing allowing page breaks ("framed.sty") -% - with breaking of long lines (exploits Pygments mark-up), -% - with possibly of a top caption, non-separable by pagebreak. -% - and usable inside tables or footnotes ("footnotehyper-sphinx"). - -% For extensions which use \OriginalVerbatim and compatibility with Sphinx < -% 1.5, we define and use these when (unmodified) Verbatim will be needed. But -% Sphinx >= 1.5 does not modify the \Verbatim macro anymore. -\let\OriginalVerbatim \Verbatim -\let\endOriginalVerbatim\endVerbatim - -% for captions of literal blocks -% at start of caption title -\newcommand*{\fnum@literalblock}{\literalblockname\nobreakspace\theliteralblock} -% this will be overwritten in document preamble by Babel translation -\newcommand*{\literalblockname}{Listing } -% file extension needed for \caption's good functioning, the file is created -% only if a \listof{literalblock}{foo} command is encountered, which is -% analogous to \listoffigures, but for the code listings (foo = chosen title.) -\newcommand*{\ext@literalblock}{lol} - -\newif\ifspx@inframed % flag set if we are already in a framed environment -% if forced use of minipage encapsulation is needed (e.g. table cells) -\newif\ifsphinxverbatimwithminipage \sphinxverbatimwithminipagefalse - -% Framing macro for use with framed.sty's \FrameCommand -% - it obeys current indentation, -% - frame is \fboxsep separated from the contents, -% - the contents use the full available text width, -% - #1 = color of frame, #2 = color of background, -% - #3 = above frame, #4 = below frame, #5 = within frame, -% - #3 and #4 must be already typeset boxes; they must issue \normalcolor -% or similar, else, they are under scope of color #1 -\long\def\spx@fcolorbox #1#2#3#4#5{% - \hskip\@totalleftmargin - \hskip-\fboxsep\hskip-\fboxrule - % use of \color@b@x here is compatible with both xcolor.sty and color.sty - \color@b@x {\color{#1}\spx@CustomFBox{#3}{#4}}{\color{#2}}{#5}% - \hskip-\fboxsep\hskip-\fboxrule - \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth -}% -% #1 = for material above frame, such as a caption or a "continued" hint -% #2 = for material below frame, such as a caption or "continues on next page" -% #3 = actual contents, which will be typeset with a background color -\long\def\spx@CustomFBox#1#2#3{% - \begingroup - \setbox\@tempboxa\hbox{{#3}}% inner braces to avoid color leaks - \vbox{#1% above frame - % draw frame border _latest_ to avoid pdf viewer issue - \kern\fboxrule - \hbox{\kern\fboxrule - \copy\@tempboxa - \kern-\wd\@tempboxa\kern-\fboxrule - \vrule\@width\fboxrule - \kern\wd\@tempboxa - \vrule\@width\fboxrule}% - \kern-\dimexpr\ht\@tempboxa+\dp\@tempboxa+\fboxrule\relax - \hrule\@height\fboxrule - \kern\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax - \hrule\@height\fboxrule - #2% below frame - }% - \endgroup -}% -\def\spx@fcolorbox@put@c#1{% hide width from framed.sty measuring - \moveright\dimexpr\fboxrule+.5\wd\@tempboxa\hb@xt@\z@{\hss#1\hss}% -}% -\def\spx@fcolorbox@put@r#1{% right align with contents, width hidden - \moveright\dimexpr\fboxrule+\wd\@tempboxa-\fboxsep\hb@xt@\z@{\hss#1}% -}% -\def\spx@fcolorbox@put@l#1{% left align with contents, width hidden - \moveright\dimexpr\fboxrule+\fboxsep\hb@xt@\z@{#1\hss}% -}% -% -\def\sphinxVerbatim@Continued - {\csname spx@fcolorbox@put@\spx@opt@verbatimcontinuedalign\endcsname - {\normalcolor\sphinxstylecodecontinued\literalblockcontinuedname}}% -\def\sphinxVerbatim@Continues - {\csname spx@fcolorbox@put@\spx@opt@verbatimcontinuesalign\endcsname - {\normalcolor\sphinxstylecodecontinues\literalblockcontinuesname}}% -\def\sphinxVerbatim@Title - {\spx@fcolorbox@put@c{\unhcopy\sphinxVerbatim@TitleBox}}% -\let\sphinxVerbatim@Before\@empty -\let\sphinxVerbatim@After\@empty -% Defaults are redefined in document preamble according to language -\newcommand*\literalblockcontinuedname{continued from previous page}% -\newcommand*\literalblockcontinuesname{continues on next page}% -% -\def\spx@verbatimfcolorbox{\spx@fcolorbox{VerbatimBorderColor}{VerbatimColor}}% -\def\sphinxVerbatim@FrameCommand - {\spx@verbatimfcolorbox\sphinxVerbatim@Before\sphinxVerbatim@After}% -\def\sphinxVerbatim@FirstFrameCommand - {\spx@verbatimfcolorbox\sphinxVerbatim@Before\sphinxVerbatim@Continues}% -\def\sphinxVerbatim@MidFrameCommand - {\spx@verbatimfcolorbox\sphinxVerbatim@Continued\sphinxVerbatim@Continues}% -\def\sphinxVerbatim@LastFrameCommand - {\spx@verbatimfcolorbox\sphinxVerbatim@Continued\sphinxVerbatim@After}% - -% For linebreaks inside Verbatim environment from package fancyvrb. -\newbox\sphinxcontinuationbox -\newbox\sphinxvisiblespacebox -\newcommand*\sphinxafterbreak {\copy\sphinxcontinuationbox} - -% Take advantage of the already applied Pygments mark-up to insert -% potential linebreaks for TeX processing. -% {, <, #, %, $, ' and ": go to next line. -% _, }, ^, &, >, - and ~: stay at end of broken line. -% Use of \textquotesingle for straight quote. -% FIXME: convert this to package options ? -\newcommand*\sphinxbreaksbeforelist {% - \do\PYGZob\{\do\PYGZlt\<\do\PYGZsh\#\do\PYGZpc\%% {, <, #, %, - \do\PYGZdl\$\do\PYGZdq\"% $, " - \def\PYGZsq - {\discretionary{}{\sphinxafterbreak\textquotesingle}{\textquotesingle}}% ' -} -\newcommand*\sphinxbreaksafterlist {% - \do\PYGZus\_\do\PYGZcb\}\do\PYGZca\^\do\PYGZam\&% _, }, ^, &, - \do\PYGZgt\>\do\PYGZhy\-\do\PYGZti\~% >, -, ~ -} -\newcommand*\sphinxbreaksatspecials {% - \def\do##1##2% - {\def##1{\discretionary{}{\sphinxafterbreak\char`##2}{\char`##2}}}% - \sphinxbreaksbeforelist - \def\do##1##2% - {\def##1{\discretionary{\char`##2}{\sphinxafterbreak}{\char`##2}}}% - \sphinxbreaksafterlist -} - -\def\sphinx@verbatim@nolig@list {\do \`}% -% Some characters . , ; ? ! / are not pygmentized. -% This macro makes them "active" and they will insert potential linebreaks. -% Not compatible with math mode (cf \sphinxunactivateextras). -\newcommand*\sphinxbreaksbeforeactivelist {}% none -\newcommand*\sphinxbreaksafteractivelist {\do\.\do\,\do\;\do\?\do\!\do\/} -\newcommand*\sphinxbreaksviaactive {% - \def\do##1{\lccode`\~`##1% - \lowercase{\def~}{\discretionary{}{\sphinxafterbreak\char`##1}{\char`##1}}% - \catcode`##1\active}% - \sphinxbreaksbeforeactivelist - \def\do##1{\lccode`\~`##1% - \lowercase{\def~}{\discretionary{\char`##1}{\sphinxafterbreak}{\char`##1}}% - \catcode`##1\active}% - \sphinxbreaksafteractivelist - \lccode`\~`\~ -} - -% If the linebreak is at a space, the latter will be displayed as visible -% space at end of first line, and a continuation symbol starts next line. -\def\spx@verbatim@space {% - \nobreak\hskip\z@skip - \discretionary{\copy\sphinxvisiblespacebox}{\sphinxafterbreak} - {\kern\fontdimen2\font}% -}% - -% if the available space on page is less than \literalblockneedspace, insert pagebreak -\newcommand{\sphinxliteralblockneedspace}{5\baselineskip} -\newcommand{\sphinxliteralblockwithoutcaptionneedspace}{1.5\baselineskip} -% The title (caption) is specified from outside as macro \sphinxVerbatimTitle. -% \sphinxVerbatimTitle is reset to empty after each use of Verbatim. -\newcommand*\sphinxVerbatimTitle {} -% This box to typeset the caption before framed.sty multiple passes for framing. -\newbox\sphinxVerbatim@TitleBox -% This is a workaround to a "feature" of French lists, when literal block -% follows immediately; usable generally (does only \par then), a priori... -\newcommand*\sphinxvspacefixafterfrenchlists{% - \ifvmode\ifdim\lastskip<\z@ \vskip\parskip\fi\else\par\fi -} -% Holder macro for labels of literal blocks. Set-up by LaTeX writer. -\newcommand*\sphinxLiteralBlockLabel {} -\newcommand*\sphinxSetupCaptionForVerbatim [1] -{% - \sphinxvspacefixafterfrenchlists - \needspace{\sphinxliteralblockneedspace}% -% insert a \label via \sphinxLiteralBlockLabel -% reset to normal the color for the literal block caption - \def\sphinxVerbatimTitle - {\py@NormalColor\sphinxcaption{\sphinxLiteralBlockLabel #1}}% -} -\newcommand*\sphinxSetupCodeBlockInFootnote {% - \fvset{fontsize=\footnotesize}\let\caption\sphinxfigcaption - \sphinxverbatimwithminipagetrue % reduces vertical spaces - % we counteract (this is in a group) the \@normalsize from \caption - \let\normalsize\footnotesize\let\@parboxrestore\relax - \def\spx@abovecaptionskip{\sphinxverbatimsmallskipamount}% -} -% needed to create wrapper environments of fancyvrb's Verbatim -\newcommand*{\sphinxVerbatimEnvironment}{\gdef\FV@EnvironName{sphinxVerbatim}} -\newcommand*{\sphinxverbatimsmallskipamount}{\smallskipamount} -% serves to implement line highlighting and line wrapping -\newcommand\sphinxFancyVerbFormatLine[1]{% - \expandafter\sphinx@verbatim@checkifhl\expandafter{\the\FV@CodeLineNo}% - \ifin@ - \sphinxVerbatimHighlightLine{#1}% - \else - \sphinxVerbatimFormatLine{#1}% - \fi -}% -\newcommand\sphinxVerbatimHighlightLine[1]{% - \edef\sphinxrestorefboxsep{\fboxsep\the\fboxsep\relax}% - \fboxsep0pt\relax % cf LaTeX bug graphics/4524 - \colorbox{sphinxVerbatimHighlightColor}% - {\sphinxrestorefboxsep\sphinxVerbatimFormatLine{#1}}% - % no need to restore \fboxsep here, as this ends up in a \hbox from fancyvrb -}% -% \sphinxVerbatimFormatLine will be set locally to one of those two: -\newcommand\sphinxVerbatimFormatLineWrap[1]{% - \hsize\linewidth - \vtop{\raggedright\hyphenpenalty\z@\exhyphenpenalty\z@ - \doublehyphendemerits\z@\finalhyphendemerits\z@ - \strut #1\strut}% -}% -\newcommand\sphinxVerbatimFormatLineNoWrap[1]{\hb@xt@\linewidth{\strut #1\hss}}% -\g@addto@macro\FV@SetupFont{% - \sbox\sphinxcontinuationbox {\spx@opt@verbatimcontinued}% - \sbox\sphinxvisiblespacebox {\spx@opt@verbatimvisiblespace}% -}% -\newenvironment{sphinxVerbatim}{% - % first, let's check if there is a caption - \ifx\sphinxVerbatimTitle\empty - \sphinxvspacefixafterfrenchlists - \parskip\z@skip - \vskip\sphinxverbatimsmallskipamount - % there was no caption. Check if nevertheless a label was set. - \ifx\sphinxLiteralBlockLabel\empty\else - % we require some space to be sure hyperlink target from \phantomsection - % will not be separated from upcoming verbatim by a page break - \needspace{\sphinxliteralblockwithoutcaptionneedspace}% - \phantomsection\sphinxLiteralBlockLabel - \fi - \else - \parskip\z@skip - \if t\spx@opt@literalblockcappos - \vskip\spx@abovecaptionskip - \def\sphinxVerbatim@Before - {\sphinxVerbatim@Title\nointerlineskip - \kern\dimexpr-\dp\strutbox+\sphinxbelowcaptionspace\relax}% - \else - \vskip\sphinxverbatimsmallskipamount - \def\sphinxVerbatim@After - {\nointerlineskip\kern\dp\strutbox\sphinxVerbatim@Title}% - \fi - \def\@captype{literalblock}% - \capstart - % \sphinxVerbatimTitle must reset color - \setbox\sphinxVerbatim@TitleBox - \hbox{\begin{minipage}{\linewidth}% - \sphinxVerbatimTitle - \end{minipage}}% - \fi - \global\let\sphinxLiteralBlockLabel\empty - \global\let\sphinxVerbatimTitle\empty - \fboxsep\sphinxverbatimsep \fboxrule\sphinxverbatimborder - \ifspx@opt@verbatimwithframe\else\fboxrule\z@\fi - \let\FrameCommand \sphinxVerbatim@FrameCommand - \let\FirstFrameCommand\sphinxVerbatim@FirstFrameCommand - \let\MidFrameCommand \sphinxVerbatim@MidFrameCommand - \let\LastFrameCommand \sphinxVerbatim@LastFrameCommand - \ifspx@opt@verbatimhintsturnover\else - \let\sphinxVerbatim@Continued\@empty - \let\sphinxVerbatim@Continues\@empty - \fi - \ifspx@opt@verbatimwrapslines - % fancyvrb's Verbatim puts each input line in (unbreakable) horizontal boxes. - % This customization wraps each line from the input in a \vtop, thus - % allowing it to wrap and display on two or more lines in the latex output. - % - The codeline counter will be increased only once. - % - The wrapped material will not break across pages, it is impossible - % to achieve this without extensive rewrite of fancyvrb. - % - The (not used in sphinx) obeytabs option to Verbatim is - % broken by this change (showtabs and tabspace work). - \let\sphinxVerbatimFormatLine\sphinxVerbatimFormatLineWrap - \let\FV@Space\spx@verbatim@space - % Allow breaks at special characters using \PYG... macros. - \sphinxbreaksatspecials - % Breaks at punctuation characters . , ; ? ! and / (needs catcode activation) - \fvset{codes*=\sphinxbreaksviaactive}% - \else % end of conditional code for wrapping long code lines - \let\sphinxVerbatimFormatLine\sphinxVerbatimFormatLineNoWrap - \fi - \let\FancyVerbFormatLine\sphinxFancyVerbFormatLine - % workaround to fancyvrb's check of \@currenvir - \let\VerbatimEnvironment\sphinxVerbatimEnvironment - % workaround to fancyvrb's check of current list depth - \def\@toodeep {\advance\@listdepth\@ne}% - % The list environment is needed to control perfectly the vertical space. - % Note: \OuterFrameSep used by framed.sty is later set to \topsep hence 0pt. - % - if caption: distance from last text baseline to caption baseline is - % A+(B-F)+\ht\strutbox, A = \abovecaptionskip (default 10pt), B = - % \baselineskip, F is the framed.sty \FrameHeightAdjust macro, default 6pt. - % Formula valid for F < 10pt. - % - distance of baseline of caption to top of frame is like for tables: - % \sphinxbelowcaptionspace (=0.5\baselineskip) - % - if no caption: distance of last text baseline to code frame is S+(B-F), - % with S = \sphinxverbatimtopskip (=\smallskip) - % - and distance from bottom of frame to next text baseline is - % \baselineskip+\parskip. - % The \trivlist is used to avoid possible "too deeply nested" error. - \itemsep \z@skip - \topsep \z@skip - \partopsep \z@skip - % trivlist will set \parsep to \parskip = zero - % \leftmargin will be set to zero by trivlist - \rightmargin\z@ - \parindent \z@% becomes \itemindent. Default zero, but perhaps overwritten. - \trivlist\item\relax - \ifsphinxverbatimwithminipage\spx@inframedtrue\fi - % use a minipage if we are already inside a framed environment - \ifspx@inframed\noindent\begin{minipage}{\linewidth}\fi - \MakeFramed {% adapted over from framed.sty's snugshade environment - \advance\hsize-\width\@totalleftmargin\z@\linewidth\hsize\@setminipage - }% - % For grid placement from \strut's in \FancyVerbFormatLine - \lineskip\z@skip - % active comma should not be overwritten by \@noligs - \ifspx@opt@verbatimwrapslines - \let\verbatim@nolig@list \sphinx@verbatim@nolig@list - \fi - % will fetch its optional arguments if any - \OriginalVerbatim -} -{% - \endOriginalVerbatim - \par\unskip\@minipagefalse\endMakeFramed % from framed.sty snugshade - \ifspx@inframed\end{minipage}\fi - \endtrivlist -} -\newenvironment {sphinxVerbatimNoFrame} - {\spx@opt@verbatimwithframefalse - % needed for fancyvrb as literal code will end in \end{sphinxVerbatimNoFrame} - \def\sphinxVerbatimEnvironment{\gdef\FV@EnvironName{sphinxVerbatimNoFrame}}% - \begin{sphinxVerbatim}} - {\end{sphinxVerbatim}} -\newenvironment {sphinxVerbatimintable} - {% don't use a frame if in a table cell - \spx@opt@verbatimwithframefalse - \sphinxverbatimwithminipagetrue - % the literal block caption uses \sphinxcaption which is wrapper of \caption, - % but \caption must be modified because longtable redefines it to work only - % for the own table caption, and tabulary has multiple passes - \let\caption\sphinxfigcaption - % reduce above caption skip - \def\spx@abovecaptionskip{\sphinxverbatimsmallskipamount}% - \def\sphinxVerbatimEnvironment{\gdef\FV@EnvironName{sphinxVerbatimintable}}% - \begin{sphinxVerbatim}} - {\end{sphinxVerbatim}} - - -%% PARSED LITERALS -% allow long lines to wrap like they do in code-blocks - -% this should be kept in sync with definitions in sphinx.util.texescape -\newcommand*\sphinxbreaksattexescapedchars{% - \def\do##1##2% put potential break point before character - {\def##1{\discretionary{}{\sphinxafterbreak\char`##2}{\char`##2}}}% - \do\{\{\do\textless\<\do\#\#\do\%\%\do\$\$% {, <, #, %, $ - \def\do##1##2% put potential break point after character - {\def##1{\discretionary{\char`##2}{\sphinxafterbreak}{\char`##2}}}% - \do\_\_\do\}\}\do\textasciicircum\^\do\&\&% _, }, ^, &, - \do\textgreater\>\do\textasciitilde\~% >, ~ -} -\newcommand*\sphinxbreaksviaactiveinparsedliteral{% - \sphinxbreaksviaactive % by default handles . , ; ? ! / - \do\-% we need also the hyphen character (ends up "as is" in parsed-literal) - \lccode`\~`\~ % - % update \dospecials as it is used by \url - % but deactivation will already have been done hence this is unneeded: - % \expandafter\def\expandafter\dospecials\expandafter{\dospecials - % \sphinxbreaksbeforeactivelist\sphinxbreaksafteractivelist\do\-}% -} -\newcommand*\sphinxbreaksatspaceinparsedliteral{% - \lccode`~32 \lowercase{\let~}\spx@verbatim@space\lccode`\~`\~ -} -\newcommand*{\sphinxunactivateextras}{\let\do\@makeother - \sphinxbreaksbeforeactivelist\sphinxbreaksafteractivelist\do\-}% -% the \catcode13=5\relax (deactivate end of input lines) is left to callers -\newcommand*{\sphinxunactivateextrasandspace}{\catcode32=10\relax - \sphinxunactivateextras}% -% now for the modified alltt environment -\newenvironment{sphinxalltt} -{% at start of next line to workaround Emacs/AUCTeX issue with this file -\begin{alltt}% - \ifspx@opt@parsedliteralwraps - \sbox\sphinxcontinuationbox {\spx@opt@verbatimcontinued}% - \sbox\sphinxvisiblespacebox {\spx@opt@verbatimvisiblespace}% - \sphinxbreaksattexescapedchars - \sphinxbreaksviaactiveinparsedliteral - \sphinxbreaksatspaceinparsedliteral -% alltt takes care of the ' as derivative ("prime") in math mode - \everymath\expandafter{\the\everymath\sphinxunactivateextrasandspace - \catcode`\<=12\catcode`\>=12\catcode`\^=7\catcode`\_=8 }% -% not sure if displayed math (align,...) can end up in parsed-literal, anyway - \everydisplay\expandafter{\the\everydisplay - \catcode13=5 \sphinxunactivateextrasandspace - \catcode`\<=12\catcode`\>=12\catcode`\^=7\catcode`\_=8 }% - \fi } -{\end{alltt}} - -% Protect \href's first argument in contexts such as sphinxalltt (or -% \sphinxcode). Sphinx uses \#, \%, \& ... always inside \sphinxhref. -\protected\def\sphinxhref#1#2{{% - \sphinxunactivateextrasandspace % never do \scantokens with active space! - \endlinechar\m@ne\everyeof{{#2}}% keep catcode regime for #2 - \scantokens{\href{#1}}% normalise it for #1 during \href expansion -}} -% Same for \url. And also \nolinkurl for coherence. -\protected\def\sphinxurl#1{{% - \sphinxunactivateextrasandspace\everyeof{}% (<- precaution for \scantokens) - \endlinechar\m@ne\scantokens{\url{#1}}% -}} -\protected\def\sphinxnolinkurl#1{{% - \sphinxunactivateextrasandspace\everyeof{}% - \endlinechar\m@ne\scantokens{\nolinkurl{#1}}% -}} - - -%% TOPIC AND CONTENTS BOXES -% -% Again based on use of "framed.sty", this allows breakable framed boxes. -\long\def\spx@ShadowFBox#1{% - \leavevmode\begingroup - % first we frame the box #1 - \setbox\@tempboxa - \hbox{\vrule\@width\sphinxshadowrule - \vbox{\hrule\@height\sphinxshadowrule - \kern\sphinxshadowsep - \hbox{\kern\sphinxshadowsep #1\kern\sphinxshadowsep}% - \kern\sphinxshadowsep - \hrule\@height\sphinxshadowrule}% - \vrule\@width\sphinxshadowrule}% - % Now we add the shadow, like \shadowbox from fancybox.sty would do - \dimen@\dimexpr.5\sphinxshadowrule+\sphinxshadowsize\relax - \hbox{\vbox{\offinterlineskip - \hbox{\copy\@tempboxa\kern-.5\sphinxshadowrule - % add shadow on right side - \lower\sphinxshadowsize - \hbox{\vrule\@height\ht\@tempboxa \@width\dimen@}% - }% - \kern-\dimen@ % shift back vertically to bottom of frame - % and add shadow at bottom - \moveright\sphinxshadowsize - \vbox{\hrule\@width\wd\@tempboxa \@height\dimen@}% - }% - % move left by the size of right shadow so shadow adds no width - \kern-\sphinxshadowsize - }% - \endgroup -} - -% use framed.sty to allow page breaks in frame+shadow -% works well inside Lists and Quote-like environments -% produced by ``topic'' directive (or local contents) -% could nest if LaTeX writer authorized it -\newenvironment{sphinxShadowBox} - {\def\FrameCommand {\spx@ShadowFBox }% - % configure framed.sty not to add extra vertical spacing - \ltx@ifundefined{OuterFrameSep}{}{\OuterFrameSep\z@skip}% - % the \trivlist will add the vertical spacing on top and bottom which is - % typical of center environment as used in Sphinx <= 1.4.1 - % the \noindent has the effet of an extra blank line on top, to - % imitate closely the layout from Sphinx <= 1.4.1; the \FrameHeightAdjust - % will put top part of frame on this baseline. - \def\FrameHeightAdjust {\baselineskip}% - % use package footnote to handle footnotes - \savenotes - \trivlist\item\noindent - % use a minipage if we are already inside a framed environment - \ifspx@inframed\begin{minipage}{\linewidth}\fi - \MakeFramed {\spx@inframedtrue - % framed.sty puts into "\width" the added width (=2shadowsep+2shadowrule) - % adjust \hsize to what the contents must use - \advance\hsize-\width - % adjust LaTeX parameters to behave properly in indented/quoted contexts - \FrameRestore - % typeset the contents as in a minipage (Sphinx <= 1.4.1 used a minipage and - % itemize/enumerate are therein typeset more tightly, we want to keep - % that). We copy-paste from LaTeX source code but don't do a real minipage. - \@pboxswfalse - \let\@listdepth\@mplistdepth \@mplistdepth\z@ - \@minipagerestore - \@setminipage - }% - }% - {% insert the "endminipage" code - \par\unskip - \@minipagefalse - \endMakeFramed - \ifspx@inframed\end{minipage}\fi - \endtrivlist - % output the stored footnotes - \spewnotes - } - - -%% NOTICES AND ADMONITIONS -% -% Some are quite plain -% the spx@notice@bordercolor etc are set in the sphinxadmonition environment -\newenvironment{sphinxlightbox}{% - \par\allowbreak - \noindent{\color{spx@notice@bordercolor}% - \rule{\linewidth}{\spx@notice@border}}\par\nobreak - {\parskip\z@skip\noindent}% - } - {% - % counteract previous possible negative skip (French lists!): - % (we can't cancel that any earlier \vskip introduced a potential pagebreak) - \sphinxvspacefixafterfrenchlists - \nobreak\vbox{\noindent\kern\@totalleftmargin - {\color{spx@notice@bordercolor}% - \rule[\dimexpr.4\baselineskip-\spx@notice@border\relax] - {\linewidth}{\spx@notice@border}}\hss}\allowbreak - }% end of sphinxlightbox environment definition -% may be renewenvironment'd by user for complete customization -\newenvironment{sphinxnote}[1] - {\begin{sphinxlightbox}\sphinxstrong{#1} }{\end{sphinxlightbox}} -\newenvironment{sphinxhint}[1] - {\begin{sphinxlightbox}\sphinxstrong{#1} }{\end{sphinxlightbox}} -\newenvironment{sphinximportant}[1] - {\begin{sphinxlightbox}\sphinxstrong{#1} }{\end{sphinxlightbox}} -\newenvironment{sphinxtip}[1] - {\begin{sphinxlightbox}\sphinxstrong{#1} }{\end{sphinxlightbox}} -% or just use the package options -% these are needed for common handling by notice environment of lightbox -% and heavybox but they are currently not used by lightbox environment -% and there is consequently no corresponding package option -\definecolor{sphinxnoteBgColor}{rgb}{1,1,1} -\definecolor{sphinxhintBgColor}{rgb}{1,1,1} -\definecolor{sphinximportantBgColor}{rgb}{1,1,1} -\definecolor{sphinxtipBgColor}{rgb}{1,1,1} - -% Others get more distinction -% Code adapted from framed.sty's "snugshade" environment. -% Nesting works (inner frames do not allow page breaks). -\newenvironment{sphinxheavybox}{\par - \setlength{\FrameRule}{\spx@notice@border}% - \setlength{\FrameSep}{\dimexpr.6\baselineskip-\FrameRule\relax} - % configure framed.sty's parameters to obtain same vertical spacing - % as for "light" boxes. We need for this to manually insert parskip glue and - % revert a skip done by framed before the frame. - \ltx@ifundefined{OuterFrameSep}{}{\OuterFrameSep\z@skip}% - \vspace{\FrameHeightAdjust} - % copied/adapted from framed.sty's snugshade - \def\FrameCommand##1{\hskip\@totalleftmargin - \fboxsep\FrameSep \fboxrule\FrameRule - \fcolorbox{spx@notice@bordercolor}{spx@notice@bgcolor}{##1}% - \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% - \savenotes - % use a minipage if we are already inside a framed environment - \ifspx@inframed - \noindent\begin{minipage}{\linewidth} - \else - % handle case where notice is first thing in a list item (or is quoted) - \if@inlabel - \noindent\par\vspace{-\baselineskip} - \else - \vspace{\parskip} - \fi - \fi - \MakeFramed {\spx@inframedtrue - \advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize - % minipage initialization copied from LaTeX source code. - \@pboxswfalse - \let\@listdepth\@mplistdepth \@mplistdepth\z@ - \@minipagerestore - \@setminipage }% - } - {% - \par\unskip - \@minipagefalse - \endMakeFramed - \ifspx@inframed\end{minipage}\fi - % set footnotes at bottom of page - \spewnotes - % arrange for similar spacing below frame as for "light" boxes. - \vskip .4\baselineskip - }% end of sphinxheavybox environment definition -% may be renewenvironment'd by user for complete customization -\newenvironment{sphinxwarning}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} -\newenvironment{sphinxcaution}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} -\newenvironment{sphinxattention}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} -\newenvironment{sphinxdanger}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} -\newenvironment{sphinxerror}[1] - {\begin{sphinxheavybox}\sphinxstrong{#1} }{\end{sphinxheavybox}} -% or just use package options - -% the \colorlet of xcolor (if at all loaded) is overkill for our use case -\newcommand{\sphinxcolorlet}[2] - {\expandafter\let\csname\@backslashchar color@#1\expandafter\endcsname - \csname\@backslashchar color@#2\endcsname } - -% the main dispatch for all types of notices -\newenvironment{sphinxadmonition}[2]{% #1=type, #2=heading - % can't use #1 directly in definition of end part - \def\spx@noticetype {#1}% - % set parameters of heavybox/lightbox - \sphinxcolorlet{spx@notice@bordercolor}{sphinx#1BorderColor}% - \sphinxcolorlet{spx@notice@bgcolor}{sphinx#1BgColor}% - \spx@notice@border \dimexpr\csname spx@opt@#1border\endcsname\relax - % start specific environment, passing the heading as argument - \begin{sphinx#1}{#2}} - % workaround some LaTeX "feature" of \end command - {\edef\spx@temp{\noexpand\end{sphinx\spx@noticetype}}\spx@temp} - - -%% PYTHON DOCS MACROS AND ENVIRONMENTS -% (some macros here used by \maketitle in sphinxmanual.cls and sphinxhowto.cls) - -% \moduleauthor{name}{email} -\newcommand{\moduleauthor}[2]{} - -% \sectionauthor{name}{email} -\newcommand{\sectionauthor}[2]{} - -% Allow the release number to be specified independently of the -% \date{}. This allows the date to reflect the document's date and -% release to specify the release that is documented. -% -\newcommand{\py@release}{\releasename\space\version} -\newcommand{\version}{}% part of \py@release, used by title page and headers -% \releaseinfo is used on titlepage (sphinxmanual.cls, sphinxhowto.cls) -\newcommand{\releaseinfo}{} -\newcommand{\setreleaseinfo}[1]{\renewcommand{\releaseinfo}{#1}} -% this is inserted via template and #1=release config variable -\newcommand{\release}[1]{\renewcommand{\version}{#1}} -% this is defined by template to 'releasename' latex_elements key -\newcommand{\releasename}{} -% Fix issue in case release and releasename deliberately left blank -\newcommand{\sphinxheadercomma}{, }% used in fancyhdr header definition -\newcommand{\sphinxifemptyorblank}[1]{% -% test after one expansion of macro #1 if contents is empty or spaces - \if&\expandafter\@firstofone\detokenize\expandafter{#1}&% - \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}% -\AtBeginDocument {% - \sphinxifemptyorblank{\releasename} - {\sphinxifemptyorblank{\version}{\let\sphinxheadercomma\empty}{}} - {}% -}% - -% Allow specification of the author's address separately from the -% author's name. This can be used to format them differently, which -% is a good thing. -% -\newcommand{\py@authoraddress}{} -\newcommand{\authoraddress}[1]{\renewcommand{\py@authoraddress}{#1}} - -% {fulllineitems} is the main environment for object descriptions. -% -\newcommand{\py@itemnewline}[1]{% - \kern\labelsep - \@tempdima\linewidth - \advance\@tempdima \labelwidth\makebox[\@tempdima][l]{#1}% - \kern-\labelsep -} - -\newenvironment{fulllineitems}{% - \begin{list}{}{\labelwidth \leftmargin - \rightmargin \z@ \topsep -\parskip \partopsep \parskip - \itemsep -\parsep - \let\makelabel=\py@itemnewline}% -}{\end{list}} - -% Signatures, possibly multi-line -% -\newlength{\py@argswidth} -\newcommand{\py@sigparams}[2]{% - \parbox[t]{\py@argswidth}{#1\sphinxcode{)}#2}} -\newcommand{\pysigline}[1]{\item[{#1}]} -\newcommand{\pysiglinewithargsret}[3]{% - \settowidth{\py@argswidth}{#1\sphinxcode{(}}% - \addtolength{\py@argswidth}{-2\py@argswidth}% - \addtolength{\py@argswidth}{\linewidth}% - \item[{#1\sphinxcode{(}\py@sigparams{#2}{#3}}]} -\newcommand{\pysigstartmultiline}{% - \def\pysigstartmultiline{\vskip\smallskipamount\parskip\z@skip\itemsep\z@skip}% - \edef\pysigstopmultiline - {\noexpand\leavevmode\parskip\the\parskip\relax\itemsep\the\itemsep\relax}% - \parskip\z@skip\itemsep\z@skip -} - -% Production lists -% -\newenvironment{productionlist}{% -% \def\sphinxoptional##1{{\Large[}##1{\Large]}} - \def\production##1##2{\\\sphinxcode{\sphinxupquote{##1}}&::=&\sphinxcode{\sphinxupquote{##2}}}% - \def\productioncont##1{\\& &\sphinxcode{\sphinxupquote{##1}}}% - \parindent=2em - \indent - \setlength{\LTpre}{0pt}% - \setlength{\LTpost}{0pt}% - \begin{longtable}[l]{lcl} -}{% - \end{longtable} -} - -% Definition lists; requested by AMK for HOWTO documents. Probably useful -% elsewhere as well, so keep in in the general style support. -% -\newenvironment{definitions}{% - \begin{description}% - \def\term##1{\item[{##1}]\mbox{}\\*[0mm]}% -}{% - \end{description}% -} - -%% FROM DOCTUTILS LATEX WRITER -% -% The following is stuff copied from docutils' latex writer. -% -\newcommand{\optionlistlabel}[1]{\normalfont\bfseries #1 \hfill}% \bf deprecated -\newenvironment{optionlist}[1] -{\begin{list}{} - {\setlength{\labelwidth}{#1} - \setlength{\rightmargin}{1cm} - \setlength{\leftmargin}{\rightmargin} - \addtolength{\leftmargin}{\labelwidth} - \addtolength{\leftmargin}{\labelsep} - \renewcommand{\makelabel}{\optionlistlabel}} -}{\end{list}} - -\newlength{\lineblockindentation} -\setlength{\lineblockindentation}{2.5em} -\newenvironment{lineblock}[1] -{\begin{list}{} - {\setlength{\partopsep}{\parskip} - \addtolength{\partopsep}{\baselineskip} - \topsep0pt\itemsep0.15\baselineskip\parsep0pt - \leftmargin#1\relax} - \raggedright} -{\end{list}} - -% From docutils.writers.latex2e -% inline markup (custom roles) -% \DUrole{#1}{#2} tries \DUrole#1{#2} -\providecommand*{\DUrole}[2]{% - \ifcsname DUrole\detokenize{#1}\endcsname - \csname DUrole\detokenize{#1}\endcsname{#2}% - \else% backwards compatibility: try \docutilsrole#1{#2} - \ifcsname docutilsrole\detokenize{#1}\endcsname - \csname docutilsrole\detokenize{#1}\endcsname{#2}% - \else - #2% - \fi - \fi -} - -\providecommand*{\DUprovidelength}[2]{% - \ifdefined#1\else\newlength{#1}\setlength{#1}{#2}\fi -} - -\DUprovidelength{\DUlineblockindent}{2.5em} -\ifdefined\DUlineblock\else - \newenvironment{DUlineblock}[1]{% - \list{}{\setlength{\partopsep}{\parskip} - \addtolength{\partopsep}{\baselineskip} - \setlength{\topsep}{0pt} - \setlength{\itemsep}{0.15\baselineskip} - \setlength{\parsep}{0pt} - \setlength{\leftmargin}{#1}} - \raggedright - } - {\endlist} -\fi - -%% TEXT STYLING -% -% to obtain straight quotes we execute \@noligs as patched by upquote, and -% \scantokens is needed in cases where it would be too late for the macro to -% first set catcodes and then fetch its argument. We also make the contents -% breakable at non-escaped . , ; ? ! / using \sphinxbreaksviaactive. -% the macro must be protected if it ends up used in moving arguments, -% in 'alltt' \@noligs is done already, and the \scantokens must be avoided. -\protected\def\sphinxupquote#1{{\def\@tempa{alltt}% - \ifx\@tempa\@currenvir\else - \ifspx@opt@inlineliteralwraps - \sphinxbreaksviaactive\let\sphinxafterbreak\empty - % do not overwrite the comma set-up - \let\verbatim@nolig@list\sphinx@literal@nolig@list - \fi - % fix a space-gobbling issue due to LaTeX's original \do@noligs - \let\do@noligs\sphinx@do@noligs - \@noligs\endlinechar\m@ne\everyeof{}% (<- in case inside \sphinxhref) - \expandafter\scantokens - \fi {{#1}}}}% extra brace pair to fix end-space gobbling issue... -\def\sphinx@do@noligs #1{\catcode`#1\active\begingroup\lccode`\~`#1\relax - \lowercase{\endgroup\def~{\leavevmode\kern\z@\char`#1 }}} -\def\sphinx@literal@nolig@list {\do\`\do\<\do\>\do\'\do\-}% - -% Some custom font markup commands. -\protected\def\sphinxstrong#1{\textbf{#1}} -\protected\def\sphinxcode#1{\texttt{#1}} -\protected\def\sphinxbfcode#1{\textbf{\sphinxcode{#1}}} -\protected\def\sphinxemail#1{\textsf{#1}} -\protected\def\sphinxtablecontinued#1{\textsf{#1}} -\protected\def\sphinxtitleref#1{\emph{#1}} -\protected\def\sphinxmenuselection#1{\emph{#1}} -\protected\def\sphinxaccelerator#1{\underline{#1}} -\protected\def\sphinxcrossref#1{\emph{#1}} -\protected\def\sphinxtermref#1{\emph{#1}} -% \optional is used for ``[, arg]``, i.e. desc_optional nodes. -\long\protected\def\sphinxoptional#1{% - {\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}} - -% additional customizable styling -% FIXME: convert this to package options ? -\protected\def\sphinxstyleindexentry #1{\texttt{#1}} -\protected\def\sphinxstyleindexextra #1{ \emph{(#1)}} -\protected\def\sphinxstyleindexpageref #1{, \pageref{#1}} -\protected\def\sphinxstyletopictitle #1{\textbf{#1}\par\medskip} -\let\sphinxstylesidebartitle\sphinxstyletopictitle -\protected\def\sphinxstyleothertitle #1{\textbf{#1}} -\protected\def\sphinxstylesidebarsubtitle #1{~\\\textbf{#1} \smallskip} -% \text.. commands do not allow multiple paragraphs -\protected\def\sphinxstyletheadfamily {\sffamily} -\protected\def\sphinxstyleemphasis #1{\emph{#1}} -\protected\def\sphinxstyleliteralemphasis#1{\emph{\sphinxcode{#1}}} -\protected\def\sphinxstylestrong #1{\textbf{#1}} -\protected\def\sphinxstyleliteralstrong#1{\sphinxbfcode{#1}} -\protected\def\sphinxstyleabbreviation #1{\textsc{#1}} -\protected\def\sphinxstyleliteralintitle#1{\sphinxcode{#1}} -\newcommand*\sphinxstylecodecontinued[1]{\footnotesize(#1)}% -\newcommand*\sphinxstylecodecontinues[1]{\footnotesize(#1)}% -% figure legend comes after caption and may contain arbitrary body elements -\newenvironment{sphinxlegend}{\par\small}{\par} - -% Declare Unicode characters used by linux tree command to pdflatex utf8/utf8x -\def\spx@bd#1#2{% - \leavevmode - \begingroup - \ifx\spx@bd@height \@undefined\def\spx@bd@height{\baselineskip}\fi - \ifx\spx@bd@width \@undefined\setbox0\hbox{0}\def\spx@bd@width{\wd0 }\fi - \ifx\spx@bd@thickness\@undefined\def\spx@bd@thickness{.6\p@}\fi - \ifx\spx@bd@lower \@undefined\def\spx@bd@lower{\dp\strutbox}\fi - \lower\spx@bd@lower#1{#2}% - \endgroup -}% -\@namedef{sphinx@u2500}% BOX DRAWINGS LIGHT HORIZONTAL - {\spx@bd{\vbox to\spx@bd@height} - {\vss\hrule\@height\spx@bd@thickness - \@width\spx@bd@width\vss}}% -\@namedef{sphinx@u2502}% BOX DRAWINGS LIGHT VERTICAL - {\spx@bd{\hb@xt@\spx@bd@width} - {\hss\vrule\@height\spx@bd@height - \@width \spx@bd@thickness\hss}}% -\@namedef{sphinx@u2514}% BOX DRAWINGS LIGHT UP AND RIGHT - {\spx@bd{\hb@xt@\spx@bd@width} - {\hss\raise.5\spx@bd@height - \hb@xt@\z@{\hss\vrule\@height.5\spx@bd@height - \@width \spx@bd@thickness\hss}% - \vbox to\spx@bd@height{\vss\hrule\@height\spx@bd@thickness - \@width.5\spx@bd@width\vss}}}% -\@namedef{sphinx@u251C}% BOX DRAWINGS LIGHT VERTICAL AND RIGHT - {\spx@bd{\hb@xt@\spx@bd@width} - {\hss - \hb@xt@\z@{\hss\vrule\@height\spx@bd@height - \@width \spx@bd@thickness\hss}% - \vbox to\spx@bd@height{\vss\hrule\@height\spx@bd@thickness - \@width.5\spx@bd@width\vss}}}% -\protected\def\sphinxunichar#1{\@nameuse{sphinx@u#1}}% - -% Tell TeX about pathological hyphenation cases: -\hyphenation{Base-HTTP-Re-quest-Hand-ler} -\endinput diff --git a/doc/build/latex/sphinxhighlight.sty b/doc/build/latex/sphinxhighlight.sty deleted file mode 100644 index 77c7e2c..0000000 --- a/doc/build/latex/sphinxhighlight.sty +++ /dev/null @@ -1,105 +0,0 @@ -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{sphinxhighlight}[2016/05/29 stylesheet for highlighting with pygments] - - -\makeatletter -\def\PYG@reset{\let\PYG@it=\relax \let\PYG@bf=\relax% - \let\PYG@ul=\relax \let\PYG@tc=\relax% - \let\PYG@bc=\relax \let\PYG@ff=\relax} -\def\PYG@tok#1{\csname PYG@tok@#1\endcsname} -\def\PYG@toks#1+{\ifx\relax#1\empty\else% - \PYG@tok{#1}\expandafter\PYG@toks\fi} -\def\PYG@do#1{\PYG@bc{\PYG@tc{\PYG@ul{% - \PYG@it{\PYG@bf{\PYG@ff{#1}}}}}}} -\def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+\PYG@do{#2}} - -\expandafter\def\csname PYG@tok@gd\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}} -\expandafter\def\csname PYG@tok@gu\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}} -\expandafter\def\csname PYG@tok@gt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}} -\expandafter\def\csname PYG@tok@gs\endcsname{\let\PYG@bf=\textbf} -\expandafter\def\csname PYG@tok@gr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}} -\expandafter\def\csname PYG@tok@cm\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}} -\expandafter\def\csname PYG@tok@vg\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}} -\expandafter\def\csname PYG@tok@vi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}} -\expandafter\def\csname PYG@tok@vm\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}} -\expandafter\def\csname PYG@tok@mh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@cs\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}\def\PYG@bc##1{\setlength{\fboxsep}{0pt}\colorbox[rgb]{1.00,0.94,0.94}{\strut ##1}}} -\expandafter\def\csname PYG@tok@ge\endcsname{\let\PYG@it=\textit} -\expandafter\def\csname PYG@tok@vc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}} -\expandafter\def\csname PYG@tok@il\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@go\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.20,0.20,0.20}{##1}}} -\expandafter\def\csname PYG@tok@cp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@gi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} -\expandafter\def\csname PYG@tok@gh\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} -\expandafter\def\csname PYG@tok@ni\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.84,0.33,0.22}{##1}}} -\expandafter\def\csname PYG@tok@nl\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.13,0.44}{##1}}} -\expandafter\def\csname PYG@tok@nn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}} -\expandafter\def\csname PYG@tok@no\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.38,0.68,0.84}{##1}}} -\expandafter\def\csname PYG@tok@na\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@nb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@nc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}} -\expandafter\def\csname PYG@tok@nd\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.33,0.33,0.33}{##1}}} -\expandafter\def\csname PYG@tok@ne\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@nf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.49}{##1}}} -\expandafter\def\csname PYG@tok@si\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.44,0.63,0.82}{##1}}} -\expandafter\def\csname PYG@tok@s2\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@nt\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.45}{##1}}} -\expandafter\def\csname PYG@tok@nv\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}} -\expandafter\def\csname PYG@tok@s1\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@dl\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@ch\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}} -\expandafter\def\csname PYG@tok@m\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@gp\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}} -\expandafter\def\csname PYG@tok@sh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@ow\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@sx\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}} -\expandafter\def\csname PYG@tok@bp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@c1\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}} -\expandafter\def\csname PYG@tok@fm\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.49}{##1}}} -\expandafter\def\csname PYG@tok@o\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PYG@tok@kc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@c\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}} -\expandafter\def\csname PYG@tok@mf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@err\endcsname{\def\PYG@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}} -\expandafter\def\csname PYG@tok@mb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@ss\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.32,0.47,0.09}{##1}}} -\expandafter\def\csname PYG@tok@sr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.14,0.33,0.53}{##1}}} -\expandafter\def\csname PYG@tok@mo\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@kd\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@mi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}} -\expandafter\def\csname PYG@tok@kn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@cpf\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}} -\expandafter\def\csname PYG@tok@kr\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@s\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@kp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@w\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}} -\expandafter\def\csname PYG@tok@kt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.56,0.13,0.00}{##1}}} -\expandafter\def\csname PYG@tok@sc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@sb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@sa\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@k\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}} -\expandafter\def\csname PYG@tok@se\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} -\expandafter\def\csname PYG@tok@sd\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}} - -\def\PYGZbs{\char`\\} -\def\PYGZus{\char`\_} -\def\PYGZob{\char`\{} -\def\PYGZcb{\char`\}} -\def\PYGZca{\char`\^} -\def\PYGZam{\char`\&} -\def\PYGZlt{\char`\<} -\def\PYGZgt{\char`\>} -\def\PYGZsh{\char`\#} -\def\PYGZpc{\char`\%} -\def\PYGZdl{\char`\$} -\def\PYGZhy{\char`\-} -\def\PYGZsq{\char`\'} -\def\PYGZdq{\char`\"} -\def\PYGZti{\char`\~} -% for compatibility with earlier versions -\def\PYGZat{@} -\def\PYGZlb{[} -\def\PYGZrb{]} -\makeatother - -\renewcommand\PYGZsq{\textquotesingle} diff --git a/doc/build/latex/sphinxhowto.cls b/doc/build/latex/sphinxhowto.cls deleted file mode 100644 index 11a49a2..0000000 --- a/doc/build/latex/sphinxhowto.cls +++ /dev/null @@ -1,95 +0,0 @@ -% -% sphinxhowto.cls for Sphinx (http://sphinx-doc.org/) -% - -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{sphinxhowto}[2017/03/26 v1.6 Document class (Sphinx HOWTO)] - -% 'oneside' option overriding the 'twoside' default -\newif\if@oneside -\DeclareOption{oneside}{\@onesidetrue} -% Pass remaining document options to the parent class. -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\sphinxdocclass}} -\ProcessOptions\relax - -% Default to two-side document -\if@oneside -% nothing to do (oneside is the default) -\else -\PassOptionsToClass{twoside}{\sphinxdocclass} -\fi - -\LoadClass{\sphinxdocclass} - -% Set some sane defaults for section numbering depth and TOC depth. You can -% reset these counters in your preamble. -% -\setcounter{secnumdepth}{2} -\setcounter{tocdepth}{2}% i.e. section and subsection - -% Change the title page to look a bit better, and fit in with the fncychap -% ``Bjarne'' style a bit better. -% -\renewcommand{\maketitle}{% - \noindent\rule{\textwidth}{1pt}\par - \begingroup % for PDF information dictionary - \def\endgraf{ }\def\and{\& }% - \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup - \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}% - \endgroup - \begin{flushright} - \sphinxlogo - \py@HeaderFamily - {\Huge \@title }\par - {\itshape\large \py@release \releaseinfo}\par - \vspace{25pt} - {\Large - \begin{tabular}[t]{c} - \@author - \end{tabular}}\par - \vspace{25pt} - \@date \par - \py@authoraddress \par - \end{flushright} - \@thanks - \setcounter{footnote}{0} - \let\thanks\relax\let\maketitle\relax - %\gdef\@thanks{}\gdef\@author{}\gdef\@title{} -} - -\newcommand{\sphinxtableofcontents}{ - \begingroup - \parskip = 0mm - \tableofcontents - \endgroup - \rule{\textwidth}{1pt} - \vspace{12pt} -} - -\@ifundefined{fancyhf}{ - \pagestyle{plain}}{ - \pagestyle{normal}} % start this way; change for -\pagenumbering{arabic} % ToC & chapters - -\thispagestyle{empty} - -% Fix the bibliography environment to add an entry to the Table of -% Contents. -% For an article document class this environment is a section, -% so no page break before it. -% -\newenvironment{sphinxthebibliography}[1]{% - % \phantomsection % not needed here since TeXLive 2010's hyperref - \begin{thebibliography}{1}% - \addcontentsline{toc}{section}{\ifdefined\refname\refname\else\ifdefined\bibname\bibname\fi\fi}}{\end{thebibliography}} - - -% Same for the indices. -% The memoir class already does this, so we don't duplicate it in that case. -% -\@ifclassloaded{memoir} - {\newenvironment{sphinxtheindex}{\begin{theindex}}{\end{theindex}}} - {\newenvironment{sphinxtheindex}{% - \phantomsection % needed because no chapter, section, ... is created by theindex - \begin{theindex}% - \addcontentsline{toc}{section}{\indexname}}{\end{theindex}}} diff --git a/doc/build/latex/sphinxmanual.cls b/doc/build/latex/sphinxmanual.cls deleted file mode 100644 index 5b3d183..0000000 --- a/doc/build/latex/sphinxmanual.cls +++ /dev/null @@ -1,114 +0,0 @@ -% -% sphinxmanual.cls for Sphinx (http://sphinx-doc.org/) -% - -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{sphinxmanual}[2017/03/26 v1.6 Document class (Sphinx manual)] - -% chapters starting at odd pages (overridden by 'openany' document option) -\PassOptionsToClass{openright}{\sphinxdocclass} - -% 'oneside' option overriding the 'twoside' default -\newif\if@oneside -\DeclareOption{oneside}{\@onesidetrue} -% Pass remaining document options to the parent class. -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\sphinxdocclass}} -\ProcessOptions\relax - -% Defaults two-side document -\if@oneside -% nothing to do (oneside is the default) -\else -\PassOptionsToClass{twoside}{\sphinxdocclass} -\fi - -\LoadClass{\sphinxdocclass} - -% Set some sane defaults for section numbering depth and TOC depth. You can -% reset these counters in your preamble. -% -\setcounter{secnumdepth}{2} -\setcounter{tocdepth}{1} - -% Change the title page to look a bit better, and fit in with the fncychap -% ``Bjarne'' style a bit better. -% -\renewcommand{\maketitle}{% - \let\spx@tempa\relax - \ifHy@pageanchor\def\spx@tempa{\Hy@pageanchortrue}\fi - \hypersetup{pageanchor=false}% avoid duplicate destination warnings - \begin{titlepage}% - \let\footnotesize\small - \let\footnoterule\relax - \noindent\rule{\textwidth}{1pt}\par - \begingroup % for PDF information dictionary - \def\endgraf{ }\def\and{\& }% - \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup - \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}% - \endgroup - \begin{flushright}% - \sphinxlogo - \py@HeaderFamily - {\Huge \@title \par} - {\itshape\LARGE \py@release\releaseinfo \par} - \vfill - {\LARGE - \begin{tabular}[t]{c} - \@author - \end{tabular} - \par} - \vfill\vfill - {\large - \@date \par - \vfill - \py@authoraddress \par - }% - \end{flushright}%\par - \@thanks - \end{titlepage}% - \setcounter{footnote}{0}% - \let\thanks\relax\let\maketitle\relax - %\gdef\@thanks{}\gdef\@author{}\gdef\@title{} - \if@openright\cleardoublepage\else\clearpage\fi - \spx@tempa -} - -\newcommand{\sphinxtableofcontents}{% - \pagenumbering{roman}% - \pagestyle{plain}% - \begingroup - \parskip \z@skip - \tableofcontents - \endgroup - % before resetting page counter, let's do the right thing. - \if@openright\cleardoublepage\else\clearpage\fi - \pagenumbering{arabic}% - \ifdefined\fancyhf\pagestyle{normal}\fi -} - -% This is needed to get the width of the section # area wide enough in the -% library reference. Doing it here keeps it the same for all the manuals. -% -\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.6em}} -\renewcommand*\l@subsection{\@dottedtocline{2}{4.1em}{3.5em}} - -% Fix the bibliography environment to add an entry to the Table of -% Contents. -% For a report document class this environment is a chapter. -% -\newenvironment{sphinxthebibliography}[1]{% - \if@openright\cleardoublepage\else\clearpage\fi - % \phantomsection % not needed here since TeXLive 2010's hyperref - \begin{thebibliography}{1}% - \addcontentsline{toc}{chapter}{\bibname}}{\end{thebibliography}} - -% Same for the indices. -% The memoir class already does this, so we don't duplicate it in that case. -% -\@ifclassloaded{memoir} - {\newenvironment{sphinxtheindex}{\begin{theindex}}{\end{theindex}}} - {\newenvironment{sphinxtheindex}{% - \if@openright\cleardoublepage\else\clearpage\fi - \phantomsection % needed as no chapter, section, ... created - \begin{theindex}% - \addcontentsline{toc}{chapter}{\indexname}}{\end{theindex}}} diff --git a/doc/build/latex/sphinxmulticell.sty b/doc/build/latex/sphinxmulticell.sty deleted file mode 100644 index f0d11b1..0000000 --- a/doc/build/latex/sphinxmulticell.sty +++ /dev/null @@ -1,317 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sphinxmulticell}% - [2017/02/23 v1.6 better span rows and columns of a table (Sphinx team)]% -\DeclareOption*{\PackageWarning{sphinxmulticell}{Option `\CurrentOption' is unknown}}% -\ProcessOptions\relax -% -% --- MULTICOLUMN --- -% standard LaTeX's \multicolumn -% 1. does not allow verbatim contents, -% 2. interacts very poorly with tabulary. -% -% It is needed to write own macros for Sphinx: to allow code-blocks in merged -% cells rendered by tabular/longtable, and to allow multi-column cells with -% paragraphs to be taken into account sanely by tabulary algorithm for column -% widths. -% -% This requires quite a bit of hacking. First, in Sphinx, the multi-column -% contents will *always* be wrapped in a varwidth environment. The issue -% becomes to pass it the correct target width. We must trick tabulary into -% believing the multicolumn is simply separate columns, else tabulary does not -% incorporate the contents in its algorithm. But then we must clear the -% vertical rules... -% -% configuration of tabulary -\setlength{\tymin}{3\fontcharwd\font`0 }% minimal width of "squeezed" columns -\setlength{\tymax}{10000pt}% allow enough room for paragraphs to "compete" -% we need access to tabulary's final computed width. \@tempdima is too volatile -% to hope it has kept tabulary's value when \sphinxcolwidth needs it. -\newdimen\sphinx@TY@tablewidth -\def\tabulary{% - \def\TY@final{\sphinx@TY@tablewidth\@tempdima\tabular}% - \let\endTY@final\endtabular - \TY@tabular}% -% next hack is needed only if user has set latex_use_latex_multicolumn to True: -% it fixes tabulary's bug with \multicolumn defined "short" in first pass. (if -% upstream tabulary adds a \long, our extra one causes no harm) -\def\sphinx@tempa #1\def\multicolumn#2#3#4#5#6#7#8#9\sphinx@tempa - {\def\TY@tab{#1\long\def\multicolumn####1####2####3{\multispan####1\relax}#9}}% -\expandafter\sphinx@tempa\TY@tab\sphinx@tempa -% -% TN. 1: as \omit is never executed, Sphinx multicolumn does not need to worry -% like standard multicolumn about |l| vs l|. On the other hand it assumes -% columns are separated by a | ... (if not it will add extraneous -% \arrayrulewidth space for each column separation in its estimate of available -% width). -% -% TN. 1b: as Sphinx multicolumn uses neither \omit nor \span, it can not -% (easily) get rid of extra macros from >{...} or <{...} between columns. At -% least, it has been made compatible with colortbl's \columncolor. -% -% TN. 2: tabulary's second pass is handled like tabular/longtable's single -% pass, with the difference that we hacked \TY@final to set in -% \sphinx@TY@tablewidth the final target width as computed by tabulary. This is -% needed only to handle columns with a "horizontal" specifier: "p" type columns -% (inclusive of tabulary's LJRC) holds the target column width in the -% \linewidth dimension. -% -% TN. 3: use of \begin{sphinxmulticolumn}...\end{sphinxmulticolumn} mark-up -% would need some hacking around the fact that groups can not span across table -% cells (the code does inserts & tokens, see TN1b). It was decided to keep it -% simple with \sphinxstartmulticolumn...\sphinxstopmulticolumn. -% -% MEMO about nesting: if sphinxmulticolumn is encountered in a nested tabular -% inside a tabulary it will think to be at top level in the tabulary. But -% Sphinx generates no nested tables, and if some LaTeX macro uses internally a -% tabular this will not have a \sphinxstartmulticolumn within it! -% -\def\sphinxstartmulticolumn{% - \ifx\equation$% $ tabulary's first pass - \expandafter\sphinx@TYI@start@multicolumn - \else % either not tabulary or tabulary's second pass - \expandafter\sphinx@start@multicolumn - \fi -}% -\def\sphinxstopmulticolumn{% - \ifx\equation$% $ tabulary's first pass - \expandafter\sphinx@TYI@stop@multicolumn - \else % either not tabulary or tabulary's second pass - \ignorespaces - \fi -}% -\def\sphinx@TYI@start@multicolumn#1{% - % use \gdef always to avoid stack space build up - \gdef\sphinx@tempa{#1}\begingroup\setbox\z@\hbox\bgroup -}% -\def\sphinx@TYI@stop@multicolumn{\egroup % varwidth was used with \tymax - \xdef\sphinx@tempb{\the\dimexpr\wd\z@/\sphinx@tempa}% per column width - \endgroup - \expandafter\sphinx@TYI@multispan\expandafter{\sphinx@tempa}% -}% -\def\sphinx@TYI@multispan #1{% - \kern\sphinx@tempb\ignorespaces % the per column occupied width - \ifnum#1>\@ne % repeat, taking into account subtleties of TeX's & ... - \expandafter\sphinx@TYI@multispan@next\expandafter{\the\numexpr#1-\@ne\expandafter}% - \fi -}% -\def\sphinx@TYI@multispan@next{&\relax\sphinx@TYI@multispan}% -% -% Now the branch handling either the second pass of tabulary or the single pass -% of tabular/longtable. This is the delicate part where we gather the -% dimensions from the p columns either set-up by tabulary or by user p column -% or Sphinx \X, \Y columns. The difficulty is that to get the said width, the -% template must be inserted (other hacks would be horribly complicated except -% if we rewrote crucial parts of LaTeX's \@array !) and we can not do -% \omit\span like standard \multicolumn's easy approach. Thus we must cancel -% the \vrule separators. Also, perhaps the column specifier is of the l, c, r -% type, then we attempt an ad hoc rescue to give varwidth a reasonable target -% width. -\def\sphinx@start@multicolumn#1{% - \gdef\sphinx@multiwidth{0pt}\gdef\sphinx@tempa{#1}\sphinx@multispan{#1}% -}% -\def\sphinx@multispan #1{% - \ifnum#1=\@ne\expandafter\sphinx@multispan@end - \else\expandafter\sphinx@multispan@next - \fi {#1}% -}% -\def\sphinx@multispan@next #1{% - % trick to recognize L, C, R, J or p, m, b type columns - \ifdim\baselineskip>\z@ - \gdef\sphinx@tempb{\linewidth}% - \else - % if in an l, r, c type column, try and hope for the best - \xdef\sphinx@tempb{\the\dimexpr(\ifx\TY@final\@undefined\linewidth\else - \sphinx@TY@tablewidth\fi-\arrayrulewidth)/\sphinx@tempa - -\tw@\tabcolsep-\arrayrulewidth\relax}% - \fi - \noindent\kern\sphinx@tempb\relax - \xdef\sphinx@multiwidth - {\the\dimexpr\sphinx@multiwidth+\sphinx@tempb+\tw@\tabcolsep+\arrayrulewidth}% - % hack the \vline and the colortbl macros - \sphinx@hack@vline\sphinx@hack@CT&\relax - % repeat - \expandafter\sphinx@multispan\expandafter{\the\numexpr#1-\@ne}% -}% -% packages like colortbl add group levels, we need to "climb back up" to be -% able to hack the \vline and also the colortbl inserted tokens. This creates -% empty space whether or not the columns were | separated: -\def\sphinx@hack@vline{\ifnum\currentgrouptype=6\relax - \kern\arrayrulewidth\arrayrulewidth\z@\else\aftergroup\sphinx@hack@vline\fi}% -\def\sphinx@hack@CT{\ifnum\currentgrouptype=6\relax - \let\CT@setup\sphinx@CT@setup\else\aftergroup\sphinx@hack@CT\fi}% -% It turns out \CT@row@color is not expanded contrarily to \CT@column@color -% during LaTeX+colortbl preamble preparation, hence it would be possible for -% \sphinx@CT@setup to discard only the column color and choose to obey or not -% row color and cell color. It would even be possible to propagate cell color -% to row color for the duration of the Sphinx multicolumn... the (provisional?) -% choice has been made to cancel the colortbl colours for the multicolumn -% duration. -\def\sphinx@CT@setup #1\endgroup{\endgroup}% hack to remove colour commands -\def\sphinx@multispan@end#1{% - % first, trace back our steps horizontally - \noindent\kern-\dimexpr\sphinx@multiwidth\relax - % and now we set the final computed width for the varwidth environment - \ifdim\baselineskip>\z@ - \xdef\sphinx@multiwidth{\the\dimexpr\sphinx@multiwidth+\linewidth}% - \else - \xdef\sphinx@multiwidth{\the\dimexpr\sphinx@multiwidth+ - (\ifx\TY@final\@undefined\linewidth\else - \sphinx@TY@tablewidth\fi-\arrayrulewidth)/\sphinx@tempa - -\tw@\tabcolsep-\arrayrulewidth\relax}% - \fi - % we need to remove colour set-up also for last cell of the multi-column - \aftergroup\sphinx@hack@CT -}% -\newcommand*\sphinxcolwidth[2]{% - % this dimension will always be used for varwidth, and serves as maximum - % width when cells are merged either via multirow or multicolumn or both, - % as always their contents is wrapped in varwidth environment. - \ifnum#1>\@ne % multi-column (and possibly also multi-row) - % we wrote our own multicolumn code especially to handle that (and allow - % verbatim contents) - \ifx\equation$%$ - \tymax % first pass of tabulary (cf MEMO above regarding nesting) - \else % the \@gobble thing is for compatibility with standard \multicolumn - \sphinx@multiwidth\@gobble{#1/#2}% - \fi - \else % single column multirow - \ifx\TY@final\@undefined % not a tabulary. - \ifdim\baselineskip>\z@ - % in a p{..} type column, \linewidth is the target box width - \linewidth - \else - % l, c, r columns. Do our best. - \dimexpr(\linewidth-\arrayrulewidth)/#2- - \tw@\tabcolsep-\arrayrulewidth\relax - \fi - \else % in tabulary - \ifx\equation$%$% first pass - \tymax % it is set to a big value so that paragraphs can express themselves - \else - % second pass. - \ifdim\baselineskip>\z@ - \linewidth % in a L, R, C, J column or a p, \X, \Y ... - \else - % we have hacked \TY@final to put in \sphinx@TY@tablewidth the table width - \dimexpr(\sphinx@TY@tablewidth-\arrayrulewidth)/#2- - \tw@\tabcolsep-\arrayrulewidth\relax - \fi - \fi - \fi - \fi -}% -% fallback default in case user has set latex_use_latex_multicolumn to True: -% \sphinxcolwidth will use this only inside LaTeX's standard \multicolumn -\def\sphinx@multiwidth #1#2{\dimexpr % #1 to gobble the \@gobble (!) - (\ifx\TY@final\@undefined\linewidth\else\sphinx@TY@tablewidth\fi - -\arrayrulewidth)*#2-\tw@\tabcolsep-\arrayrulewidth\relax}% -% -% --- MULTIROW --- -% standard \multirow -% 1. does not allow verbatim contents, -% 2. does not allow blank lines in its argument, -% 3. its * specifier means to typeset "horizontally" which is very -% bad for paragraph content. 2016 version has = specifier but it -% must be used with p type columns only, else results are bad, -% 4. it requires manual intervention if the contents is too long to fit -% in the asked-for number of rows. -% 5. colour panels (either from \rowcolor or \columncolor) will hide -% the bottom part of multirow text, hence manual tuning is needed -% to put the multirow insertion at the _bottom_. -% -% The Sphinx solution consists in always having contents wrapped -% in a varwidth environment so that it makes sense to estimate how many -% lines it will occupy, and then ensure by insertion of suitable struts -% that the table rows have the needed height. The needed mark-up is done -% by LaTeX writer, which has its own id for the merged cells. -% -% The colour issue is solved by clearing colour panels in all cells, -% whether or not the multirow is single-column or multi-column. -% -% In passing we obtain baseline alignements across rows (only if -% \arraylinestretch is 1, as LaTeX's does not obey \arraylinestretch in "p" -% multi-line contents, only first and last line...) -% -% TODO: examine the situation with \arraylinestretch > 1. The \extrarowheight -% is hopeless for multirow anyhow, it makes baseline alignment strictly -% impossible. -\newcommand\sphinxmultirow[2]{\begingroup - % #1 = nb of spanned rows, #2 = Sphinx id of "cell", #3 = contents - % but let's fetch #3 in a way allowing verbatim contents ! - \def\sphinx@nbofrows{#1}\def\sphinx@cellid{#2}% - \afterassignment\sphinx@multirow\let\next= -}% -\def\sphinx@multirow {% - \setbox\z@\hbox\bgroup\aftergroup\sphinx@@multirow\strut -}% -\def\sphinx@@multirow {% - % The contents, which is a varwidth environment, has been captured in - % \box0 (a \hbox). - % We have with \sphinx@cellid an assigned unique id. The goal is to give - % about the same height to all the involved rows. - % For this Sphinx will insert a \sphinxtablestrut{cell_id} mark-up - % in LaTeX file and the expansion of the latter will do the suitable thing. - \dimen@\dp\z@ - \dimen\tw@\ht\@arstrutbox - \advance\dimen@\dimen\tw@ - \advance\dimen\tw@\dp\@arstrutbox - \count@=\dimen@ % type conversion dim -> int - \count\tw@=\dimen\tw@ - \divide\count@\count\tw@ % TeX division truncates - \advance\dimen@-\count@\dimen\tw@ - % 1300sp is about 0.02pt. For comparison a rule default width is 0.4pt. - % (note that if \count@ holds 0, surely \dimen@>1300sp) - \ifdim\dimen@>1300sp \advance\count@\@ne \fi - % now \count@ holds the count L of needed "lines" - % and \sphinx@nbofrows holds the number N of rows - % we have L >= 1 and N >= 1 - % if L is a multiple of N, ... clear what to do ! - % else write L = qN + r, 1 <= r < N and we will - % arrange for each row to have enough space for: - % q+1 "lines" in each of the first r rows - % q "lines" in each of the (N-r) bottom rows - % for a total of (q+1) * r + q * (N-r) = q * N + r = L - % It is possible that q == 0. - \count\tw@\count@ - % the TeX division truncates - \divide\count\tw@\sphinx@nbofrows\relax - \count4\count\tw@ % q - \multiply\count\tw@\sphinx@nbofrows\relax - \advance\count@-\count\tw@ % r - \expandafter\xdef\csname sphinx@tablestrut_\sphinx@cellid\endcsname - {\noexpand\sphinx@tablestrut{\the\count4}{\the\count@}{\sphinx@cellid}}% - \dp\z@\z@ - % this will use the real height if it is >\ht\@arstrutbox - \sphinxtablestrut{\sphinx@cellid}\box\z@ - \endgroup % group was opened in \sphinxmultirow -}% -\newcommand*\sphinxtablestrut[1]{% - % #1 is a "cell_id", i.e. the id of a merged group of table cells - \csname sphinx@tablestrut_#1\endcsname -}% -% LaTeX typesets the table row by row, hence each execution can do -% an update for the next row. -\newcommand*\sphinx@tablestrut[3]{\begingroup - % #1 = q, #2 = (initially) r, #3 = cell_id, q+1 lines in first r rows - % if #2 = 0, create space for max(q,1) table lines - % if #2 > 0, create space for q+1 lines and decrement #2 - \leavevmode - \count@#1\relax - \ifnum#2=\z@ - \ifnum\count@=\z@\count@\@ne\fi - \else - % next row will be with a #2 decremented by one - \expandafter\xdef\csname sphinx@tablestrut_#3\endcsname - {\noexpand\sphinx@tablestrut{#1}{\the\numexpr#2-\@ne}{#3}}% - \advance\count@\@ne - \fi - \vrule\@height\ht\@arstrutbox - \@depth\dimexpr\count@\ht\@arstrutbox+\count@\dp\@arstrutbox-\ht\@arstrutbox\relax - \@width\z@ - \endgroup - % we need this to avoid colour panels hiding bottom parts of multirow text - \sphinx@hack@CT -}% -\endinput -%% -%% End of file `sphinxmulticell.sty'. diff --git a/doc/build/latex/tabulary.sty b/doc/build/latex/tabulary.sty deleted file mode 100644 index ba83c0a..0000000 --- a/doc/build/latex/tabulary.sty +++ /dev/null @@ -1,452 +0,0 @@ -%% -%% This is file `tabulary.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% tabulary.dtx (with options: `package') -%% DRAFT VERSION -%% -%% File `tabulary.dtx'. -%% Copyright (C) 1995 1996 2003 David Carlisle -%% This file may be distributed under the terms of the LPPL. -%% See 00readme.txt for details. -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tabulary} - [2007/10/02 v0.9 tabulary package (DPC)] -\RequirePackage{array} -\catcode`\Z=14 -\DeclareOption{debugshow}{\catcode`\Z=9\relax} -\ProcessOptions -\def\arraybackslash{\let\\=\@arraycr} -\def\@finalstrut#1{% - \unskip\ifhmode\nobreak\fi\vrule\@width\z@\@height\z@\@depth\dp#1} -\newcount\TY@count -\def\tabulary{% - \let\TY@final\tabular - \let\endTY@final\endtabular - \TY@tabular} -\def\TY@tabular#1{% - \edef\TY@{\@currenvir}% - {\ifnum0=`}\fi - \@ovxx\TY@linewidth - \@ovyy\TY@tablewidth - \count@\z@ - \@tempswatrue - \@whilesw\if@tempswa\fi{% - \advance\count@\@ne - \expandafter\ifx\csname TY@F\the\count@\endcsname\relax - \@tempswafalse - \else - \expandafter\let\csname TY@SF\the\count@\expandafter\endcsname - \csname TY@F\the\count@\endcsname - \global\expandafter\let\csname TY@F\the\count@\endcsname\relax - \expandafter\let\csname TY@S\the\count@\expandafter\endcsname - \csname TY@\the\count@\endcsname - \fi}% - \global\TY@count\@ne - \TY@width\xdef{0pt}% - \global\TY@tablewidth\z@ - \global\TY@linewidth#1\relax -Z\message{^^J^^JTable^^J% -Z Target Width: \the\TY@linewidth^^J% -Z \string\tabcolsep: \the\tabcolsep\space -Z \string\arrayrulewidth: \the\arrayrulewidth\space -Z \string\doublerulesep: \the\doublerulesep^^J% -Z \string\tymin: \the\tymin\space -Z \string\tymax: \the\tymax^^J}% - \let\@classz\TY@classz - \let\verb\TX@verb - \toks@{}\TY@get@body} -\let\TY@@mkpream\@mkpream -\def\TY@mkpream{% - \def\@addamp{% - \if@firstamp \@firstampfalse \else - \global\advance\TY@count\@ne - \edef\@preamble{\@preamble &}\fi - \TY@width\xdef{0pt}}% - \def\@acol{% - \TY@subwidth\col@sep - \@addtopreamble{\hskip\col@sep}}% - \let\@arrayrule\TY@arrayrule - \let\@classvi\TY@classvi - \def\@classv{\save@decl - \expandafter\NC@ecs\@nextchar\extracolsep{}\extracolsep\@@@ - \sbox\z@{\d@llarbegin\@nextchar\d@llarend}% - \TY@subwidth{\wd\z@}% - \@addtopreamble{\d@llarbegin\the@toks\the\count@\relax\d@llarend}% - \prepnext@tok}% - \global\let\@mkpream\TY@@mkpream - \TY@@mkpream} -\def\TY@arrayrule{% - \TY@subwidth\arrayrulewidth - \@addtopreamble \vline} -\def\TY@classvi{\ifcase \@lastchclass - \@acol \or - \TY@subwidth\doublerulesep - \@addtopreamble{\hskip \doublerulesep}\or - \@acol \or - \@classvii - \fi} -\def\TY@tab{% - \setbox\z@\hbox\bgroup - \let\[$\let\]$% - \let\equation$\let\endequation$% - \col@sep\tabcolsep - \let\d@llarbegin\begingroup\let\d@llarend\endgroup - \let\@mkpream\TY@mkpream - \def\multicolumn##1##2##3{\multispan##1\relax}% - \CT@start\TY@tabarray} -\def\TY@tabarray{\@ifnextchar[{\TY@array}{\@array[t]}} -\def\TY@array[#1]{\@array[t]} -\def\TY@width#1{% - \expandafter#1\csname TY@\the\TY@count\endcsname} -\def\TY@subwidth#1{% - \TY@width\dimen@ - \advance\dimen@-#1\relax - \TY@width\xdef{\the\dimen@}% - \global\advance\TY@linewidth-#1\relax} -\def\endtabulary{% - \gdef\@halignto{}% - \let\TY@footnote\footnote% - \def\footnote{}% prevent footnotes from doing anything - \expandafter\TY@tab\the\toks@ - \crcr\omit - {\xdef\TY@save@row{}% - \loop - \advance\TY@count\m@ne - \ifnum\TY@count>\z@ - \xdef\TY@save@row{\TY@save@row&\omit}% - \repeat}\TY@save@row - \endarray\global\setbox1=\lastbox\setbox0=\vbox{\unvbox1 - \unskip\global\setbox1=\lastbox}\egroup - \dimen@\TY@linewidth - \divide\dimen@\TY@count - \ifdim\dimen@<\tymin - \TY@warn{tymin too large (\the\tymin), resetting to \the\dimen@}% - \tymin\dimen@ - \fi - \setbox\tw@=\hbox{\unhbox\@ne - \loop -\@tempdima=\lastskip -\ifdim\@tempdima>\z@ -Z \message{ecs=\the\@tempdima^^J}% - \global\advance\TY@linewidth-\@tempdima -\fi - \unskip - \setbox\tw@=\lastbox - \ifhbox\tw@ -Z \message{Col \the\TY@count: Initial=\the\wd\tw@\space}% - \ifdim\wd\tw@>\tymax - \wd\tw@\tymax -Z \message{> max\space}% -Z \else -Z \message{ \@spaces\space}% - \fi - \TY@width\dimen@ -Z \message{\the\dimen@\space}% - \advance\dimen@\wd\tw@ -Z \message{Final=\the\dimen@\space}% - \TY@width\xdef{\the\dimen@}% - \ifdim\dimen@<\tymin -Z \message{< tymin}% - \global\advance\TY@linewidth-\dimen@ - \expandafter\xdef\csname TY@F\the\TY@count\endcsname - {\the\dimen@}% - \else - \expandafter\ifx\csname TY@F\the\TY@count\endcsname\z@ -Z \message{***}% - \global\advance\TY@linewidth-\dimen@ - \expandafter\xdef\csname TY@F\the\TY@count\endcsname - {\the\dimen@}% - \else -Z \message{> tymin}% - \global\advance\TY@tablewidth\dimen@ - \global\expandafter\let\csname TY@F\the\TY@count\endcsname - \maxdimen - \fi\fi - \advance\TY@count\m@ne - \repeat}% - \TY@checkmin - \TY@checkmin - \TY@checkmin - \TY@checkmin - \TY@count\z@ - \let\TY@box\TY@box@v - \let\footnote\TY@footnote % restore footnotes - {\expandafter\TY@final\the\toks@\endTY@final}% - \count@\z@ - \@tempswatrue - \@whilesw\if@tempswa\fi{% - \advance\count@\@ne - \expandafter\ifx\csname TY@SF\the\count@\endcsname\relax - \@tempswafalse - \else - \global\expandafter\let\csname TY@F\the\count@\expandafter\endcsname - \csname TY@SF\the\count@\endcsname - \global\expandafter\let\csname TY@\the\count@\expandafter\endcsname - \csname TY@S\the\count@\endcsname - \fi}% - \TY@linewidth\@ovxx - \TY@tablewidth\@ovyy - \ifnum0=`{\fi}} -\def\TY@checkmin{% - \let\TY@checkmin\relax -\ifdim\TY@tablewidth>\z@ - \Gscale@div\TY@ratio\TY@linewidth\TY@tablewidth - \ifdim\TY@tablewidth <\linewidth - \def\TY@ratio{1}% - \fi -\else - \TY@warn{No suitable columns!}% - \def\TY@ratio{1}% -\fi -\count@\z@ -Z \message{^^JLine Width: \the\TY@linewidth, -Z Natural Width: \the\TY@tablewidth, -Z Ratio: \TY@ratio^^J}% -\@tempdima\z@ -\loop -\ifnum\count@<\TY@count -\advance\count@\@ne - \ifdim\csname TY@F\the\count@\endcsname>\tymin - \dimen@\csname TY@\the\count@\endcsname - \dimen@\TY@ratio\dimen@ - \ifdim\dimen@<\tymin -Z \message{Column \the\count@\space ->}% - \global\expandafter\let\csname TY@F\the\count@\endcsname\tymin - \global\advance\TY@linewidth-\tymin - \global\advance\TY@tablewidth-\csname TY@\the\count@\endcsname - \let\TY@checkmin\TY@@checkmin - \else - \expandafter\xdef\csname TY@F\the\count@\endcsname{\the\dimen@}% - \advance\@tempdima\csname TY@F\the\count@\endcsname - \fi - \fi -Z \dimen@\csname TY@F\the\count@\endcsname\message{\the\dimen@, }% -\repeat -Z \message{^^JTotal:\the\@tempdima^^J}% -} -\let\TY@@checkmin\TY@checkmin -\newdimen\TY@linewidth -\def\tyformat{\everypar{{\nobreak\hskip\z@skip}}} -\newdimen\tymin -\tymin=10pt -\newdimen\tymax -\tymax=2\textwidth -\def\@testpach{\@chclass - \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else - \ifnum \@lastchclass=7 5 \else - \ifnum \@lastchclass=8 \tw@ \else - \ifnum \@lastchclass=9 \thr@@ - \else \z@ - \ifnum \@lastchclass = 10 \else - \edef\@nextchar{\expandafter\string\@nextchar}% - \@chnum - \if \@nextchar c\z@ \else - \if \@nextchar l\@ne \else - \if \@nextchar r\tw@ \else - \if \@nextchar C7 \else - \if \@nextchar L8 \else - \if \@nextchar R9 \else - \if \@nextchar J10 \else - \z@ \@chclass - \if\@nextchar |\@ne \else - \if \@nextchar !6 \else - \if \@nextchar @7 \else - \if \@nextchar <8 \else - \if \@nextchar >9 \else - 10 - \@chnum - \if \@nextchar m\thr@@\else - \if \@nextchar p4 \else - \if \@nextchar b5 \else - \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi - \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi} -\def\TY@classz{% - \@classx - \@tempcnta\count@ - \ifx\TY@box\TY@box@v - \global\advance\TY@count\@ne - \fi - \let\centering c% - \let\raggedright\noindent - \let\raggedleft\indent - \let\arraybackslash\relax - \prepnext@tok - \ifnum\@chnum<4 - \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@ - \fi - \ifnum\@chnum=6 - \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@ - \fi - \@addtopreamble{% - \ifcase\@chnum - \hfil \d@llarbegin\insert@column\d@llarend \hfil \or - \kern\z@ - \d@llarbegin \insert@column \d@llarend \hfil \or - \hfil\kern\z@ \d@llarbegin \insert@column \d@llarend \or - $\vcenter\@startpbox{\@nextchar}\insert@column \@endpbox $\or - \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or - \vbox \@startpbox{\@nextchar}\insert@column \@endpbox \or - \d@llarbegin \insert@column \d@llarend \or% dubious "s" case - \TY@box\centering\or - \TY@box\raggedright\or - \TY@box\raggedleft\or - \TY@box\relax - \fi}\prepnext@tok} -\def\TY@box#1{% - \ifx\centering#1% - \hfil \d@llarbegin\insert@column\d@llarend \hfil \else - \ifx\raggedright#1% - \kern\z@%<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< - \d@llarbegin \insert@column \d@llarend \hfil \else - \ifx\raggedleft#1% - \hfil\kern\z@ \d@llarbegin \insert@column \d@llarend \else - \ifx\relax#1% - \d@llarbegin \insert@column \d@llarend - \fi \fi \fi \fi} -\def\TY@box@v#1{% - \vtop \@startpbox{\csname TY@F\the\TY@count\endcsname}% - #1\arraybackslash\tyformat - \insert@column\@endpbox} -\newdimen\TY@tablewidth -\def\Gscale@div#1#2#3{% - \setlength\dimen@{#3}% - \ifdim\dimen@=\z@ - \PackageError{graphics}{Division by 0}\@eha - \dimen@#2% - \fi - \edef\@tempd{\the\dimen@}% - \setlength\dimen@{#2}% - \count@65536\relax - \ifdim\dimen@<\z@ - \dimen@-\dimen@ - \count@-\count@ - \fi - \loop - \ifdim\dimen@<8192\p@ - \dimen@\tw@\dimen@ - \divide\count@\tw@ - \repeat - \dimen@ii=\@tempd\relax - \divide\dimen@ii\count@ - \divide\dimen@\dimen@ii - \edef#1{\strip@pt\dimen@}} -\long\def\TY@get@body#1\end - {\toks@\expandafter{\the\toks@#1}\TY@find@end} -\def\TY@find@end#1{% - \def\@tempa{#1}% - \ifx\@tempa\TY@\def\@tempa{\end{#1}}\expandafter\@tempa - \else\toks@\expandafter - {\the\toks@\end{#1}}\expandafter\TY@get@body\fi} -\def\TY@warn{% - \PackageWarning{tabulary}} -\catcode`\Z=11 -\AtBeginDocument{ -\@ifpackageloaded{colortbl}{% -\expandafter\def\expandafter\@mkpream\expandafter#\expandafter1% - \expandafter{% - \expandafter\let\expandafter\CT@setup\expandafter\relax - \expandafter\let\expandafter\CT@color\expandafter\relax - \expandafter\let\expandafter\CT@do@color\expandafter\relax - \expandafter\let\expandafter\color\expandafter\relax - \expandafter\let\expandafter\CT@column@color\expandafter\relax - \expandafter\let\expandafter\CT@row@color\expandafter\relax - \@mkpream{#1}} -\let\TY@@mkpream\@mkpream -\def\TY@classz{% - \@classx - \@tempcnta\count@ - \ifx\TY@box\TY@box@v - \global\advance\TY@count\@ne - \fi - \let\centering c% - \let\raggedright\noindent - \let\raggedleft\indent - \let\arraybackslash\relax - \prepnext@tok -\expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil - \ifnum\@chnum<4 - \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@ - \fi - \ifnum\@chnum=6 - \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@ - \fi - \@addtopreamble{% - \setbox\z@\hbox\bgroup\bgroup - \ifcase\@chnum - \hskip\stretch{.5}\kern\z@ - \d@llarbegin\insert@column\d@llarend\hskip\stretch{.5}\or - \kern\z@%<<<<<<<<<<<<<<<<<<<<<<<<<<< - \d@llarbegin \insert@column \d@llarend \hfill \or - \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or - $\vcenter\@startpbox{\@nextchar}\insert@column \@endpbox $\or - \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or - \vbox \@startpbox{\@nextchar}\insert@column \@endpbox \or - \d@llarbegin \insert@column \d@llarend \or% dubious s case - \TY@box\centering\or - \TY@box\raggedright\or - \TY@box\raggedleft\or - \TY@box\relax - \fi - \egroup\egroup -\begingroup - \CT@setup - \CT@column@color - \CT@row@color - \CT@do@color -\endgroup - \@tempdima\ht\z@ - \advance\@tempdima\minrowclearance - \vrule\@height\@tempdima\@width\z@ -\unhbox\z@ -}\prepnext@tok}% - \def\TY@arrayrule{% - \TY@subwidth\arrayrulewidth - \@addtopreamble{{\CT@arc@\vline}}}% - \def\TY@classvi{\ifcase \@lastchclass - \@acol \or - \TY@subwidth\doublerulesep - \ifx\CT@drsc@\relax - \@addtopreamble{\hskip\doublerulesep}% - \else - \@addtopreamble{{\CT@drsc@\vrule\@width\doublerulesep}}% - \fi\or - \@acol \or - \@classvii - \fi}% -}{% -\let\CT@start\relax -} -} -{\uccode`\*=`\ % -\uppercase{\gdef\TX@verb{% - \leavevmode\null\TX@vwarn - {\ifnum0=`}\fi\ttfamily\let\\\ignorespaces - \@ifstar{\let~*\TX@vb}{\TX@vb}}}} -\def\TX@vb#1{\def\@tempa##1#1{\toks@{##1}\edef\@tempa{\the\toks@}% - \expandafter\TX@v\meaning\@tempa\\ \\\ifnum0=`{\fi}}\@tempa!} -\def\TX@v#1!{\afterassignment\TX@vfirst\let\@tempa= } -\begingroup -\catcode`\*=\catcode`\# -\catcode`\#=12 -\gdef\TX@vfirst{% - \if\@tempa#% - \def\@tempb{\TX@v@#}% - \else - \let\@tempb\TX@v@ - \if\@tempa\space~\else\@tempa\fi - \fi - \@tempb} -\gdef\TX@v@*1 *2{% - \TX@v@hash*1##\relax\if*2\\\else~\expandafter\TX@v@\fi*2} -\gdef\TX@v@hash*1##*2{*1\ifx*2\relax\else#\expandafter\TX@v@hash\fi*2} -\endgroup -\def\TX@vwarn{% - \@warning{\noexpand\verb may be unreliable inside tabularx/y}% - \global\let\TX@vwarn\@empty} -\endinput -%% -%% End of file `tabulary.sty'. diff --git a/doc/src/conf.py b/doc/src/conf.py index 7888880..c315a0e 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -16,7 +16,7 @@ import os # Append source folder to path in order to enable autodoc currentPath = os.path.dirname(__file__) -print("sphinx on file %s" % __file__= +print("sphinx on file %s" % __file__) dirAutodoc = os.path.realpath(os.path.join(currentPath, '..', '..')) print("autodoc on dir %s" % dirAutodoc) sys.path.append(dirAutodoc) diff --git a/pdf/salomeTools.pdf b/pdf/salomeTools.pdf new file mode 100644 index 0000000..649815d Binary files /dev/null and b/pdf/salomeTools.pdf differ diff --git a/src/compilation.py b/src/compilation.py index e958f9c..f8a0630 100644 --- a/src/compilation.py +++ b/src/compilation.py @@ -436,6 +436,10 @@ CC=\\"hack_libtool\\"%g" libtool''' self.build_environ.set("DIST_VERSION", self.config.VARS.dist_version) self.build_environ.set("DIST", self.config.VARS.dist) self.build_environ.set("VERSION", self.product_info.version) + # if product is in hpc mode, set SAT_HPC to 1 + # in order for the compilation script to take it into account + if src.product.product_is_hpc(self.product_info): + self.build_environ.set("SAT_HPC", "1") def do_batch_script_build(self, script, nb_proc): diff --git a/src/fork.py b/src/fork.py index a3061ae..aa239de 100644 --- a/src/fork.py +++ b/src/fork.py @@ -162,7 +162,7 @@ def batch_salome(cmd, logger, cwd, args, getTmpDir, if found: logger.write("\nbatch_salome: supposed started\n", 5) else: - logger.write("\nbatch_salome: seems FAILED to launch salome or appli\n" % foundSalome, 3) + logger.write("\nbatch_salome: seems FAILED to launch salome or appli : %s\n" % foundSalome, 3) return False, -1 # salome launched run the script diff --git a/src/product.py b/src/product.py index 31f8658..f8fcb93 100644 --- a/src/product.py +++ b/src/product.py @@ -55,12 +55,13 @@ def get_product_config(config, product_name, with_install_dir=True): # current product debug = 'no' dev = 'no' + hpc = 'no' verbose = 'no' base = 'maybe' section = None # if no version, then take the default one defined in the application - if isinstance(version, bool): + if isinstance(version, bool) or isinstance(version, str): # in this case tag is mandatory, not debug, verbose, dev version = config.APPLICATION.tag if 'debug' in config.APPLICATION: @@ -69,7 +70,9 @@ def get_product_config(config, product_name, with_install_dir=True): verbose = config.APPLICATION.verbose if 'dev' in config.APPLICATION: dev = config.APPLICATION.dev - + if 'hpc' in config.APPLICATION: + hpc = config.APPLICATION.hpc + if isinstance(version, src.pyconf.Mapping): dic_version = version # Get the version/tag @@ -96,6 +99,12 @@ def get_product_config(config, product_name, with_install_dir=True): elif 'dev' in config.APPLICATION: dev = config.APPLICATION.dev + # Get the hpc if any + if 'hpc' in dic_version: + hpc = dic_version.hpc + elif 'hpc' in config.APPLICATION: + hpc = config.APPLICATION.hpc + # Get the base if any if 'base' in dic_version: base = dic_version.base @@ -131,6 +140,12 @@ def get_product_config(config, product_name, with_install_dir=True): elif 'dev' in config.APPLICATION: dev = config.APPLICATION.dev + # Get the hpc if any + if 'hpc' in dic_version: + hpc = dic_version.hpc + elif 'hpc' in config.APPLICATION: + hpc = config.APPLICATION.hpc + # Get the base if any if 'base' in dic_version: base = dic_version["base"] @@ -228,6 +243,7 @@ Please add a section in it.""") % {"1" : vv, "2" : prod_pyconf_path} prod_info.debug = debug prod_info.verbose = verbose prod_info.dev = dev + prod_info.hpc = hpc prod_info.version = version # Set the archive_info if the product is get in archive mode @@ -822,6 +838,18 @@ def product_is_dev(product_info): # if product_info.name == "XDATA": return True #test #10569 return res +def product_is_hpc(product_info): + """Know if a product is in hpc mode + + :param product_info Config: The configuration specific to + the product + :return: True if the product is in hpc mode, else False + :rtype: boolean + """ + hpc = product_info.hpc + res = (hpc.lower() == 'yes') + return res + def product_is_debug(product_info): """Know if a product is in debug mode