コード例 #1
0
 def import_ns(self, namespace):
     """
     """
     pythonshare._send(Request_ns(namespace), self._to_server)
     rv = pythonshare._recv(self._from_server)
     if isinstance(rv, Ns_rv) and rv.status:
         return True
     else:
         raise pythonshare.PythonShareError(rv.errormsg)
コード例 #2
0
ファイル: client.py プロジェクト: heivi/fMBT
 def import_ns(self, namespace):
     """
     """
     cPickle.dump(Request_ns(namespace), self._to_server)
     self._to_server.flush()
     rv = cPickle.load(self._from_server)
     if isinstance(rv, Ns_rv) and rv.status:
         return True
     else:
         raise pythonshare.PythonShareError(rv.errormsg)