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

def checkload::NewDruid::loader_next (   self,
  page,
  druid 
)

Check that the filename we get from the user is a valid checklist.

Arguments:
:page: Druid page we're on.
:druid: Druid widget.

Definition at line 390 of file checkload.py.

00390                                       :
        '''Check that the filename we get from the user is a valid checklist.

        Arguments:
        :page: Druid page we're on.
        :druid: Druid widget.
        '''
        try:
            self.newList = checklist.CheckList(self.browseEntry.get_text())
        except error.InvalidChecklist, ex_instance:
            errorDialog = gtk.MessageDialog(self,
                    gtk.DIALOG_DESTROY_WITH_PARENT,
                    gtk.MESSAGE_WARNING,
                    gtk.BUTTONS_CLOSE,
                    'We were unable to load the specified file.'
                    ' The error given was:\n' + ex_instance.msg +
                    '\n\nPlease select another file.')
            errorDialog.set_title('Unable to load file')
            errorDialog.set_default_response(gtk.RESPONSE_CLOSE)
            response = errorDialog.run()
            errorDialog.destroy()
            #self.browseEntry.set_text('')
            druid.set_page(page)
            return True
        druid.set_page(self.propertiesPage)
        self.propBackPage = page
        return True

    def selector_next(self, page, druid):


Generated by  Doxygen 1.6.0   Back to index