equal
deleted
inserted
replaced
1190 |
1190 |
1191 # pyro handling ########################################################### |
1191 # pyro handling ########################################################### |
1192 |
1192 |
1193 def pyro_register(self, host=''): |
1193 def pyro_register(self, host=''): |
1194 """register the repository as a pyro object""" |
1194 """register the repository as a pyro object""" |
1195 from logilab.common.pyro_ext import register_object |
1195 import tempfile |
|
1196 from logilab.common.pyro_ext import register_object, config |
|
1197 config.PYRO_STORAGE = tempfile.gettempdir() # XXX until lgc > 0.45.1 is out |
1196 appid = self.config['pyro-instance-id'] or self.config.appid |
1198 appid = self.config['pyro-instance-id'] or self.config.appid |
1197 daemon = register_object(self, appid, self.config['pyro-ns-group'], |
1199 daemon = register_object(self, appid, self.config['pyro-ns-group'], |
1198 self.config['pyro-host'], |
1200 self.config['pyro-host'], |
1199 self.config['pyro-ns-host']) |
1201 self.config['pyro-ns-host']) |
1200 msg = 'repository registered as a pyro object using group %s and id %s' |
1202 msg = 'repository registered as a pyro object using group %s and id %s' |