- Reports missing GUI modules
- Will not load relations if given name is not valid
- Will not execute if relation dest name is not valid
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@283 014f5005-505e-4b48-8d0a-63407b615a7c
QtGui.QMessageBox.information(self,QtGui.QApplication.translate("Form","Error"),QtGui.QApplication.translate("Form","Wrong name for destination relation."))
return
try:
@ -172,11 +172,10 @@ class relForm(QtGui.QMainWindow):
#Default relation's name
f=str(filename.toUtf8()).split('/')#Split the full path
defname=f[len(f)-1].lower()#Takes only the lowercase filename
else:
f=filename.split('/')#Split the full path
defname=f[len(f)-1].lower()#Takes only the lowercase filename
defname=f[len(f)-1].lower()#Takes only the lowercase filename
iflen(defname)==0:
return
@ -191,11 +190,14 @@ class relForm(QtGui.QMainWindow):
QtGui.QMessageBox.information(self,QtGui.QApplication.translate("Form","Error"),QtGui.QApplication.translate("Form","Wrong name for destination relation: %s."%name))
definsertTuple(self):
'''Shows an input dialog and inserts the inserted tuple into the selected relation'''
res=QtGui.QInputDialog.getText(self,QtGui.QApplication.translate("Form","New relation"),QtGui.QApplication.translate("Form","Insert the values, comma separated"),
@ -254,15 +256,3 @@ class relForm(QtGui.QMainWindow):