Package XPyLIB :: Module misc
[hide private]
[frames] | no frames]

Module misc

source code

Miscilaneous functions.

Functions [hide private]
dict
getConfigParserOptions(sec, cp, raw=0)
Return readed options and it's values in dictionary.
source code
object
resolveName(name)
Resolve a dotted name to a global object.
source code
Function Details [hide private]

getConfigParserOptions(sec, cp, raw=0)

source code 

Return readed options and it's values in dictionary.

If such section is absent then return empty dict.
Parameters:
  • sec (str) - Section name.
  • cp (ConfigParser) - Config parser instance.
  • raw (int = {0}) - Raw mode for get in ConfigParser.
Returns: dict
Dictionary with options and values.

resolveName(name)

source code 
Resolve a dotted name to a global object.
Parameters:
  • name (str) - Dotted name for resolve.
Returns: object
resolved and if need imported object.