plugger.py
changeset 392 6617d3fb43e2
parent 382 37f870528def
child 395 433fd448dd31
equal deleted inserted replaced
389:bde723abfdfc 392:6617d3fb43e2
  1637               strip()
  1637               strip()
  1638 
  1638 
  1639         # if uri is empty launch discovery dialog
  1639         # if uri is empty launch discovery dialog
  1640         if uri == "":
  1640         if uri == "":
  1641             # Launch Service Discovery dialog
  1641             # Launch Service Discovery dialog
  1642             dia = DiscoveryDialog(self.AppFrame)
  1642             dialog = DiscoveryDialog(self.AppFrame)
  1643             dia.ShowModal()
  1643             answer = dialog.ShowModal()
  1644             uri = dia.GetResult()
  1644             uri = dialog.GetURI()
       
  1645             dialog.Destroy()
       
  1646             
  1645             # Nothing choosed or cancel button
  1647             # Nothing choosed or cancel button
  1646             if uri is None:
  1648             if uri is None or answer == wx.ID_CANCEL:
       
  1649                 self.logger.write_error(_("Connection canceled!\n"))
  1647                 return
  1650                 return
  1648             else:
  1651             else:
  1649                 self.\
  1652                 self.\
  1650                 BeremizRoot.\
  1653                 BeremizRoot.\
  1651                 setURI_location(uri)
  1654                 setURI_location(uri)