def validate_email(self):
self.CHECK_LIST_ITEMS=[]
sending_numbers=self.text_ctrl_selected_email.Value
sending_numbers=sending_numbers.split(";")
for email in sending_numbers:
print email
if not email:
continue
if self.V.validate_email(email)[0]:
self.CHECK_LIST_ITEMS.append(email)
else:
#msg=email+" is invalid email id. Either edit or delete it to continue!"
#dlg = wx.MessageDialog(self, msg, 'Error',wx.OK | wx.ICON_ERROR)
#dlg.ShowModal()
#dlg.Destroy()
return 0
return True
评论列表
文章目录