equal
deleted
inserted
replaced
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 |