equal
deleted
inserted
replaced
1151 |
1151 |
1152 # pyro handling ########################################################### |
1152 # pyro handling ########################################################### |
1153 |
1153 |
1154 def pyro_register(self, host=''): |
1154 def pyro_register(self, host=''): |
1155 """register the repository as a pyro object""" |
1155 """register the repository as a pyro object""" |
1156 from logilab.common.pyro_ext import register_object |
1156 import tempfile |
|
1157 from logilab.common.pyro_ext import register_object, config |
|
1158 config.PYRO_STORAGE = tempfile.gettempdir() # XXX until lgc > 0.45.1 is out |
1157 appid = self.config['pyro-instance-id'] or self.config.appid |
1159 appid = self.config['pyro-instance-id'] or self.config.appid |
1158 daemon = register_object(self, appid, self.config['pyro-ns-group'], |
1160 daemon = register_object(self, appid, self.config['pyro-ns-group'], |
1159 self.config['pyro-host'], |
1161 self.config['pyro-host'], |
1160 self.config['pyro-ns-host']) |
1162 self.config['pyro-ns-host']) |
1161 msg = 'repository registered as a pyro object using group %s and id %s' |
1163 msg = 'repository registered as a pyro object using group %s and id %s' |