ProjectController.py
changeset 740 cee825fbe9b3
parent 738 413946c04c87
child 742 41a4a560406c
equal deleted inserted replaced
739:90dcb47a99ed 740:cee825fbe9b3
  1255               getURI_location().\
  1255               getURI_location().\
  1256               strip()
  1256               strip()
  1257 
  1257 
  1258         # if uri is empty launch discovery dialog
  1258         # if uri is empty launch discovery dialog
  1259         if uri == "":
  1259         if uri == "":
  1260             # Launch Service Discovery dialog
  1260             try:
  1261             dialog = DiscoveryDialog(self.AppFrame)
  1261                 # Launch Service Discovery dialog
  1262             answer = dialog.ShowModal()
  1262                 dialog = DiscoveryDialog(self.AppFrame)
  1263             uri = dialog.GetURI()
  1263                 answer = dialog.ShowModal()
  1264             dialog.Destroy()
  1264                 uri = dialog.GetURI()
       
  1265                 dialog.Destroy()
       
  1266             except:
       
  1267                 uri = None
  1265             
  1268             
  1266             # Nothing choosed or cancel button
  1269             # Nothing choosed or cancel button
  1267             if uri is None or answer == wx.ID_CANCEL:
  1270             if uri is None or answer == wx.ID_CANCEL:
  1268                 self.logger.write_error(_("Connection canceled!\n"))
  1271                 self.logger.write_error(_("Connection canceled!\n"))
  1269                 return
  1272                 return