from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_tally = [ ConfigOption( "TALLY_HOST", "None", "Tally hostname" ), ConfigOption( "TALLY_PORT", "9002", "Tally port" ), ConfigOption( "TALLY_CACHE", "os.path.join(SHAREDCACHE_ROOT, 'tally')", "Tally cache folder" ) ] def load(manager): logger.debug("Loading {0}".format(__name__)) manager.load_elements(config_elements_tally,
# # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. """ Paths Configuration Options =========================== """ from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_paths = [ ConfigOption('DOCSTORE_ROOT', "os.path.join(INSTANCE_ROOT, 'docstore')", "Folder for the docstore filesystem"), ConfigOption('REFDOC_ROOT', "os.path.join(INSTANCE_ROOT, 'refdocs')", "Folder for the refdocs filesystem"), ConfigOption( 'INSTANCE_CACHE', "os.path.join(INSTANCE_ROOT, 'cache')", "Folder within which the tendril instance should store it's cache(s)." "Make sure the the users running tendril (as well as the webserver, " "if the web frontend is being used) have write access to this folder." ), ConfigOption('SHAREDCACHE_ROOT', "os.path.join(INSTANCE_CACHE, 'shared')", "Folder for the shared cache filesystem"), ConfigOption( 'AUDIT_PATH', "os.path.join(INSTANCE_ROOT, 'manual-audit')", "Folder where files generated for manual audit should be stored"), ConfigOption( 'SVN_ROOT', "os.path.join(INSTANCE_ROOT, 'projects')",
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_currency = [ ConfigOption( 'BASE_CURRENCY', "'INR'", "The code for the base currency." ), ConfigOption( 'BASE_CURRENCY_SYMBOL', "'INR '", "The symbol for the base currency." ), ConfigOption( 'BASE_CURRENCY_NAME', "'Indian Rupees'", "The name of the base currency when used with num2words.", ), ConfigOption( 'BASE_CURRENCY_LANG', "'en_IN'", "The language to use for the base currency when used with num2words." ), ConfigOption(
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_eda = [ ConfigOption( 'EDA_LIBRARY_FUSION', "True", "Whether to attempt fusion of multiple EDA symbol libraries. " "If True, will return symbols from the first library in the priority " "order within which a suitable candidate is found. If False, will " "only return symbols from the first library in the priority order."), ConfigOption('EDA_LIBRARY_PRIORITY', "['geda']", "Priority order for the EDA symbol libraries.") ] def load(manager): logger.debug("Loading {0}".format(__name__)) manager.load_elements(config_elements_eda, doc="EDA Subsystem Configuration")
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_cad = [ ConfigOption( 'CAD_LIBRARY_FUSION', "True", "Whether to attempt fusion of multiple CAD libraries. " "If True, will return symbols from the first library in the priority " "order within which a suitable candidate is found. If False, will " "only return symbols from the first library in the priority order."), ConfigOption('CAD_LIBRARY_PRIORITY', "['manual']", "Priority order for the CAD asset libraries."), ConfigOption('CAD_MANUAL_LIBRARY_PATH', "os.path.join(INSTANCE_ROOT, 'cad')", "The folder containing your manually created CAD data."), ConfigOption( 'CAD_MANUAL_MATERIALS_LIBRARY_PATH', "os.path.join(CAD_MANUAL_LIBRARY_PATH, 'materials')", "The folder containing your manually created CAD material definitions." ), ConfigOption( 'CAD_MANUAL_PSL_LIBRARY_PATH', "os.path.join(CAD_MANUAL_LIBRARY_PATH, 'psl')", "The folder containing your manually created CAD asset references."), ] def load(manager):
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_geda = [ ConfigOption('GEDA_SCHEME_DIR', "'/usr/share/gEDA/scheme'", "The 'scheme' directory of the gEDA installation to use."), ConfigOption( "USE_SYSTEM_GAF_BIN", "True", "Whether to use the gEDA binary located in system PATH. This config " "option is present to allow you to switch the gEDA instance tendril " "uses from your system default to a manually installed later version." "In order to generate schematic PDFs on a headless install, you need " "to have a version of gEDA that includes the `gaf` tool."), ConfigOption( "GEDA_HAS_GAF", "True", "Whether you have a version of gEDA which includes the gaf utility. " "If it doesn't, we'll try to use gschem instead."), ConfigOption( 'GAF_BIN_ROOT', "None", "If system gEDA binaries are not to be used, specify the path to the " "'bin' folder where the correct 'gEDA' binaries go."), ConfigOption( 'GAF_ROOT', "os.path.join(os.path.expanduser('~'), 'gEDA2')", "The path to your gEDA gaf folder (named per the gEDA quickstart " "tutorial), within which you have your symbols, footprints, etc. "), ConfigOption('GEDA_SYMLIB_ROOT', "os.path.join(GAF_ROOT, 'symbols')", "The folder containing your gEDA symbols."),
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_network_caching = [ ConfigOption('ENABLE_REDIRECT_CACHING', "True", "Whether or not to cache 301 and 302 redirects."), ConfigOption('MAX_AGE_DEFAULT', '600000', 'Default max_age for data originating from www.'), ] config_elements_proxy = [ ConfigOption( 'NETWORK_PROXY_TYPE', "None", "The type of proxy to use. 'http' for squid/http, 'None' for none." "No other proxy types presently supported."), ConfigOption('NETWORK_PROXY_IP', "None", "The proxy server IP address."), ConfigOption('NETWORK_PROXY_PORT', "3128", "The proxy server port."), ConfigOption('NETWORK_PROXY_USER', "None", "The username to authenticate with the proxy server."), ConfigOption('NETWORK_PROXY_PASS', "None", "The password to authenticate with the proxy server."), ] def load(manager): logger.debug("Loading {0}".format(__name__)) manager.load_elements(config_elements_network_caching, doc="Network Caching Behavior Configuration")
from tendril.utils.config import ConfigOption from tendril.utils import log logger = log.get_logger(__name__, log.DEFAULT) depends = ['tendril.config.core'] config_elements_epdm = [ ConfigOption("EPDM_HOST", "None", "EPDM hostname"), ConfigOption("EPDM_USERNAME", "''", "Username to use to connect to EPDM"), ConfigOption("EPDM_PASSWORD", "''", "Password to use to connect to EPDM") ] def load(manager): logger.debug("Loading {0}".format(__name__)) manager.load_elements(config_elements_epdm, doc="EPDM Connector Configuration")