server/repository.py
branchstable
changeset 7085 36e91d19188b
parent 7068 90ddf608fe2b
parent 7083 b8e35cde46e9
child 7134 01544b6d98fa
equal deleted inserted replaced
7082:1b07eb7180a2 7085:36e91d19188b
  1456     def is_multi_sources_relation(self, rtype):
  1456     def is_multi_sources_relation(self, rtype):
  1457         return any(source for source in self.sources
  1457         return any(source for source in self.sources
  1458                    if not source is self.system_source
  1458                    if not source is self.system_source
  1459                    and source.support_relation(rtype))
  1459                    and source.support_relation(rtype))
  1460 
  1460 
       
  1461     # these are overridden by set_log_methods below
       
  1462     # only defining here to prevent pylint from complaining
       
  1463     info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None
  1461 
  1464 
  1462 def pyro_unregister(config):
  1465 def pyro_unregister(config):
  1463     """unregister the repository from the pyro name server"""
  1466     """unregister the repository from the pyro name server"""
  1464     from logilab.common.pyro_ext import ns_unregister
  1467     from logilab.common.pyro_ext import ns_unregister
  1465     appid = config['pyro-instance-id'] or config.appid
  1468     appid = config['pyro-instance-id'] or config.appid