[repo source] rename attribute so it's much easier to grasp its role stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 01 Dec 2010 17:08:42 +0100
branchstable
changeset 6722 3341521d857b
parent 6721 a872c391ef86
child 6723 a2ccbcbb08a6
child 6725 6e6d1d19f341
[repo source] rename attribute so it's much easier to grasp its role
server/repository.py
server/sources/__init__.py
--- a/server/repository.py	Wed Dec 01 17:08:24 2010 +0100
+++ b/server/repository.py	Wed Dec 01 17:08:42 2010 +0100
@@ -590,7 +590,7 @@
         sources = {}
         # remove sensitive information
         for uri, source in self.sources_by_uri.iteritems():
-            sources[uri] = source.cfg
+            sources[uri] = source.public_config
         return sources
 
     def properties(self):
--- a/server/sources/__init__.py	Wed Dec 01 17:08:24 2010 +0100
+++ b/server/sources/__init__.py	Wed Dec 01 17:08:42 2010 +0100
@@ -109,8 +109,8 @@
         self.set_schema(repo.schema)
         self.support_relations['identity'] = False
         self.eid = None
-        self.cfg = source_config.copy()
-        self.remove_sensitive_information(self.cfg)
+        self.public_config = source_config.copy()
+        self.remove_sensitive_information(self.public_config)
 
     def init_creating(self):
         """method called by the repository once ready to create a new instance"""