Projects
/
mdb-ng
Archived
4
0
Fork 0

Added a few more interfaces that should be needed.

This commit is contained in:
Øyvind Grønnesby 2005-02-24 21:23:55 +00:00
parent 21be0b27e7
commit d7bca43491
1 changed files with 19 additions and 0 deletions

View File

@ -49,6 +49,10 @@ class PVVDB:
# set the legal set of fields.
pass
def __del__(self):
# clean up locks and such before being deleted.
pass
def lock(self, username):
# Lock the record.
pass
@ -67,3 +71,18 @@ class PVVDB:
# the record if `lock' is True. A `comment' can be supplied that
# explains the changes made.
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