README is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ {"title": "Crime & Justice", | |
"description": "Statistics on crimes, policing, justice, courts, prisons, offenders, borders, and immigration.", | |
}, | |
{"title": "Defence", | |
"description": "Statistics on the armed forces, Ministry of Defence, workforce, health & safety and search & rescue.", | |
}, | |
{"title": "Economy & Business", | |
"description": "Industry and small businesses. Statistics, surveys, economic indicators, import/exports and trade. Excludes government spending transactions & salaries. Excludes household finances", | |
}, | |
{"title": "Education", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dread@dmbp:~/v-to-go$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Importing base box 'precise64'... | |
[default] Matching MAC address for NAT networking... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Creating shared folders metadata... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example dataset extra field "metadata_provenance" | |
This dataset originates at Barnet Open Data, is then harvested to London Datastore and then harvested onto data.gov.uk. When it is viewed in data.gov.uk it has this metadata_provenance: | |
[ | |
{ | |
"activity_occurred": "2014-10-21T09:04:19.753433", | |
"activity": "harvest", | |
"harvest_source_url": "https://open.barnet.gov.uk/", | |
"harvest_source_title": "Barnet Open Data", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="fdfd"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nose.tools | |
import ckan.model as model | |
assert_equals = nose.tools.assert_equals | |
assert_not_equals = nose.tools.assert_not_equals | |
Resource = model.Resource | |
class TestResource(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; database name = connect string | |
[databases] | |
ckan = host=127.0.0.1 dbname=ckan user=dgu password=REDACTED pool_size=40 | |
;;dgudatastore = host=127.0.0.1 dbname=dgudatastore user=dgu password=REDACTED pool_size=10 | |
;;dgudatastore_ro = host=127.0.0.1 dbname=dgudatastore user=dguro password=REDACTED pool_size=10 | |
dgucelery = host=127.0.0.1 dbname=dgucelery user=dgu password=redacted pool_size=5 | |
;; Configuation section | |
;; Configuation section | |
[pgbouncer] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dread@dmbp:~$ git clone git@github.com:datagovuk/dgu-vagrant-puppet v-test | |
Cloning into 'v-test'... | |
remote: Counting objects: 1742, done. | |
remote: Compressing objects: 100% (9/9), done. | |
remote: Total 1742 (delta 2), reused 0 (delta 0), pack-reused 1733 | |
Receiving objects: 100% (1742/1742), 40.88 MiB | 2.02 MiB/s, done. | |
Resolving deltas: 100% (836/836), done. | |
Checking connectivity... done. | |
dread@dmbp:~$ cd v-test | |
dread@dmbp:~/v-test$ git checkout togo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> requests.get('http://uk-air.defra.gov.uk/datastore/pcb/2010_TOMPs_PCB_Data.xlsx', headers={'User-agent': 'python-requests'}) | |
<Response [403]> | |
>>> requests.get('http://uk-air.defra.gov.uk/datastore/pcb/2010_TOMPs_PCB_Data.xlsx', headers={'User-agent': 'python-request'}) | |
<Response [200]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ckan/tests/functional/test_user.py b/ckan/tests/functional/test_user.py | |
index 4ae63c0..3afc1f2 100644 | |
--- a/ckan/tests/functional/test_user.py | |
+++ b/ckan/tests/functional/test_user.py | |
@@ -168,12 +168,14 @@ class TestUserController(FunctionalTestCase, HtmlCheckMethods, PylonsTestCase, S | |
# first get redirected to user/logged_in | |
assert_equal(res.status, 302) | |
- assert res.header('Location').startswith('http://localhost/user/logged_in') | |
+ assert res.header('Location').startswith('http://localhost/user/logged_in') or \ |
OlderNewer