pkg | Read-only mirror of https://github.com/sitn/crdppf — Canton de Neuchâtel. Issues & pull requests at the source.
  • Mako 95.8%
  • Python 2.7%
  • HTML 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
François Voisard 504fa65064
Merge pull request #340 from voisardf/new_at100_classes
added the two new classes for AT100
2022-02-07 15:19:29 +01:00
apache Completely refactor WSGI application 2018-07-04 15:39:31 +02:00
crdppfportal new at100 symbols 2022-02-07 14:19:21 +01:00
mapserver fixed typo in class name 2022-02-04 11:48:49 +01:00
.flake8 new core version v2.0.0 2017-10-19 15:49:29 +02:00
.gitignore Merge pull request #277 from voisardf/pyramid_egg 2018-02-08 15:03:24 +01:00
build-javascript adapted configuration files and build 2017-11-24 14:36:38 +01:00
CantonalLogo.jpg changed and added different logo versions 2019-11-20 08:06:59 +01:00
config_db.yaml new parameter for land register area 2020-04-03 10:01:15 +02:00
config_pdf.yaml.mako added needed variables for bbox_refactoring 2021-01-08 11:56:54 +01:00
CONST_requirements.txt Updates for NESITND1 2017-11-30 15:20:35 +01:00
development.ini.mako Refactor models & DBSession 2020-05-15 10:18:46 +02:00
FederalLogo.png changed and added different logo versions 2019-11-20 08:06:59 +01:00
LICENSE adding submodule crdppf_core 2014-07-14 14:27:18 +02:00
logo_canton.png replaced placeholder logo by cantonal logo 2018-01-24 15:00:01 +01:00
logo_confederation.png basic modifications for latest version of pyramid_oereb 1.7.4 2020-05-13 13:34:12 +02:00
logo_oereb.png changed and added different logo versions 2019-11-20 08:06:59 +01:00
logo_oereb_de.png basic modifications for latest version of pyramid_oereb 1.7.4 2020-05-13 13:34:12 +02:00
logo_oereb_fr.png basic modifications for latest version of pyramid_oereb 1.7.4 2020-05-13 13:34:12 +02:00
logo_oereb_it.png basic modifications for latest version of pyramid_oereb 1.7.4 2020-05-13 13:34:12 +02:00
PLRCadastreLogo.png changed and added different logo versions 2019-11-20 08:06:59 +01:00
production.ini.mako Update Pyramid app conf files 2018-07-04 15:41:20 +02:00
pyramid_oereb_standard.yml.mako changes to make new polluted military sites data work 2020-09-03 10:50:29 +02:00
README.md Update README.md 2016-07-28 15:23:01 +02:00
setup.cfg removed static folder 2014-07-14 13:32:38 +02:00
setup.py undo version changes for this PR 2020-09-03 10:53:27 +02:00

CRDPPF Portal

Getting started

Checkout the source code:

$ git clone https://github.com/sitn/crdppf.git

or when you're using ssh key (see https://help.github.com/articles/generating-ssh-keys):

$ git clone git@github.com:sitn/crdppf.git

Get the submodule crdppf_core (https://github.com/sitn/crdppf_core.git if you'd like to get the core project too)

$ git submodule update --init

Once it is installed get all the libraries of the submodule (ext, openlayers, ...)

$ cd crdppf_core
$ git submodule update --init

maybe a

$ git submodule foreach git submodule update --init

does also the trick

Bootstrap and buildout

Not that you have to fix the setuptool and zc.buildout versions regarding what is written in the version file https://github.com/sitn/crdppf_core/blob/master/versions.cfg:

$ python bootstrap-buildout.py -v 2.5.0 --allow-site-packages --setuptools-version 16.0

Create your own buildout file by:

  • Copy-paste buildout.cfg
  • Rename the new file buildout_<user>.cfg
  • Open this file in a text editor
  • Erase all sections except the [vars] section
  • In the [vars] section, delete all lines which do not contain overwrite_me
  • At the top of the file, add the extend instruction:
[buildout]
extends = buildout.cfg

Adapt the overwrite_me values to your environment:

  • mapproxyurl has to be a single or a list of WMTS URLs (like 'http://wmts1', 'http://wmts2', ...)
  • If you do not set proxy_enabled to True, then you do not need to set the four remaining (proxy_user, proxy_pass, proxy_server, proxy_port).

Run buildout

$ ./buildout/bin/buildout -c buildout_<user>.cfg

Upgrade existing project

To upgrade an existing version of the project go into the root folder of your project Make sure your on the master branch or the branch you want to be on:

to get the list of your local branches: $ git branch

change on master if needed:

$ git checkout master

or create a new branch of your choice if you don't want to overwrite the master:

$ git checkout -b [mynewbranch]

Fetch the global application part:

$ git fetch upstream
$ git merge upstream/master

if you are updating the inital install to the generalized version you probably get a message 'could not remove crdppf/.../ext' or so. Just delete the folder by

$ rm -r crdppf

Get the submodule crdppf_core (https://github.com/sitn/crdppf_core.git if you'd like to get the core project too)

$ git submodule update --init

Once it is installed get all the libraries of the submodule (ext, openlayers, ...)

 $ cd crdppf_core
 $ git submodule update --init

Now you should be up to date and ready to (re)build the application. Don't forget to include the project in the Apache configuration and to restart.