Package CedarBackup3 :: Package actions :: Module constants
[hide private]
[frames] | no frames]

Source Code for Module CedarBackup3.actions.constants

 1  # -*- coding: iso-8859-1 -*- 
 2  # vim: set ft=python ts=3 sw=3 expandtab: 
 3  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 4  # 
 5  #              C E D A R 
 6  #          S O L U T I O N S       "Software done right." 
 7  #           S O F T W A R E 
 8  # 
 9  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
10  # 
11  # Author   : Kenneth J. Pronovici <pronovic@ieee.org> 
12  # Language : Python 3 (>= 3.4) 
13  # Project  : Cedar Backup, release 3 
14  # Purpose  : Provides common constants used by standard actions. 
15  # 
16  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
17   
18  ######################################################################## 
19  # Module documentation 
20  ######################################################################## 
21   
22  """ 
23  Provides common constants used by standard actions. 
24  @sort: DIR_TIME_FORMAT, DIGEST_EXTENSION, INDICATOR_PATTERN, 
25         COLLECT_INDICATOR, STAGE_INDICATOR, STORE_INDICATOR 
26  @author: Kenneth J. Pronovici <pronovic@ieee.org> 
27  """ 
28   
29  ######################################################################## 
30  # Module-wide constants and variables 
31  ######################################################################## 
32   
33  DIR_TIME_FORMAT      = "%Y/%m/%d" 
34  DIGEST_EXTENSION     = "sha" 
35   
36  INDICATOR_PATTERN    = [ r"cback\..*", ] 
37  COLLECT_INDICATOR    = "cback.collect" 
38  STAGE_INDICATOR      = "cback.stage" 
39  STORE_INDICATOR      = "cback.store" 
40