Commits

Josh VanderLinden committed 6b9345a

Renamed a variable to make it more meaningful

  • Participants
  • Parent commits 88ab242

Comments (0)

Files changed (1)

articles/management/commands/check_for_articles_from_email.py

         """Main entry point for the command"""
 
         # retrieve configuration options--give precedence to CLI parameters
-        self.from_email = getattr(settings, 'ARTICLES_FROM_EMAIL', {})
-        s = lambda k, d: self.from_email.get(k, d)
+        self.config = getattr(settings, 'ARTICLES_FROM_EMAIL', {})
+        s = lambda k, d: self.config.get(k, d)
 
         protocol = options['protocol'] or s('protocol', MB_IMAP4)
         host = options['host'] or s('host', 'mail.yourhost.com')
         site = Site.objects.get_current()
 
         # make sure we have a valid default markup
-        ack = self.from_email.get('acknowledge', False)
-        autopost = self.from_email.get('autopost', False)
-        markup = self.from_email.get('markup', MARKUP_HTML)
+        ack = self.config.get('acknowledge', False)
+        autopost = self.config.get('autopost', False)
+        markup = self.config.get('markup', MARKUP_HTML)
         if markup not in (MARKUP_HTML, MARKUP_MARKDOWN, MARKUP_REST, MARKUP_TEXTILE):
             markup = MARKUP_HTML