def on_identRegButton_clicked(self): if not self.yorn("Are you sure you would like to register your identity at %s?" \ % self.currentMarket.obj['markename']): return identlist = self.listDict['ident'] mod = MM_util.searchlistbyhash(identlist, self.currentMarket.obj['modid']) amount = self.currentMarket.obj['fee'] msgstr = MM_util.createreg( \ self.myid.hash, self.btcaddr, amount, mod, self.getFee() ) hash = MM_util.MM_writefile(msgstr) MM_util.appendindex('reg', hash) self.do_sendmsgviabm(mod.obj['bmaddr'], msgstr) self.info("Registered!")