prevent CSW connection names with "/" to be set

This commit is contained in:
Tom Kralidis 2015-02-23 10:40:23 -05:00
parent e815105550
commit e04570cc89

View File

@ -57,6 +57,11 @@ class NewConnectionDialog(QDialog, BASE_CLASS):
self.tr('Both Name and URL must be provided'))
return
if '/' in conn_name:
QMessageBox.warning(self, self.tr('Save connection'),
self.tr('Name cannot contain \'/\''))
return
if conn_name is not None:
key = '/MetaSearch/%s' % conn_name
keyurl = '%s/url' % key