set appid attribute before super call to avoid attribute error when fetching configuration's defaults stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 24 Nov 2009 10:51:02 +0100
branchstable
changeset 3912 412eb366740b
parent 3911 9dbabbca03df
child 3913 60f31797e01e
set appid attribute before super call to avoid attribute error when fetching configuration's defaults
server/serverconfig.py
--- a/server/serverconfig.py	Mon Nov 23 20:16:40 2009 +0100
+++ b/server/serverconfig.py	Tue Nov 24 10:51:02 2009 +0100
@@ -36,8 +36,8 @@
 
 class SourceConfiguration(Configuration):
     def __init__(self, appid, options):
+        self.appid = appid # has to be done before super call
         super(SourceConfiguration, self).__init__(options=options)
-        self.appid = appid
 
     # make Method('default_instance_id') usable in db option defs (in native.py)
     def default_instance_id(self):