- warns about saving relations

- no more empty fields



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@328 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2011-10-13 20:39:48 +07:00
parent 80cd45cf0c
commit 24021ddeb0
6 changed files with 16 additions and 5 deletions

@ -95,7 +95,11 @@ class creatorForm(QtGui.QDialog):
for i in range(1,self.table.rowCount()):
hlist=[]
for j in range(self.table.columnCount()):
hlist.append(compatibility.get_py_str(self.table.item(i,j).text()))
try:
hlist.append(compatibility.get_py_str(self.table.item(i,j).text()))
except:
QtGui.QMessageBox.information(None,QtGui.QApplication.translate("Form", "Error"),QtGui.QApplication.translate("Form", "Unset value in %d,%d!"% (i+1,j+1)) )
return None
r.content.add(tuple(hlist))
return r

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'relational_gui/maingui.ui'
#
# Created: Thu Oct 13 21:38:18 2011
# Created: Thu Oct 13 22:31:56 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!

@ -58,6 +58,13 @@
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Remember that new relations and modified relations are not automatically saved</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'relational_gui/survey.ui'
#
# Created: Thu Oct 13 21:38:18 2011
# Created: Thu Oct 13 22:31:56 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'relational_pyside/maingui.ui'
#
# Created: Thu Oct 13 21:38:18 2011
# Created: Thu Oct 13 22:31:56 2011
# by: pyside-uic 0.2.13 running on PySide 1.0.7
#
# WARNING! All changes made in this file will be lost!

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'relational_pyside/survey.ui'
#
# Created: Thu Oct 13 21:38:18 2011
# Created: Thu Oct 13 22:31:56 2011
# by: pyside-uic 0.2.13 running on PySide 1.0.7
#
# WARNING! All changes made in this file will be lost!