Skip to content

Instantly share code, notes, and snippets.

Avatar

Florian Hoedt gannebamm

View GitHub Profile
View ES.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Translators:
# Translators:
# Translators:
# Translators:
# Translators:
View document_xml_metadata_ingest.patch
Index: geonode/documents/views.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/geonode/documents/views.py b/geonode/documents/views.py
--- a/geonode/documents/views.py (revision a5a217bd49e7f91b69ace14a54cdb7219fa5d0dc)
+++ b/geonode/documents/views.py (revision 9e436c39e470b5a8aae6304f4a62ccbe00f4cf1c)
@@ -49,7 +49,8 @@
from geonode.base.forms import CategoryForm, TKeywordForm
@gannebamm
gannebamm / custom_translations.py
Created Mar 1, 2021
enable fixture texts, like iso-categories, to be fetched by makemessages command.
View custom_translations.py
# -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2020 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@gannebamm
gannebamm / commit.diff
Created Feb 25, 2021
merged docker-composition from geonode-project into geonode core codebase. added changed nginx to use own certificates instead of letsenscrypt. added LDAP stubs and example production yml and .env.
View commit.diff
diff --git a/.env b/.env
index ff474f6fab48be7c5c576135b0a99b493230433f..88dd61182fac0265d15345409b3780b1d51b9762 100644
--- a/.env
+++ b/.env
@@ -1,2 +1,203 @@
COMPOSE_PROJECT_NAME=geonode
-SET_DOCKER_ENV=production
\ No newline at end of file
+BACKUPS_VOLUME_DRIVER=local
+
@gannebamm
gannebamm / readme.md
Created Jan 14, 2021
Setup GeoNode with docker-compose on a Ubuntu 20.04
View readme.md

install tisdar based GeoNode as docker composition on Ubuntu 20.04 LTS

User

sudo adduser geonode
sudo usermod -aG sudo geonode

Docker Setup

@gannebamm
gannebamm / geonode-uwsgi.service
Created Jan 13, 2021
UWSGI service does not start (fails and restarts)
View geonode-uwsgi.service
[Unit]
Description="GeoNode UWSGI Service"
[Service]
User=tisdex
Group=www-data
# The configuration file application.properties should be here:
#change this to your workspace
WorkingDirectory=/opt/geonode
View DRAFT_check_permissions_for_notifcations.patch
Index: geonode/social/signals.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- geonode/social/signals.py (revision 3720021380ba0d2a07c39d9fa58e4fe176a4272a)
+++ geonode/social/signals.py (date 1605787715394)
@@ -177,7 +177,7 @@
""" Send a notification when rating a layer, map or document
"""
View RemoteLayer_UTF8.diff
diff --git a/geonode/layers/models.py b/geonode/layers/models.py
index 57fd4e7f8a154523f68c67328b10e9f3f5e431ad..6b66522124068bc217808ceb866abc3f034f6e3d 100644
--- a/geonode/layers/models.py
+++ b/geonode/layers/models.py
@@ -534,7 +534,7 @@ def pre_save_layer(instance, sender, **kwargs):
logger.debug("In pre_save_layer")
if instance.alternate is None:
instance.alternate = _get_alternate_name(instance)
- logger.debug("instance.alternate is: {}".format(instance.alternate))
+ logger.debug(u"instance.alternate is: {}".format(instance.alternate))
View error.log
Error on printing: Error while generating PDF: java.lang.IllegalStateException: unsupported protocol: 'jar'
at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149)
at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117)
at org.apache.commons.httpclient.HttpHost.<init>(HttpHost.java:107)
at org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:280)
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at org.mapfish.print.PDFUtils.loadImageFromUrl(PDFUtils.java:273)
at org.mapfish.print.PDFUtils.handleImageLoadError(PDFUtils.java:385)
at org.mapfish.print.PDFUtils.loadImageFromUrl(PDFUtils.java:359)
@gannebamm
gannebamm / updated_german_translation.patch
Created Mar 2, 2020
MapStore2 updated german translations patch
View updated_german_translation.patch
Index: web/client/translations/data.de-DE
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- web/client/translations/data.de-DE (revision 6de82acfe6864ca948242ff11e50127aa1caa5fd)
+++ web/client/translations/data.de-DE (date 1581588599704)
@@ -12,12 +12,12 @@
"about_ul0_li0": "MapViewer ist ein einfache Anwendung zur Ansicht von vorkonfigurierten Karten (die optional in einer Datenbank mittels GeoStore gespeichert wurden)",
"about_ul0_li1": "MapPublisher wurde entwickelt, um auf einfache und intuitive Weise Karten und Mashups zu erstellen, zu speichern und zu teilen, die auf Inhalten von bekannten Quellen wie Google Maps und OpenStreetMap oder von Diensten die auf offenen Protokollen wie OGC WMS, WFS, WMTS or TMS und so weiter basieren. Für mehr Informationen siehe die",