Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(2)  |  Derive(2)  |  Import(5)
Message a Validator should return

src/p/i/pida-0.6.2/pida-plugins/rst/rst.py   pida(Download)
# PIDA imports
from pida.core.languages import LanguageService, Outliner, Validator
from pida.utils.languages import (LANG_PRIO,
    LANG_OUTLINER_TYPES, OutlineItem,
    LANG_VALIDATOR_TYPES, LANG_VALIDATOR_SUBTYPES, ValidationError)
                # not sure why this happens...
                if lineno:
                    yield ValidationError (message=message,
                                           type_=type_,
                                           subtype=self.subtype,

src/p/i/pida-0.6.2/pida-plugins/python/python.py   pida(Download)
    Documentator, External)
 
from pida.utils.languages import (LANG_COMPLETER_TYPES,
    LANG_VALIDATOR_TYPES, LANG_VALIDATOR_SUBTYPES, LANG_OUTLINER_TYPES, 
    LANG_PRIO, Definition, Suggestion, Documentation, ValidationError)
class PythonError(ValidationError):
    def get_markup(self):
        args = [('<b>%s</b>' % arg) for arg in self.message_args]
        message_string = self.message % tuple(args)
        if self.type_ == LANG_VALIDATOR_TYPES.ERROR:

src/p/i/pida-0.6.2/pida-plugins/python_lint/python_lint.py   pida(Download)
 
from pida.core.languages import (LanguageService, Validator, External)
from pida.utils.languages import (LANG_COMPLETER_TYPES,
    LANG_VALIDATOR_TYPES, LANG_VALIDATOR_SUBTYPES, LANG_PRIO,
   Definition, Suggestion, Documentation, ValidationError)
class PythonError(ValidationError, Log):
    """
    Validator class for PyLint errrors
    """
    def get_markup(self):

src/p/i/pida-0.6.2/pida/core/languages.py   pida(Download)
from pida.core.service import Service
from pida.core.features import FeaturesConfig
from pida.utils.languages import (LANG_COMPLETER_TYPES,
    LANG_VALIDATOR_TYPES, LANG_VALIDATOR_SUBTYPES, LANG_PRIO,
    Suggestion, Definition, ValidationError, Documentation)

src/p/i/pida-0.6.2/tests/core/test_languages_extern.py   pida(Download)
import py
import os
#from pida.core.doctype import DocType
#from pida.core.testing import test, assert_equal, assert_notequal
from pida.utils.languages import OutlineItem, ValidationError, Definition, \
    def get_validations(self):
        yield os.getpid()
        for i in xrange(50):
            yield ValidationError(message="error %s" % i)