Changeset - b663d44e522a
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 years ago 2022-08-08 15:49:38
lance@edbob.org
Fix how "available" email profiles are got

must first get "all" and then filter out, even if not using entry points
1 file changed with 0 insertions and 7 deletions:
0 comments (0 inline, 0 general)
rattail/mail.py
Show inline comments
 
@@ -167,13 +167,6 @@ class EmailHandler(object):
 
        Retrieve the set of "available" Email profiles, i.e. those
 
        which should be exposed to the app users.
 
        """
 
        # TODO: maybe deprecate this at some point?
 
        if not self.use_entry_points():
 
            # nb. this is the legacy behavior
 
            return dict([(email.key or email.__name__, email)
 
                         for email in self.iter_emails(warn=False)])
 

	
 
        # this is the future
 
        emails = self.get_all_emails()
 
        for key in list(emails):
 
            if not self.email_is_available(key):
0 comments (0 inline, 0 general)