diff data/plugin/action/submitemail.py @ 624:bdebdc59b057

FormSubmit: get rid of has_key()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Mar 2013 17:28:25 +0100
parents 5f499a634857
children f4e63b74b969
line wrap: on
line diff
--- a/data/plugin/action/submitemail.py	Mon Mar 25 17:20:34 2013 +0100
+++ b/data/plugin/action/submitemail.py	Mon Mar 25 17:28:25 2013 +0100
@@ -29,7 +29,7 @@
         self.targetemail = ""
         self.subject = "Moinmoin mail"
         
-        if(request.form.has_key("targetemail")):
+        if "targetemail" in request.form:
             self.targetemail = request.form.get("targetemail")[0]
         
     def build_content(self):