PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in retrieving template")
else:
# open edit dialog with title "template name" and text as the template string
PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in retrieving template")
else:
# open edit dialog with title "template name" and text as the template string