[Checkins] SVN: Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py port

Andreas Jung andreas at andreas-jung.com
Thu Feb 1 09:49:34 EST 2007


Log message for revision 72299:
  port
  

Changed:
  U   Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py

-=-
Modified: Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py
===================================================================
--- Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py	2007-02-01 14:44:38 UTC (rev 72298)
+++ Product.ZSQLAlchemy/trunk/ZSQLAlchemy.py	2007-02-01 14:49:34 UTC (rev 72299)
@@ -82,6 +82,7 @@
     meta_type = 'ZSQLAlchemy'
 
     hostname = ''
+    port     = 0
     username = ''
     password = ''
     database = ''
@@ -92,6 +93,7 @@
 
     _properties=({'id':'dbtype',  'type':'selection', 'mode':'wr', 'select_variable':'dbTypes'},
                  {'id':'hostname', 'type':'string', 'mode':'wr'},
+                 {'id':'port', 'type':'int', 'mode':'wr'},
                  {'id':'username', 'type':'string', 'mode':'wr'},
                  {'id':'password', 'type':'string', 'mode':'wr'},
                  {'id':'database', 'type':'string', 'mode':'wr'},
@@ -116,7 +118,8 @@
             psycopg = sqlalchemy.pool.manage(psycopg)
             db = psycopg.connect(database=self.database, 
                                  user=self.username,
-                                 password=self.password,
+                                 password=self.password,        
+                                 port=self.port,
                                  host=self.hostname)
             return db
 



More information about the Checkins mailing list