[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] XendDB.py:
ChangeSet 1.1905, 2005/06/23 03:53:29+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx XendDB.py: [Xen-users] Problems starting xend XendDB.py | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff -Nru a/tools/python/xen/xend/XendDB.py b/tools/python/xen/xend/XendDB.py --- a/tools/python/xen/xend/XendDB.py 2005-06-22 23:00:47 -04:00 +++ b/tools/python/xen/xend/XendDB.py 2005-06-22 23:00:47 -04:00 @@ -20,6 +20,12 @@ self.dbpath = os.path.join(self.dbpath, path) pass + def listdir(self, dpath): + try: + return dircache.listdir(dpath) + except: + return [] + def filepath(self, path): return os.path.join(self.dbpath, path) @@ -66,7 +72,7 @@ def fetchall(self, path): dpath = self.filepath(path) d = {} - for k in dircache.listdir(dpath): + for k in self.listdir(dpath): try: v = self.fetchfile(os.path.join(dpath, k)) d[k] = v @@ -84,8 +90,4 @@ def ls(self, path): dpath = self.filepath(path) - return dircache.listdir(dpath) - - - - + return self.listdir(dpath) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |