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

All Samples(30)  |  Call(13)  |  Derive(0)  |  Import(17)

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/publisher_migration.py   ckanext-dgu(Download)
from nose.tools import assert_equal
 
from common import ScriptError, remove_readonly_fields
from ckanclient import CkanApiError
 
                org_id = self.drupal.organisation.match(dept_or_agency)
            except socket.error, e:
                raise ScriptError('Socket error connecting to %s', self.xmlrpc_url)
            except ProtocolError, e:
                raise ScriptError('XMLRPC error connecting to %s', self.xmlrpc_url)
            except ResponseError, e:
                raise ScriptError('XMLRPC response error connecting to %s for department: %r', self.xmlrpc_url, dept_or_agency)
                    org_name = self.drupal.organisation.one(org_id)
                except socket.error, e:
                    raise ScriptError('Socket error connecting to %s', self.xmlrpc_url)
                except ProtocolError, e:
                    raise ScriptError('XMLRPC error connecting to %s', self.xmlrpc_url)

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/mass_changer.py   ckanext-dgu(Download)
import copy
 
from ckan import model
from common import ScriptError, remove_readonly_fields
 
                if not self.force:
                    log.error('Aborting (avoid this with --force)')
                    raise ScriptError(err)
 
    def _get_pkg(self, pkg_ref):
        if not self._pkg_cache.has_key(pkg_ref):
            pkg = self.ckanclient.package_entity_get(pkg_ref)
            if self.ckanclient.last_status != 200:
                raise ScriptError('Could not get package ID %s: %r' % \
                log.debug('Package saved: %r' % self.ckanclient.last_message)
            else:
                raise ScriptError('Post package %s error: %s' % (pkg['name'], self.ckanclient.last_message))
 
 
                if not self.force:
                    log.error('Aborting (avoid this with --force)')
                    raise ScriptError(err)
 

src/c/k/ckanext-dgu-0.4/ckanext/dgu/scripts/mass_changer.py   ckanext-dgu(Download)
import copy
 
from ckan import model
from common import ScriptError, remove_readonly_fields
 
                if not self.force:
                    log.error('Aborting (avoid this with --force)')
                    raise ScriptError(err)
 
    def _get_pkg(self, pkg_ref):
        if not self._pkg_cache.has_key(pkg_ref):
            pkg = self.ckanclient.package_entity_get(pkg_ref)
            if self.ckanclient.last_status != 200:
                raise ScriptError('Could not get package ID %s: %r' % \
                log.debug('Package saved: %r' % self.ckanclient.last_message)
            else:
                raise ScriptError('Post package %s error: %s' % (pkg['name'], self.ckanclient.last_message))
 
 
                if not self.force:
                    log.error('Aborting (avoid this with --force)')
                    raise ScriptError(err)
 

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/ons_remove_resources.py   ckanext-dgu(Download)
from nose.tools import assert_equal
 
from common import ScriptError, remove_readonly_fields
from ckanclient import CkanApiError
 

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/ons_remove_packages.py   ckanext-dgu(Download)
from nose.tools import assert_equal
 
from common import ScriptError, remove_readonly_fields
from ckanclient import CkanApiError
 

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/ons_delete_resourceless_packages.py   ckanext-dgu(Download)
from nose.tools import assert_equal
 
from common import ScriptError, remove_readonly_fields
from ckanclient import CkanApiError
 

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/ofsted_fix.py   ckanext-dgu(Download)
from collections import defaultdict
 
from common import ScriptError, remove_readonly_fields
 
from ckanclient import CkanApiError

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/metadata_v3_migration.py   ckanext-dgu(Download)
from nose.tools import assert_equal
 
from common import ScriptError, remove_readonly_fields
from ckanclient import CkanApiError
 

src/c/k/ckanext-dgu-0.4/ckanext/dgu/scripts/ofsted_fix.py   ckanext-dgu(Download)
from collections import defaultdict
 
from common import ScriptError, remove_readonly_fields
 
from ckanclient import CkanApiError

src/c/k/ckanext-dgu-HEAD/ckanext/dgu/bin/transfer_url.py   ckanext-dgu(Download)
'''
from mass_changer import *
from common import ScriptError
 
log = __import__("logging").getLogger(__name__)

  1 | 2  Next