Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
c7b35250
Commit
c7b35250
authored
Jan 06, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix E-Mailsettings
parent
35906656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
web.py
cps/web.py
+1
-3
No files found.
cps/web.py
View file @
c7b35250
...
@@ -1535,15 +1535,13 @@ def edit_mailsettings():
...
@@ -1535,15 +1535,13 @@ def edit_mailsettings():
flash
(
_
(
u"Mail settings updated"
),
category
=
"success"
)
flash
(
_
(
u"Mail settings updated"
),
category
=
"success"
)
except
e
:
except
e
:
flash
(
e
,
category
=
"error"
)
flash
(
e
,
category
=
"error"
)
if
to_save
[
"test"
]:
if
"test"
in
to_save
and
to_save
[
"test"
]:
result
=
helper
.
send_test_mail
(
current_user
.
kindle_mail
)
result
=
helper
.
send_test_mail
(
current_user
.
kindle_mail
)
if
result
is
None
:
if
result
is
None
:
flash
(
_
(
u"Test E-Mail successfully send to
%(kindlemail)
s"
,
kindlemail
=
current_user
.
kindle_mail
),
flash
(
_
(
u"Test E-Mail successfully send to
%(kindlemail)
s"
,
kindlemail
=
current_user
.
kindle_mail
),
category
=
"success"
)
category
=
"success"
)
else
:
else
:
flash
(
_
(
u"There was an error sending the Test E-Mail:
%(res)
s"
,
res
=
result
),
category
=
"error"
)
flash
(
_
(
u"There was an error sending the Test E-Mail:
%(res)
s"
,
res
=
result
),
category
=
"error"
)
else
:
flash
(
_
(
u"Mail settings updated"
),
category
=
"success"
)
return
render_template
(
"email_edit.html"
,
content
=
content
,
title
=
_
(
"Edit mail settings"
))
return
render_template
(
"email_edit.html"
,
content
=
content
,
title
=
_
(
"Edit mail settings"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment