Skip to content
Snippets Groups Projects
Select Git revision
  • dbc612f456dc31eeaaa58280315012e8eb0671e9
  • main default protected
  • release
  • OZG-8252-gitlab-pipeline
  • OZG-7774-E2E
  • OZG-5120-PoC-Native-Image
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.0
  • 0.8.0
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.0
26 results

SettingEnvironmentITCase.java

Blame
  • precondition.py 460 B
    from pylons import config
    
    
    class PreconditionViolated(Exception):
        def __init__(self, message):
            super(PreconditionViolated, self).__init__(message)
    
    
    def not_on_slave(func):
        def wrapped(*args, **kwargs):
            if config.get('ckanext.odsh.slave', False):
                raise PreconditionViolated('not allowed on slave')
            return func(*args, **kwargs)
    
        if config.get('ckanext.odsh.debug', False):
            return wrapped
        return func