def dispatch_request(self, id):
        super(WalletSendView, self).dispatch_request(id)
        form = SendForm(request.form)
        balance = self.conn.getbalance()
        if request.method == 'POST' and form.validate():
            amount = strtofloat(form.data['amount'])
            txid = self.conn.sendtoaddress(
                form.toaddress.data,
                amount,
                form.comment.data,
                form.to.data
            )
            flash((amount, form.toaddress.data) % u"%f coins sent to %s",
                  'success')
            return redirect(url_for("wallet.tx_detail", id=id, txid=txid))
        return render_template('wallet/wallet/send.html', wallet=self.wallet,
                               form=form, balance=balance)
dataset/ETHPy150Open nkuttler/flaskwallet/walletapp/views/wallet.py/WalletSendView.dispatch_request/swapped operands of `%`