def accept_payments(self, indices=None): otme.retrieve_nym(self.server_id, self.nym._id) if not indices: # build a list of indices ledger = opentxs.OTAPI_Wrap_LoadPaymentInbox(self.server_id, self.nym._id) payment_count = opentxs.OTAPI_Wrap_Ledger_GetCount(self.server_id, self.nym._id, self._id, ledger) indices = list(map(str, range(payment_count))) otme.accept_from_paymentbox(self._id, ",".join(indices), "")
def remote_mail_count(server_id, nym, outgoing=False): otme.retrieve_nym(server_id, nym._id, True) return mail_count(nym, outgoing)
def remote_mail_count(server_id, nym): otme.retrieve_nym(server_id, nym._id, True) return mail_count(nym)