def to_csv(self, csvwriter):
        row = [
            "account",
            self.username.encode("utf-8"),
            self.password.encode("utf-8"),
            self.first_name.encode("utf-8"),
            self.last_name.encode("utf-8"),
            self.is_active,
            self.group,
            self.email.encode("utf-8")
        ]
        row += events.raiseQueryEvent("AccountExported", self)
        csvwriter.writerow(row)
Export this account.
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/models.py/User.to_csv