List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:April 27 2007 11:04pm
Subject:Rev 87: Modified python to work with NdbFactory. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
------------------------------------------------------------
revno: 87
revision-id: monty@stripped
parent: monty@stripped
committer: Monty Taylor <monty@stripped>
branch nick: devel
timestamp: Fri 2007-04-27 16:03:46 -0700
message:
  Modified python to work with NdbFactory.
modified:
  python/ndbapi.i               
svn-v2:1@5fca6d9a-db22-0410-b55c-899b0a28da89-trunk-python%2fndb.i
  python/test.py                
svn-v2:1@5fca6d9a-db22-0410-b55c-899b0a28da89-trunk-python%2ftest.py
  python/test2.py                test2.py-20070130002952-p0v0nvxmb1bo34n3-1
=== modified file 'python/ndbapi.i'
--- a/python/ndbapi.i	2007-04-27 05:23:30 +0000
+++ b/python/ndbapi.i	2007-04-27 23:03:46 +0000
@@ -27,7 +27,7 @@
 def connect(connectstring=None,no_retries=0,retry_delay_in_seconds=1,
            
verbose=0,timeout_for_first_alive=1,timeout_after_first_alive=1,*args,**kwargs):
   """ Provide DBAPI 2.0 support """ 
-  connection=Ndb_cluster_connection(connectstring)
+  connection=NdbFactory.createNdbClusterConnection(connectstring)
   connection.connect(no_retries,retry_delay_in_seconds,verbose)
   connection.wait_until_ready(timeout_for_first_alive,timeout_after_first_alive)
   return connection

=== modified file 'python/test.py'
--- a/python/test.py	2007-04-24 23:41:52 +0000
+++ b/python/test.py	2007-04-27 23:03:46 +0000
@@ -36,7 +36,7 @@
 
 print "connecting to cluster\n"
    
-connection = ndbapi.Ndb_cluster_connection()
+connection = ndbapi.NdbFactory.createNdbClusterConnection();
 
 if (connection.connect(5,3,1)):
 

=== modified file 'python/test2.py'
--- a/python/test2.py	2007-01-30 00:29:56 +0000
+++ b/python/test2.py	2007-04-27 23:03:46 +0000
@@ -7,7 +7,7 @@
 print "connecting to cluster\n"
 
    
-connection = ndb.Ndb_cluster_connection()
+connection = ndb.NdbFactory.createNdbClusterConnection();
 
 if (connection.connect(5,3,1)):
 

Thread
Rev 87: Modified python to work with NdbFactory. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor28 Apr