Functions
|
|
|
|
URIHasServerName
|
URIHasServerName ( URI )
Returns True if the URI is containing a server name, False otherwise.
|
|
convert
|
convert (
text,
encoding_from,
encoding_to,
)
Converts text , encoded in encoding_from to the encoding encoding_to .
returns the text converted into encoding_to (if necessary) or raise an exception if something weird happened
text : a string containing the text to convert
encoding_from : a string containing the encoding of the text to convert
encoding_to : a string containing the encoding to convert the text to
|
|
getDict
|
getDict ( fichier_string, encoding=DEFAULT_ENCODING )
Returns the dict by calling the recursive method recurse_getDict.
|
|
getInvalidMsg
|
getInvalidMsg (
server='',
port='',
username='',
password='',
encoding='',
)
Verifies if the parameters passed to create or modify an eXistDA object are valid for use. Not all is verified...
|
|
getRscNameFromURI
|
getRscNameFromURI ( URI )
Get the resource name from an URI.
|
|
getServerNameFromURI
|
getServerNameFromURI ( URI )
Get the server name from an URI.
|
|
hasExpat
|
hasExpat ()
Returns True if Expat module is available
|
|
hasXSLTProc
|
hasXSLTProc ()
Returns True is xsltproc is installed and in the path
|
|
is4SuiteAvailable
|
is4SuiteAvailable ()
Returns 1 if 4Suite can be used to make external XSLT, 0 otherwise.
|
|
isFileURI
|
isFileURI ( URI )
Verifies if URI is a file URI (ie beggining with HEADER_FILE_URI).
|
|
isHTTPURI
|
isHTTPURI ( URI )
Verifies if URI is an HTTP URI (ie beggining with HEADER_HTTP_URI ).
|
|
iseXistURI
|
iseXistURI ( URI )
Verifies if URI is an eXist URI (ie beggining with HEADER_EXIST_URI).
|
|
mergeDict
|
mergeDict ( dict1, dict2 )
Returns a new dictionary by merging dict1 and dict2 .
WARNING : the two dicts must have the same structure ! If 'dict1["my_key"] and dict2["my_key"] exist and don't have the same type of value,
an error will be raised.
|
|
recurse_getDict
|
recurse_getDict (
noeud,
encoding,
lst_nom_noeuds,
cedico,
)
Returns a part of a dict which keys are XML tags and their values.
|
Classes
|
|
XMLToDict |
Class implementing expat parser to map an XML string to a python dictionary
|
|