From d7bca43491e3d7e42cd0d06944cd2d1654e610ad Mon Sep 17 00:00:00 2001 From: oyving Date: Thu, 24 Feb 2005 21:23:55 +0000 Subject: [PATCH] Added a few more interfaces that should be needed. --- lib/mdb/db.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/mdb/db.py b/lib/mdb/db.py index bfaf7a2..deed78b 100644 --- a/lib/mdb/db.py +++ b/lib/mdb/db.py @@ -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