equal
deleted
inserted
replaced
283 def GetTextCtrlChangedFunction(self, textctrl, name): |
283 def GetTextCtrlChangedFunction(self, textctrl, name): |
284 def TextCtrlChangedFunction(event): |
284 def TextCtrlChangedFunction(event): |
285 if self.Controller is not None and self.Values is not None: |
285 if self.Controller is not None and self.Values is not None: |
286 old_value = self.Values.get(name) |
286 old_value = self.Values.get(name) |
287 new_value = textctrl.GetValue() |
287 new_value = textctrl.GetValue() |
288 if name not in REQUIRED_PARAMS and new_value == "": |
288 if name in REQUIRED_PARAMS and new_value == "": |
289 new_value = None |
289 new_value = None |
290 if name == 'companyURL': |
290 if name == 'companyURL': |
291 if not URI_model.match(new_value): |
291 if not URI_model.match(new_value): |
292 new_value = None |
292 new_value = None |
293 dialog = wx.MessageDialog(self, _('Invalid URL!\n' |
293 dialog = wx.MessageDialog(self, _('Invalid URL!\n' |