Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def qareviewer::QAReviewer::save_cb (   self,
  action,
  extra 
)

Save the current review to a file.

Definition at line 336 of file qareviewer.py.

00336                                     :
        '''Save the current review to a file.'''
        if self.checklist.filename:
            try:
                self.checklist.publish()
            except IOError, ex:
                errorDialog = gtk.MessageDialog(self.ReviewerWindow,
                        gtk.DIALOG_DESTROY_WITH_PARENT,
                        gtk.MESSAGE_WARNING,
                        gtk.BUTTONS_CLOSE,
                        'We were unable to save the review to the file you'
                        ' specified.  The error was:\n' + ex.msg +
                        '\n\nPlease select again.')
                errorDialog.set_title('Unable to save review')
                errorDialog.set_default_response(gtk.RESPONSE_CLOSE)
                response = errorDialog.run()
                errorDialog.destroy()
            else:
                self.uiManager.groups['modified'].set_sensitive(False)
        else:
            self.save_as_cb(action, extra)

    def save_as_cb(self, action, extra):


Generated by  Doxygen 1.6.0   Back to index