зеркало из https://github.com/mozilla/stoneridge.git
DRY fixups
This commit is contained in:
Родитель
6f46fe06a4
Коммит
08d3616924
|
@ -10,10 +10,10 @@ import stoneridge
|
|||
|
||||
@bottle.post('/email')
|
||||
def email():
|
||||
r = bottle.request
|
||||
to = r.forms.get('to')
|
||||
subject = r.forms.get('subject')
|
||||
msg = r.forms.get('message')
|
||||
r = bottle.request.forms
|
||||
to = r.get('to')
|
||||
subject = r.get('subject')
|
||||
msg = r.get('message')
|
||||
|
||||
stoneridge.sendmail(to, subject, msg)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче