# # -*- coding: utf-8 -*- # -------------------------------------------------------------------------------- # # NEEDS TO BE CHANGED FOR EVERY INSTALLATION !!! # # -------------------------------------------------------------------------------- # server name as seen from outside including the protocol ending without slash, e.g. http://www.bgbm.org host = 'http://localhost' # webserver path to the root directory of the biocase provider software (biocase/www) starting with a slash. webroot = '/biocase' # -------------------------------------------------------------------------------- # # NO NEEDS TO BE CHANGED # # -------------------------------------------------------------------------------- # the full absolute URL to the local pywrapper scripts PyWrapperURL = host + webroot + '/pywrapper.cgi' PySPICEURL = host + webroot + '/pyspice.cgi' # default http header http_header = 'Content-Type: text/html; charset=utf-8\n\n' # the name of the PSF file providersetupfile = 'provider_setup_file.xml' # encodings internalencoding = 'utf-8' outputencoding = 'utf-8' # list of known schemas / ontologies and their application-wide unique # prefixes namespacesByPrefix = dict( { 'x-cmf-1.1' : 'http://www.biocase.org/schemas/conceptmapping/1.1', 'x-cmf-1.4' : 'http://www.biocase.org/schemas/conceptmapping/1.4', 'x-cmf-2.0' : 'http://www.biocase.org/schemas/conceptmapping/2.0', 'x-cmf-2.1' : 'http://www.biocase.org/schemas/conceptmapping/2.1', }, xs = 'http://www.w3.org/2001/XMLSchema', xsi = 'http://www.w3.org/2001/XMLSchema-instance', psf14 = 'http://www.biocase.org/schemas/providersetup/1.4', psf15 = 'http://www.biocase.org/schemas/providersetup/1.5', abcd12 = 'http://www.tdwg.org/schemas/abcd/1.2', abcd206 = 'http://www.tdwg.org/schemas/abcd/2.06', african10 = 'http://www.rbgkew.org.uk/schemas/africantypes/1.0', darwin2 = 'http://www.namespaceTBD.org/darwin2', dbsync10 = 'http://www.biocase.org/schemas/dbsynchron/1.0', keywords10 = 'http://www.biocase.org/schemas/keywords/1.0', keywords12 = 'http://www.biocase.org/schemas/keywords/1.2', keywords13 = 'http://www.biocase.org/schemas/keywords/1.3', biocasemetaprofile124 = 'http://www.biocase.org/schemas/metaprofile/1.2', spice13 = 'http://www.sp2000.org/CDMSchema1.3', ) additionalGraphsourcesByPrefix = dict( bion = '$g.cfg.configurationLocator/configtool/bion.flow' ) additionalNamespacesByPrefix = dict( bion = 'http://www.biocase.org/schemas/bion/0' ) prefixesByNamespaces = {} for _prefix, _namespace in namespacesByPrefix.iteritems(): prefixesByNamespaces[ _namespace ] = _prefix for _prefix, _namespace in additionalNamespacesByPrefix.iteritems(): prefixesByNamespaces[ _namespace ] = _prefix namespacesByPrefix[ _prefix ] = _namespace