4Suite
™
API Documentation
►
Module
Ft
.
Server
.
Server
.
Lib
.ConfigFile
Processing of the global 4Suite repository config file, for aggregation in Ft.Server.Server.GlobalConfig
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Functions:
GetFileName
,
Read
,
ReadBerkeleyDBDriver
,
ReadConfigFile
,
ReadCore
,
ReadDriver
,
ReadFlatFileDriver
,
ReadMetaKitDriver
,
ReadMySQLDriver
,
ReadOdbcDriver
,
ReadOracleDriver
,
ReadPostgresDriver
,
ReadProperties
,
ReadProperty
,
ReadPsycoDriver
Fields:
CONFIG_MODEL_BASE
,
RDF_MS_BASE
,
RDF_SCHEMA_BASE
,
SQL_ID_REGEX
Functions
GetFileName
(
fileName
)
Locate the config file
Read
(
fileName
=None
)
This function will find and read in the configuration file. It will return a dictionary where each entry is keyed by ID and the value is a dictionary that represents the values of that Core
ReadBerkeleyDBDriver
(
driverId
,
model
)
Read a BerkeleyDB driver configuration
ReadConfigFile
(
fileName
)
Load the RDF config file into a model
ReadCore
(
coreId
,
model
)
Read in a single Core resource
ReadDriver
(
driverId
,
model
)
Read a driver Entry
ReadFlatFileDriver
(
driverId
,
model
)
Read a FlatFile driver configuration
ReadMetaKitDriver
(
driverId
,
model
)
Read a MetaKit driver configuration
ReadMySQLDriver
(
driverId
,
model
)
Read a Postgres driver configuration
ReadOdbcDriver
(
driverId
,
model
)
Read an ODBC driver configuration
ReadOracleDriver
(
driverId
,
model
)
Read an Oracle driver configuration
ReadPostgresDriver
(
driverId
,
model
)
Read a Postgres driver configuration
ReadProperties
(
model
,
id
,
property
,
required
=1
)
ReadProperty
(
model
,
id
,
property
,
required
=1
)
ReadPsycoDriver
(
driverId
,
model
)
Read a Psyco driver configuration
Fields
CONFIG_MODEL_BASE
= 'http://xmlns.4suite.org/4ss/properties#'
RDF_MS_BASE
= 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
RDF_SCHEMA_BASE
= 'http://www.w3.org/2000/01/rdf-schema#'
SQL_ID_REGEX
= '[A-Za-z_\x80-\xff][A-Za-z_\x80-\xff0-9$]*'