]> git.ipfire.org Git - pbs.git/commitdiff
users: Rename send_template() to send_email()
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:12:51 +0000 (15:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:12:51 +0000 (15:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/users.py

index 492e17fd0712ea6ab4da84a4493093e46f9af770..304d5079b966f8e5bdc490d3fd8e64831ebed73f 100644 (file)
@@ -281,7 +281,7 @@ class User(base.DataObject):
 
                return user_email
 
-       def send_template(self, *args, **kwargs):
+       def send_email(self, *args, **kwargs):
                return self.backend.messages.send_template(self, *args, **kwargs)
 
        def is_admin(self):
@@ -523,7 +523,7 @@ class UserEmail(base.DataObject):
        def send_email_activation_mail(self):
                logging.debug("Sending email address activation mail to %s" % self.email)
 
-               self.user.send_template("messages/users/email-activation", email=self)
+               self.user.send_email("messages/users/email-activation", email=self)
 
 
 class QuotaExceededError(Exception):