Skip to content

Commit 39bfe7f

Browse files
author
Aitor Magán García
committed
Merge branch 'develop' for release 0.3.3
2 parents 0014234 + 03db821 commit 39bfe7f

File tree

6 files changed

+514
-17
lines changed

6 files changed

+514
-17
lines changed

README.md

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
CKAN Data Requests [![Build Status](https://build.conwet.fi.upm.es/jenkins/buildStatus/icon?job=ckan_datarequests)](https://build.conwet.fi.upm.es/jenkins/job/ckan_datarequests/)
2-
=====================
1+
# CKAN Data Requests [![Build Status](https://build.conwet.fi.upm.es/jenkins/buildStatus/icon?job=ckan_datarequests)](https://build.conwet.fi.upm.es/jenkins/job/ckan_datarequests/)
32

43
CKAN extension that allows users to ask for datasets that are not already published in the CKAN instance. In this way we can set up a Data Market, not only with data supplies but also with data demands.
54

6-
How it works
7-
------------
5+
## How it works
6+
87
You have two ways for creating, updating, deleting, viewing and closing a datarequest: you can use the graphical interface or the programatic API.
98

109
### User Interface
@@ -14,10 +13,10 @@ If you prefer to use the graphical interface, you should click on the "Data Requ
1413
* **Description**: a long description for your data request. You should include as much details as you can in order to allow others to understand you needs and upload a dataset that fulfil your requeriments.
1514
* **Organization**: in some cases, you want to ask specific data to an specific organization. If you are in such situation, you should complete this field.
1615

17-
Once that you have created your data request, you can view it by clicking on the link provided when you created it. When you are the owner of a data request, you will also be able of:
18-
* **Closing the data request** if you consider that there is a new dataset that fulfil your needs
19-
* **Updating the data request** if you can to add/remove some information
20-
* **Deleting the data request** if you do not want it to be available any more
16+
Once that you have created your data request, you can view it by clicking on the link provided when you created it. When you are the owner of a data request, you will also be able to:
17+
* **Close the data request** if you consider that there is a new dataset that fulfil your needs
18+
* **Update the data request** if you can to add/remove some information
19+
* **Delete the data request** if you do not want it to be available any more
2120

2221
### API
2322
On the other hand, you can also use the API. To access this API, you should POST the following URL (as you do for other actions):
@@ -156,8 +155,8 @@ Action to delete a comment of a data request. Access rights will be checked befo
156155
##### Returns:
157156
A dict with the data request comment (`id`, `user_id`, `datarequest_id`, `time` and `comment`)
158157

159-
Installation
160-
------------
158+
## Installation
159+
161160
Install this extension in your CKAN instance is as easy as intall any other CKAN extension.
162161

163162
* Activate your virtual environment
@@ -193,8 +192,8 @@ sudo service apache2 restart
193192
```
194193
* That's All!
195194
196-
Translations
197-
------------
195+
## Translations
196+
198197
Help us to translate this extension so everyone can create data requests. Currently, the extension is translated to English and Spanish. If you want to contribute with your translation, the first step is to close this repo. Then, create the locale for your translation by executing:
199198
200199
```
@@ -216,10 +215,17 @@ python setup.py compile_catalog
216215
217216
This will generate the required `mo` file. Once this file has been generated, commit your changes and create a Pull Request.
218217
219-
Tests
220-
-----
218+
## Tests
219+
221220
This sofware contains a set of test to detect errors and failures. You can run this tests by running the following command (this command will generate coverage reports):
222221
```
223222
python setup.py nosetests
224223
```
225224
**Note:** The `test.ini` file contains a link to the CKAN `test-core.ini` file. You will need to change that link to the real path of the file in your system (generally `/usr/lib/ckan/default/src/ckan/test-core.ini`).
225+
226+
## Changelog
227+
228+
### v0.3.3
229+
230+
* New: German Translation (thanks to @kvlahrosch)
231+

bin/setup_and_test.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ POSTGRES_PORT=${POSTGRES_PORT:=5432}
1212
echo "Downloading CKAN..."
1313
git clone https://github.com/ckan/ckan
1414
cd ckan
15-
git checkout release-v2.5.2
15+
git checkout release-v2.5.3
1616
cd $WD
1717

1818

@@ -31,7 +31,7 @@ then
3131
if [ ! -d "$CACHE_DIR/$SOLAR_UNZIP_FOLDER" ]
3232
then
3333
# Download the solar installation file if it does not exist
34-
wget --no-verbose --timestamping --directory-prefix=$CACHE_DIR http://ftp.cixug.es/apache/lucene/solr/4.10.4//$FILE
34+
wget --no-verbose --timestamping --directory-prefix=$CACHE_DIR http://archive.apache.org/dist/lucene/solr/4.10.4/$FILE
3535

3636
# Unzip the folder
3737
tar -xf "$CACHE_DIR/$FILE" --directory "$CACHE_DIR"
@@ -59,6 +59,10 @@ source virtualenv/bin/activate
5959
pip install --upgrade pip
6060

6161

62+
# Force html5lib version to be used
63+
pip install html5lib==0.9999999
64+
65+
6266
echo "Installing CKAN dependencies..."
6367
cd ckan
6468
python setup.py develop
Binary file not shown.

0 commit comments

Comments
 (0)