Skip to content
Snippets Groups Projects
Select Git revision
  • fe1172768aadaa0e86da510cb1b0053036c3d782
  • master default protected
  • add-frequency-to-form
  • dev protected
  • ckan-2.11.0
  • add-package-custom-fields
  • fix-adding-datasets-for-users-and-editors
  • add-auth-subroute
  • 71-migrate-custom-fields-to-ckanext-scheming
  • add-author-maintainer-information
  • fix-inline-flex-btns
  • fix-known-spatial-uri-validation
  • py3
  • 47-aktuelle-resource-einer-collection-wird-nicht-mehr-gefunden
  • 10-eingabe-der-dct-accrualperiodicity-in-weboberflache
  • v1.3
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.4.3
  • 1.4.2
  • 1.4.1
36 results

package_basic_fields.html

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