Added a few more interfaces that should be needed.
This commit is contained in:
parent
21be0b27e7
commit
d7bca43491
|
@ -49,6 +49,10 @@ class PVVDB:
|
||||||
# set the legal set of fields.
|
# set the legal set of fields.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
# clean up locks and such before being deleted.
|
||||||
|
pass
|
||||||
|
|
||||||
def lock(self, username):
|
def lock(self, username):
|
||||||
# Lock the record.
|
# Lock the record.
|
||||||
pass
|
pass
|
||||||
|
@ -67,3 +71,18 @@ class PVVDB:
|
||||||
# the record if `lock' is True. A `comment' can be supplied that
|
# the record if `lock' is True. A `comment' can be supplied that
|
||||||
# explains the changes made.
|
# explains the changes made.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Regular interface to the database.
|
||||||
|
#
|
||||||
|
def connect(path):
|
||||||
|
# returns a PVVDB instance to that path. If asked for another
|
||||||
|
# PVVDB instance with the same path as earlier, it will return
|
||||||
|
# the same object.
|
||||||
|
pass
|
||||||
|
|
||||||
|
def disconnect(dbo):
|
||||||
|
# do not do anything, really. PVVDB objects will clean up
|
||||||
|
# automatically when deleted.
|
||||||
|
pass
|
||||||
|
|
Reference in New Issue