comparison 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
comparison
equal deleted inserted replaced
623:5f499a634857 624:bdebdc59b057
27 SubmitBase.__init__(self, pagename, request) 27 SubmitBase.__init__(self, pagename, request)
28 28
29 self.targetemail = "" 29 self.targetemail = ""
30 self.subject = "Moinmoin mail" 30 self.subject = "Moinmoin mail"
31 31
32 if(request.form.has_key("targetemail")): 32 if "targetemail" in request.form:
33 self.targetemail = request.form.get("targetemail")[0] 33 self.targetemail = request.form.get("targetemail")[0]
34 34
35 def build_content(self): 35 def build_content(self):
36 """ Builds simple 'label: value' string """ 36 """ Builds simple 'label: value' string """
37 text = "" 37 text = ""