-"""Provide a (g)dbm-compatible interface to ZODB.
-Author: Oleg Broytman <phd@phd.pp.ru>
-Copyright (C) 2001-2002 PhiloSoft Design
-License: Python"""
-
+"""(g)dbm-compatible interface to ZODB"""
import sys
try:
class ZODBhash:
- def __init__(self, file, flag, mode=0666, trans_threshold=1000):
+ def __init__(self, file, flag, mode=0o666, trans_threshold=1000):
create = (flag == 'n') # force recreation
# if flag == 'w' or 'c' and file does not exist FileStorage will set it to 1 for us
get_transaction().commit()
-def open(file, flag, mode=0666):
+def open(file, flag, mode=0o666):
return ZODBhash(file, flag, mode)