Skip to content

Commit

Permalink
Coverting debug and port values in Mailer.from_settings Pylons#67
Browse files Browse the repository at this point in the history
  • Loading branch information
marioidival committed May 21, 2015
1 parent f81fe18 commit 7b2f8ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyramid_mailer/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ def from_settings(cls, settings, prefix='mail.'):
if val:
kwargs[key] = asbool(val)

for key in ('debug', 'port'):
val = kwargs.get(key)
if val:
kwargs[key] = int(val)

# list values
for key in ('sendmail_template', ):
if key in kwargs:
Expand Down

0 comments on commit 7b2f8ab

Please sign in to comment.