git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5e6403
)
- hard-code "planetlab4" as the DB name for now
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 20 Oct 2006 17:53:42 +0000
(17:53 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 20 Oct 2006 17:53:42 +0000
(17:53 +0000)
PLC/PostgreSQL.py
patch
|
blob
|
history
diff --git
a/PLC/PostgreSQL.py
b/PLC/PostgreSQL.py
index
069d944
..
33fe074
100644
(file)
--- a/
PLC/PostgreSQL.py
+++ b/
PLC/PostgreSQL.py
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: PostgreSQL.py,v 1.
4 2006/10/13 20:00:37
mlhuang Exp $
+# $Id: PostgreSQL.py,v 1.
5 2006/10/16 21:56:11
mlhuang Exp $
#
import pgdb
#
import pgdb
@@
-25,7
+25,7
@@
class PostgreSQL:
self.db = pgdb.connect(user = api.config.PLC_DB_USER,
password = api.config.PLC_DB_PASSWORD,
host = "%s:%d" % (api.config.PLC_DB_HOST, api.config.PLC_DB_PORT),
self.db = pgdb.connect(user = api.config.PLC_DB_USER,
password = api.config.PLC_DB_PASSWORD,
host = "%s:%d" % (api.config.PLC_DB_HOST, api.config.PLC_DB_PORT),
- database = api.config.PLC_DB_NAME)
+ database =
"planetlab4") # XXX
api.config.PLC_DB_NAME)
self.cursor = self.db.cursor()
(self.rowcount, self.description, self.lastrowid) = \
self.cursor = self.db.cursor()
(self.rowcount, self.description, self.lastrowid) = \