incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1446579 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py
Date Fri, 15 Feb 2013 13:37:25 GMT
Author: jure
Date: Fri Feb 15 13:37:25 2013
New Revision: 1446579

URL: http://svn.apache.org/r1446579
Log:
#288, fixup for get_read_db and get_db_cnx, using product envs when constructing DatabaseManager
resulted in invalid db paths


Modified:
    incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py

Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py?rev=1446579&r1=1446578&r2=1446579&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py
(original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/env.py
Fri Feb 15 13:37:25 2013
@@ -414,7 +414,7 @@ class ProductEnvironment(Component, Comp
            with env.db_query as db:
                ...
         """
-        return BloodhoundConnectionWrapper(DatabaseManager(self).get_connection(), self)
+        return BloodhoundConnectionWrapper(self.parent.get_db_cnx(), self)
 
     @lazy
     def db_exc(self):
@@ -444,7 +444,7 @@ class ProductEnvironment(Component, Comp
 
         See `trac.db.api.get_read_db` for detailed documentation.
         """
-        return BloodhoundConnectionWrapper(DatabaseManager(self).get_connection(readonly=True),
self)
+        return BloodhoundConnectionWrapper(self.parent.get_read_db(), self)
 
     @property
     def db_query(self):



Mime
View raw message