[config] dumb implementation of default_instance_id on no app config since it's referenced stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 06 Oct 2009 16:50:11 +0200
branchstable
changeset 3564 b03cc2416cd5
parent 3554 26e586f3c15c
child 3565 4db55832e8a9
[config] dumb implementation of default_instance_id on no app config since it's referenced
cwconfig.py
--- a/cwconfig.py	Fri Oct 02 15:31:28 2009 +0200
+++ b/cwconfig.py	Tue Oct 06 16:50:11 2009 +0200
@@ -529,6 +529,11 @@
                 vocab = getattr(self, vocab.method, ())
         return CFGTYPE2ETYPE_MAP[optdict['type']], vocab
 
+    def default_instance_id(self):
+        """return the instance identifier, useful for option which need this
+        as default value
+        """
+        return None
 
 class CubicWebConfiguration(CubicWebNoAppConfiguration):
     """base class for cubicweb server and web configurations"""