I have a Python script that uses the pydblite
database library. when I run the code once the database is created and records added. if I run the code again an error is generated..Help
Code
db = Base('Storys.pdl')
db.create('FeatureID', 'StoryID', 'Passed', 'Failed', 'Unexecuted', 'Deferred', 'Blocked', mode="open")
db.insert("123", "456", 0, 0, 0, 0, 0)
db.insert("123", "456", 0, 0, 0, 0, 0)
db.commit()
print len(db)
for r in db:
print r
print db.exists()
error on second running;
File "build\bdist.win32\egg\pydblite\pydblite.py", line 277, in insert
AttributeError: '_BasePy2' object has no attribute 'field_values'