[Checkins] SVN: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/ import
cleanup
Andreas Jung
andreas at andreas-jung.com
Mon Mar 19 06:41:32 EDT 2007
Log message for revision 73337:
import cleanup
Changed:
U z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py
U z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/postgres.py
U z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/tests/testSQLAlchemy.py
-=-
Modified: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py
===================================================================
--- z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py 2007-03-19 10:38:42 UTC (rev 73336)
+++ z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/base.py 2007-03-19 10:41:32 UTC (rev 73337)
@@ -6,7 +6,6 @@
# and ZOPYX Ltd. & Co. KG, Tuebingen, Germany
##########################################################################
-import sys
import threading
import sqlalchemy
@@ -18,7 +17,7 @@
from z3c.sqlalchemy.interfaces import ISQLAlchemyWrapper, IModelProvider
from z3c.sqlalchemy.model import Model
-from z3c.sqlalchemy.mapper import MapperFactory, LazyMapperCollection
+from z3c.sqlalchemy.mapper import LazyMapperCollection
import transaction
from transaction.interfaces import IDataManager
@@ -29,7 +28,7 @@
implements(ISQLAlchemyWrapper)
def __init__(self, dsn, model=None, echo=False):
- """ 'dsn' - an RFC-1738-style connection string
+ """ 'dsn' - a RFC-1738-style connection string
'model' - optional instance of model.Model
@@ -49,7 +48,6 @@
self._engine.echo = echo
self._model = None
-
if model:
if isinstance(model, Model):
self._model = model
@@ -72,7 +70,6 @@
# the 'model' from within the constructor of LazyMapperCollection
self._mappers = LazyMapperCollection(self)
-
@property
def metadata(self):
return sqlalchemy.BoundMetaData(self._engine)
@@ -100,7 +97,6 @@
_cache = threading.local() # module-level cache
-
class DataManager(object):
""" Wraps session into transaction context of Zope """
Modified: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/postgres.py
===================================================================
--- z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/postgres.py 2007-03-19 10:38:42 UTC (rev 73336)
+++ z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/postgres.py 2007-03-19 10:41:32 UTC (rev 73337)
@@ -17,7 +17,6 @@
from z3c.sqlalchemy.interfaces import ISQLAlchemyWrapper
from z3c.sqlalchemy.base import BaseWrapper, ZopeBaseWrapper
-from zope_mixin import ZopeMixin
_cache = threading.local() # module-level cache
Modified: z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/tests/testSQLAlchemy.py
===================================================================
--- z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/tests/testSQLAlchemy.py 2007-03-19 10:38:42 UTC (rev 73336)
+++ z3c.sqlalchemy/trunk/src/z3c/sqlalchemy/tests/testSQLAlchemy.py 2007-03-19 10:41:32 UTC (rev 73337)
@@ -13,11 +13,7 @@
Tests, tests, tests.........
"""
-
-import os
-import sys
import unittest
-
import sqlalchemy
from zope.interface.verify import verifyClass
More information about the Checkins
mailing list