[Checkins] SVN: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/ changed dsn to BytesLine because sqlalchemy requires it to be a string, catch errors in test teardown

Bernd Dorn bernd.dorn at fhv.at
Fri May 12 05:01:03 EDT 2006


Log message for revision 68104:
  changed dsn to BytesLine because sqlalchemy requires it to be a string, catch errors in test teardown

Changed:
  U   z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/metadirectives.py
  U   z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/testing/__init__.py

-=-
Modified: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/metadirectives.py
===================================================================
--- z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/metadirectives.py	2006-05-12 06:28:17 UTC (rev 68103)
+++ z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/metadirectives.py	2006-05-12 09:01:02 UTC (rev 68104)
@@ -19,10 +19,10 @@
 class IEngineDirective(interface.Interface):
     """Define an engine.
     """
-    dns = schema.Text(
-            title = u'DNS for the database connection',
-            required = True,
-            )
+    dns = schema.BytesLine(
+        title = u'RFC RFC-1738 DNS for the database connection',
+        required = True,
+        )
     name = schema.Text(
             title = u'Engine name',
             description = u'Empty if this engine is the default engine.',

Modified: z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/testing/__init__.py
===================================================================
--- z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/testing/__init__.py	2006-05-12 06:28:17 UTC (rev 68103)
+++ z3c.zalchemy/branches/jukart-SA-0.2/src/z3c/zalchemy/testing/__init__.py	2006-05-12 09:01:02 UTC (rev 68104)
@@ -25,7 +25,10 @@
 
 def tearDown(test):
     if z3c.zalchemy.inSession():
-        transaction.get().commit()
+        try:
+            transaction.get().commit()
+        except:
+            pass
     z3c.zalchemy.datamanager._tableToEngine.clear()
     z3c.zalchemy.datamanager._classToEngine.clear()
 



More information about the Checkins mailing list