コード例 #1
0
ファイル: __init__.py プロジェクト: mcruse/monotone
 def configure(self, config):
     set_attribute(self, 'alias', REQUIRED, config)
     set_attribute(self, 'class_name',REQUIRED, config)
     set_attribute(self, 'lifetime', 'Request',config)        
     ServiceNode.configure(self, config)
コード例 #2
0
 def configure(self, config):
     set_attribute(self, 'alias', REQUIRED, config)
     set_attribute(self, 'class_name', REQUIRED, config)
     set_attribute(self, 'lifetime', 'Request', config)
     ServiceNode.configure(self, config)
コード例 #3
0
ファイル: _manager.py プロジェクト: mcruse/monotone
 def configure(self, cd):
     ServiceNode.configure(self, cd)
     set_attribute(self, 'ttl', self.ttl, cd, float)
     self.enabled = 1
コード例 #4
0
ファイル: __init__.py プロジェクト: mcruse/monotone
 def configure(self, config):
     if not getattr(self, 'parent', None):
         config.setdefault('parent', '/')
     self.setattr('secured', as_boolean(config.get('secured', True)))
     ServiceNode.configure(self, config)
コード例 #5
0
ファイル: __init__.py プロジェクト: ed-aicradle/monotone
 def configure(self, config):
     if not getattr(self, 'parent', None):
         config.setdefault('parent', '/')
     self.setattr('secured', as_boolean(config.get('secured', True)))
     ServiceNode.configure(self, config)
コード例 #6
0
ファイル: _manager.py プロジェクト: ed-aicradle/monotone
 def configure(self, cd):
     ServiceNode.configure(self, cd)
     set_attribute(self, 'ttl', self.ttl, cd, float)
     self.enabled = 1
コード例 #7
0
 def configure(self, cd):
     ServiceNode.configure(self, cd)
     self.name = 'nodetree_as_dict'
     return
コード例 #8
0
ファイル: nodetree_svc.py プロジェクト: mcruse/monotone
 def configure(self, cd):
     ServiceNode.configure(self, cd)
     self.name = 'nodetree_as_dict'
     return