#!/usr/bin/env python

import ZODB
import ZODB.FileStorage
import transaction
import custom_class_zodb

filestorage = ZODB.FileStorage.FileStorage('zodb_filestorage.db')
db = ZODB.DB(filestorage)
conn = db.open()

root = conn.root()
noah = custom_class_zodb.Account('noah', 1000)
print (noah)
root['noah'] = noah
jeremy =  custom_class_zodb.Account('jeremy', 1000)
print (jeremy)
root['jeremy'] = jeremy

transaction.commit()
conn.close()

9d1d42823dfdb138f0b8e13054ccaf98da8844ff
<mask token>

<mask token>
print(noah)
<mask token>
print(jeremy)
<mask token>
transaction.commit()
conn.close()

<mask token>
filestorage = ZODB.FileStorage.FileStorage('zodb_filestorage.db')
db = ZODB.DB(filestorage)
conn = db.open()
root = conn.root()
noah = custom_class_zodb.Account('noah', 1000)
print(noah)
root['noah'] = noah
jeremy = custom_class_zodb.Account('jeremy', 1000)
print(jeremy)
root['jeremy'] = jeremy
transaction.commit()
conn.close()

import ZODB
import ZODB.FileStorage
import transaction
import custom_class_zodb
filestorage = ZODB.FileStorage.FileStorage('zodb_filestorage.db')
db = ZODB.DB(filestorage)
conn = db.open()
root = conn.root()
noah = custom_class_zodb.Account('noah', 1000)
print(noah)
root['noah'] = noah
jeremy = custom_class_zodb.Account('jeremy', 1000)
print(jeremy)
root['jeremy'] = jeremy
transaction.commit()
conn.close()

#!/usr/bin/env python

import ZODB
import ZODB.FileStorage
import transaction
import custom_class_zodb

filestorage = ZODB.FileStorage.FileStorage('zodb_filestorage.db')
db = ZODB.DB(filestorage)
conn = db.open()

root = conn.root()
noah = custom_class_zodb.Account('noah', 1000)
print (noah)
root['noah'] = noah
jeremy =  custom_class_zodb.Account('jeremy', 1000)
print (jeremy)
root['jeremy'] = jeremy

transaction.commit()
conn.close()
