Module cfg
[hide private]
[frames] | no frames]

Module cfg

source code

Global configuration variables.

Classes [hide private]
  lock_list
Class target for easy multithreading access to variables (in list).
Variables [hide private]
  arguments = None
Arguments == sys.argv
  z_epdl = None
  z_epde = None
  z_epse = None
  Z_INEP = None
  z_outep = None
  Z_APP = None
Application.
  Z_GUI = None
GUI top frame.
  ISGUI = False
True if GUI used.
  PYBAG_COLORIZE = True
Colorize console output (default True).
  PYBAG_DEBUG = False
Debug mode.
  PYBAG_LOG = True
Logging mode.
  PYBAG_EMUL = True
Emulation mode.
  TSBAG = 0
Timeshift for bag.
  TSORIG = 0
Timeshift for origin.
  TSDIR = 0
Timeshift direction
  VERBOSE = 3
Verbosity level.
  BACKUPMODE = False
Backup mode in synchronization, normal.
  TIMEFORMAT = u'%Y-%m-%d %H:%M:%S'
  IMGINDEX = {}
Image list index for GUI
  WRITECOLSATEXIT = False
If true - write gui columns at exit in config.
  SHOWTIPS = 0
If true then show tips at start up.
  TIPSNUMBER = 0
Next tips index for show.
  Z_LISTKS = []
Temporary keys when update list filter.
  IsDBReaded = False
Flag marked if DB readed.
  IsDBCompared = False
Flag marked if DB compared.
  IsDBSynced = False
Flag marked if DB synchronized.
  Z_COLUMN_CHOISE_DEFAULT = [(u'err', u'Error', 0, 16, 2), (u'fo...
Columns in default order for GUI list.
  Z_COLUMN_CHOISE = []
Columns.
  MDDELTA = u'5.0'
Modify time available difference for equality.
  REPORTFORMAT = u's'
Report format, short by default.
  REPORTPATT = u'!.*'
Report wilds or RegExp filter for paths.
  REPORTPATTCMP = None
Compiled report pattern.
  REPORTTYPE = u'1234'
Report type, all by default.
  REPORTPAGE = u'0'
Report page size in items, unlimit by default.
  REPORTFILTER = u'sbonhdyfwce1234'
Report filter settings.
  REPORTSHOW = True
  SYMLINKEMUL = True
If True then used symlink emulation if no native support.
  OSSEP = '\\'
Os path separator.
  OSASEP = '/'
Alternative os path separator.
  OSWIN = True
  fstream = None
Output log stream.
  Z_CP = None
ConfigParser instance.
  Z_DB = {}
Database.
  Z_KS = []
List of sorted in ascending order Z_DB keys.
  z_re_rootsec = re.compile(r'(r\d+)')
RegExp for root options names.
  LOCK = lock_list(LI_LENGTH)
Initialize LOCK instance.
  __package__ = None

Imports: os, platform, re, threading, TSDIRNONE, MDDELTA_DEFAULT, REPORTFORMAT_DEFAULT, REPORTPATT_DEFAULT, REPORTTYPE_DEFAULT, REPORTPAGE_DEFAULT, REPORTFILTER_DEFAULT, LI_LENGTH, LI_CANCEL, LI_PERCENT, LI_PERCENT100, LI_PERCENTGLOBAL, LI_PERCENTPART, LI_DESC, LI_FUN2, LI_UPDATEFILTER, LI_FILTERRUNNING, LI_THREAD


Variables Details [hide private]

PYBAG_DEBUG

Debug mode. If True (default False) then out all debug messages. Prepend to message "-->" string.

Value:
False

PYBAG_LOG

Logging mode. If True (by default) then out all log messages. Prepend to message "#" string.

Value:
True

PYBAG_EMUL

Emulation mode. If True (by default) then do not real changes (emulation mode).

Value:
True

Z_COLUMN_CHOISE_DEFAULT

Columns in default order for GUI list.

Value:
[(u'err', u'Error', 0, 16, 2),
 (u'forced', u'Forced', 0, 16, 2),
 (u'dir', u'Direction', 0, 32, 2),
 (u'stateicon', u'State', 1, 38, 2),
 (u'actionicon', u'Action', 1, 38, 2),
 (u'path', u'Path', 1, 350, 0),
 (u'desc', u'Description', 1, 350, 0),
 (u'type', u'Type', 0, 16, 2),
...

MDDELTA

Modify time available difference for equality. Default is 5.0 second.

Value:
u'5.0'

SYMLINKEMUL

If True then used symlink emulation if no native support. Used as default parameter in symlink functions (cli.symlink, cli.readlink, cli.symlinktest).

Value:
True

LOCK

Initialize LOCK instance. It used in multithreading

Value:
lock_list(LI_LENGTH)