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

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

Check that all required properties are filled in.

       Some properties are required so that we can finish the checklist.  This
       function checks that all required properties are filled in before
       proceeding.

Definition at line 360 of file checkload.py.

00360                                           :
        '''Check that all required properties are filled in.

       Some properties are required so that we can finish the checklist.  This
       function checks that all required properties are filled in before
       proceeding.
        '''
        # If the <Alt>F Mnemonic was used to invoke the Forward functionality,
        # the focus may not have left the last property entry box.  Setting
        # focus away from the last entry manually sets the last entry.
        druid.child_focus(gtk.DIR_TAB_FORWARD)
        if self.newList.properties.requirementsMet:
            # All required properties are set, let the druid go to the next
            # page.
            return False
        else:
            # Popup a dialog to finish entering properties
            requireDialog = gtk.MessageDialog(self,
                    gtk.DIALOG_DESTROY_WITH_PARENT,
                    gtk.MESSAGE_WARNING,
                    gtk.BUTTONS_CLOSE,
                    'There are several properties in this checklist that are'
                    ' required.  Please be sure you have entered each item'
                    ' which is displayed in italics and press Next again.')
            requireDialog.set_title('Enter All Required Properties')
            requireDialog.set_default_response(gtk.RESPONSE_CLOSE)
            response = requireDialog.run()
            requireDialog.destroy()
            return True

    def loader_next(self, page, druid):


Generated by  Doxygen 1.6.0   Back to index