log_search.py
changeset 122 2d75e13397a8
parent 121 86aebc9cb60b
child 127 5746705a2719
equal deleted inserted replaced
120:b5f746e9c3c2 122:2d75e13397a8
    72         # mapping of { mode -> flags }
    72         # mapping of { mode -> flags }
    73         mode_to_flag = {
    73         mode_to_flag = {
    74             'r':    hype.Database.DBREADER,
    74             'r':    hype.Database.DBREADER,
    75             'w':    hype.Database.DBWRITER | hype.Database.DBCREAT,
    75             'w':    hype.Database.DBWRITER | hype.Database.DBCREAT,
    76             'a':    hype.Database.DBWRITER,
    76             'a':    hype.Database.DBWRITER,
    77             'c':    hype.Database.DBCREAT,
    77             'c':    hype.Database.DBWRITER | hype.Database.DBCREAT,
    78         }
    78         }
    79 
    79 
    80         # flags to use, standard modes
    80         # flags to use, standard modes
    81         flags = mode_to_flag[mode[0]]
    81         flags = mode_to_flag[mode[0]]
    82  
    82