コード例 #1
0
ファイル: program_page_python.py プロジェクト: fk0815/brickv
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('python.start_mode')

        # In web interface mode there is nothing to configure at all
        if start_mode == Constants.PYTHON_START_MODE_WEB_INTERFACE:
            return ProgramPage.isComplete(self)

        if len(executable) == 0:
            return False

        if start_mode == Constants.PYTHON_START_MODE_SCRIPT_FILE and \
           not self.combo_script_file_selector.complete:
            return False

        if start_mode == Constants.PYTHON_START_MODE_MODULE_NAME and \
           not self.edit_module_name_checker.complete:
            return False

        if start_mode == Constants.PYTHON_START_MODE_COMMAND and \
           not self.edit_command_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(
            self)
コード例 #2
0
    def isComplete(self):
        start_mode = self.get_field('start_mode')

        if start_mode == Constants.START_MODE_CRON and \
           not self.edit_start_fields_checker.complete:
            return False

        return ProgramPage.isComplete(self)
コード例 #3
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field("php.start_mode")

        # In web interface mode there is nothing to configure at all
        if start_mode == Constants.PYTHON_START_MODE_WEB_INTERFACE:
            return ProgramPage.isComplete(self)

        if len(executable) == 0:
            return False

        if start_mode == Constants.PHP_START_MODE_SCRIPT_FILE and not self.combo_script_file_selector.complete:
            return False

        if start_mode == Constants.PHP_START_MODE_COMMAND and not self.edit_command_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #4
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field("vbnet.start_mode")

        if len(executable) == 0:
            return False

        if start_mode == Constants.VBNET_START_MODE_EXECUTABLE and not self.combo_executable_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #5
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('octave.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.OCTAVE_START_MODE_SCRIPT_FILE and \
           not self.combo_script_file_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #6
0
    def isComplete(self):
        if not self.edit_executable_checker.complete:
            return False

        if not self.lazbuild_available and \
           self.get_field('delphi.build_system') == Constants.DELPHI_BUILD_SYSTEM_LAZBUILD:
            return False

        if not self.combo_working_directory_selector.complete:
            return False

        return ProgramPage.isComplete(self)
コード例 #7
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('octave.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.OCTAVE_START_MODE_SCRIPT_FILE and \
           not self.combo_script_file_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #8
0
    def isComplete(self):
        if not self.edit_executable_checker.complete:
            return False

        if not self.lazbuild_available and \
           self.get_field('delphi.build_system') == Constants.DELPHI_BUILD_SYSTEM_LAZBUILD:
            return False

        if not self.combo_working_directory_selector.complete:
            return False

        return ProgramPage.isComplete(self)
コード例 #9
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('csharp.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.CSHARP_START_MODE_EXECUTABLE and \
           not self.combo_executable_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(
            self)
コード例 #10
0
ファイル: program_page_ruby.py プロジェクト: vszurma/brickv
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field("ruby.start_mode")

        if len(executable) == 0:
            return False

        if start_mode == Constants.RUBY_START_MODE_SCRIPT_FILE and not self.combo_script_file_selector.complete:
            return False

        if start_mode == Constants.RUBY_START_MODE_COMMAND and not self.edit_command_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #11
0
ファイル: program_page_ruby.py プロジェクト: fk0815/brickv
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('ruby.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.RUBY_START_MODE_SCRIPT_FILE and \
           not self.combo_script_file_selector.complete:
            return False

        if start_mode == Constants.RUBY_START_MODE_COMMAND and \
           not self.edit_command_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #12
0
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('java.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.JAVA_START_MODE_MAIN_CLASS and \
           not self.combo_main_class_checker.complete:
            return False

        if start_mode == Constants.JAVA_START_MODE_JAR_FILE and \
           not self.combo_jar_file_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #13
0
ファイル: program_page_java.py プロジェクト: jose1711/brickv
    def isComplete(self):
        executable = self.get_executable()
        start_mode = self.get_field('java.start_mode')

        if len(executable) == 0:
            return False

        if start_mode == Constants.JAVA_START_MODE_MAIN_CLASS and \
           not self.combo_main_class_checker.complete:
            return False

        if start_mode == Constants.JAVA_START_MODE_JAR_FILE and \
           not self.combo_jar_file_selector.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #14
0
    def isComplete(self):
        stdin_redirection = self.get_field('stdin_redirection')
        stdout_redirection = self.get_field('stdout_redirection')
        stderr_redirection = self.get_field('stderr_redirection')

        if stdin_redirection == Constants.STDIN_REDIRECTION_FILE and \
           not self.combo_stdin_file_checker.complete:
            return False

        if stdout_redirection == Constants.STDOUT_REDIRECTION_FILE and \
           not self.edit_stdout_file_checker.complete:
            return False

        if stderr_redirection == Constants.STDERR_REDIRECTION_FILE and \
           not self.edit_stderr_file_checker.complete:
            return False

        return ProgramPage.isComplete(self)
コード例 #15
0
    def isComplete(self):
        stdin_redirection  = self.get_field('stdin_redirection')
        stdout_redirection = self.get_field('stdout_redirection')
        stderr_redirection = self.get_field('stderr_redirection')

        if stdin_redirection == Constants.STDIN_REDIRECTION_FILE and \
           not self.combo_stdin_file_checker.complete:
            return False

        if stdout_redirection == Constants.STDOUT_REDIRECTION_FILE and \
           not self.edit_stdout_file_checker.complete:
            return False

        if stderr_redirection == Constants.STDERR_REDIRECTION_FILE and \
           not self.edit_stderr_file_checker.complete:
            return False

        return ProgramPage.isComplete(self)
コード例 #16
0
    def isComplete(self):
        flavor     = self.get_field('javascript.flavor')
        executable = self.get_executable()
        start_mode = self.get_field('javascript.start_mode')

        if flavor == Constants.JAVASCRIPT_FLAVOR_NODEJS:
            if len(executable) == 0:
                return False

            if start_mode == Constants.JAVASCRIPT_START_MODE_SCRIPT_FILE and \
               not self.combo_script_file_selector.complete:
                return False

            if start_mode == Constants.JAVASCRIPT_START_MODE_COMMAND and \
               not self.edit_command_checker.complete:
                return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #17
0
    def isComplete(self):
        flavor = self.get_field('javascript.flavor')
        executable = self.get_executable()
        start_mode = self.get_field('javascript.start_mode')

        if flavor == Constants.JAVASCRIPT_FLAVOR_NODEJS:
            if len(executable) == 0:
                return False

            if start_mode == Constants.JAVASCRIPT_START_MODE_SCRIPT_FILE and \
               not self.combo_script_file_selector.complete:
                return False

            if start_mode == Constants.JAVASCRIPT_START_MODE_COMMAND and \
               not self.edit_command_checker.complete:
                return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(
            self)
コード例 #18
0
 def isComplete(self):
     return self.download_successful and ProgramPage.isComplete(self)
コード例 #19
0
    def isComplete(self):
        if not self.edit_executable_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(self)
コード例 #20
0
ファイル: program_page_c.py プロジェクト: fk0815/brickv
    def isComplete(self):
        if not self.edit_executable_checker.complete:
            return False

        return self.combo_working_directory_selector.complete and ProgramPage.isComplete(
            self)
コード例 #21
0
 def isComplete(self):
     return self.environment_is_valid and ProgramPage.isComplete(self)
コード例 #22
0
    def isComplete(self):
        if self.edit_mode:
            return self.list_files.count() > 0 and ProgramPage.isComplete(self)

        return ProgramPage.isComplete(self)
コード例 #23
0
 def isComplete(self):
     return self.environment_is_valid and ProgramPage.isComplete(self)
コード例 #24
0
 def isComplete(self):
     return self.edit_name_checker.complete and \
            self.edit_identifier_checker.complete and \
            self.identifier_is_unique and \
            self.get_field('language') != Constants.LANGUAGE_INVALID and \
            ProgramPage.isComplete(self)
コード例 #25
0
 def isComplete(self):
     return self.edit_name_checker.complete and \
            self.edit_identifier_checker.complete and \
            self.identifier_is_unique and \
            self.get_field('language') != Constants.LANGUAGE_INVALID and \
            ProgramPage.isComplete(self)
コード例 #26
0
 def isComplete(self):
     return self.upload_successful and ProgramPage.isComplete(self)
コード例 #27
0
    def isComplete(self):
        if self.edit_mode:
            return self.list_files.count() > 0 and ProgramPage.isComplete(self)

        return ProgramPage.isComplete(self)