+ # first check whether there are any articles in the website. If no articles
+ # are found, then website cannot be generated
+ arts = biaweb_db.get_articles (self.current_db)
+ # if no articles are found or cannot be retrieved
+ if arts == False or len (arts) == 0:
+ PyQt4.QtGui.QMessageBox.critical (self, "Error", "Cannot create website with no articles")
+ return
+