Update of /cvsroot/monetdb/clients/src/python/Cimpl
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17899/src/python/Cimpl
Modified Files:
Tag: Clients_1-20
CMapi.py
Log Message:
pass version number (4/5) as the embedded modules have different names
(monetdb and monetdb5)
Index: CMapi.py
===================================================================
RCS file: /cvsroot/monetdb/clients/src/python/Cimpl/CMapi.py,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- CMapi.py 11 Sep 2007 11:11:40 -0000 1.4
+++ CMapi.py 21 Oct 2007 16:38:59 -0000 1.4.2.1
@@ -241,9 +241,12 @@
return ret
class Embedded(Mapi):
- def __init__(self, dbfarm = None, dbname = "demo", lang = "sql"):
+ def __init__(self, dbfarm = None, dbname = "demo", lang = "sql", version =
5):
try:
- import monetdb
+ if version == 5:
+ import monetdb5 as monetdb
+ else:
+ import monetdb
if lang == "sql":
self._Mapi__mid = monetdb.monetdb_sql(dbfarm, dbname)
except:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins