Skip to content

Commit

Permalink
Merge pull request #127 from geotribu/change/switch-geotribu-url
Browse files Browse the repository at this point in the history
Change l'URL du site Geotribu
  • Loading branch information
Guts authored Aug 8, 2023
2 parents 3c53eed + 2b27d4c commit c5d6008
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Unreleased
## 0.6.0 - 2021-06-04

- prise en compte du mode debug
- activation du module permettant de changer/restaurer le splash screen ([voir l'article dédié](https://static.geotribu.fr/articles/2021/2021-06-17_qgis_personnaliser_splash_screen/))
- activation du module permettant de changer/restaurer le splash screen ([voir l'article dédié](https://geotribu.fr/articles/2021/2021-06-17_qgis_personnaliser_splash_screen/))
- traduction en français et réduction du warning de non traduction. A noter que, contrairement aux bonnes pratiques de git, les fichiers `.qm` (binaires) sont stockés dans le dépôt, jusqu'à ce que [le ticket upstream](https://github.com/opengisch/qgis-plugin-ci/issues/47) soit résolu.
- documentation : ajout des balises OpenGraph, de pages manquantes et améliorations diverses
- CI : améliorations diverses (emojis...)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ development/history
---
caption: Ressources
---
Article de présentation <https://static.geotribu.fr/articles/2021/2021-04-01_qtribu_plugin_qgis_geotribu/>
Article de présentation <https://geotribu.fr/articles/2021/2021-04-01_qtribu_plugin_qgis_geotribu/>
```
2 changes: 1 addition & 1 deletion docs/usage/feature_latest_article.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dernier article publié

:::{note}
Pré-requis : une connexion internet autorisée sur le [flux RSS de Geotribu](https://static.geotribu.fr/feed_rss_created.xml).
Pré-requis : une connexion internet autorisée sur le [flux RSS de Geotribu](https://geotribu.fr/feed_rss_created.xml).
:::

## Notification d'un nouveau contenu
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/splash_changer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changer le splash screen

:::{note}
Cette fonctionnalité a été conçue pour illustrer l'article : [Personnaliser l'image au lancement de QGIS](https://static.geotribu.fr/articles/2021/2021-06-11_qgis_personnaliser_splash_screen/)
Cette fonctionnalité a été conçue pour illustrer l'article : [Personnaliser l'image au lancement de QGIS](https://geotribu.fr/articles/2021/2021-06-11_qgis_personnaliser_splash_screen/)
:::

## Appliquer le splash screen personnalisé
Expand Down
8 changes: 4 additions & 4 deletions qtribu/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def local_path(self, base_path: Path = Path().home() / ".geotribu/cdn/") -> Path
name="Représentation cartographique",
description="Dataviz, cartographies, art...",
order=3,
example="https://static.geotribu.fr/rdp/2021/rdp_2021-06-18/#francepixel-bati",
example="https://geotribu.fr/rdp/2021/rdp_2021-06-18/#francepixel-bati",
),
RdpNewsCategory(
name="OpenStreetMap",
Expand All @@ -76,20 +76,20 @@ def local_path(self, base_path: Path = Path().home() / ".geotribu/cdn/") -> Path
name="Open Data",
description="Tout ce qui a trait aux données ouvertes.",
order=6,
example="https://static.geotribu.fr/rdp/2020/rdp_2020-12-11/#open-data",
example="https://geotribu.fr/rdp/2020/rdp_2020-12-11/#open-data",
),
RdpNewsCategory(
name="Geo-event",
description="Evénements, salons, conférences...",
order=7,
example="SAGEO, GéoDataDays, CartoMob, "
"https://static.geotribu.fr/rdp/2020/rdp_2020-12-11/#rencontres-des-utilisateurs-francophones-de-qgis)...",
"https://geotribu.fr/rdp/2020/rdp_2020-12-11/#rencontres-des-utilisateurs-francophones-de-qgis)...",
),
RdpNewsCategory(
name="Divers",
description="Tout ce qui ne rentre pas dans les autres sections.",
order=8,
example="https://static.geotribu.fr/rdp/2021/rdp_2021-03-26/#les-villes-ont-elles-un-corps",
example="https://geotribu.fr/rdp/2021/rdp_2021-03-26/#les-villes-ont-elles-un-corps",
),
)

Expand Down
2 changes: 1 addition & 1 deletion qtribu/gui/form_rdp_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, parent=None):
self.btn_box.helpRequested.connect(
partial(
QDesktopServices.openUrl,
QUrl("https://static.geotribu.fr/contribuer/rdp/add_news/"),
QUrl("https://contribuer.geotribu.fr/rdp/add_news/"),
)
)

Expand Down
2 changes: 1 addition & 1 deletion qtribu/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name=QTribu
about=Garde le Qontact avec ta Geotribu !
category=Web
description=Geotribu (https://static.geotribu.fr) content right into QGIS.
description=Geotribu (https://geotribu.fr) content right into QGIS.
icon=resources/images/logo_geotribu.png
tags=geotribu,blog,rss,splash,community

Expand Down
2 changes: 1 addition & 1 deletion qtribu/toolbelt/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PlgSettingsStructure:
version: str = __version__

# RSS feed
rss_source: str = "https://static.geotribu.fr/feed_rss_created.xml"
rss_source: str = "https://geotribu.fr/feed_rss_created.xml"

# usage
browser: int = 1
Expand Down
10 changes: 4 additions & 6 deletions tests/dev/dev_network_blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

qntwk_req = QgsBlockingNetworkRequest()
req_status = qntwk_req.get(
request=QNetworkRequest(
QUrl("https://static.geotribu.fr/feed_rss_created.xml")
),
request=QNetworkRequest(QUrl("https://geotribu.fr/feed_rss_created.xml")),
forceRefresh=False,
)

Expand All @@ -30,9 +28,9 @@
req_reply = qntwk_req.reply()
print(type(req_reply.content()))
print(req_reply.rawHeaderList())
print(req_reply.rawHeader(b'Content-Type'))
print(req_reply.rawHeader(b'last-modified'))
print(req_reply.rawHeader(b'Content-type') == 'application/xml')
print(req_reply.rawHeader(b"Content-Type"))
print(req_reply.rawHeader(b"last-modified"))
print(req_reply.rawHeader(b"Content-type") == "application/xml")
print(isinstance(req_reply.content(), QByteArray))
# print(req_reply.content())

Expand Down
5 changes: 2 additions & 3 deletions tests/dev/dev_rss_simple.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@

from email.utils import parsedate, parsedate_tz, parsedate_to_datetime
from urllib.request import urlopen
import xml.etree.ElementTree as ET

PATTERN_INCLUDE = ["articles/", "rdp/"]

tree = ET.parse(urlopen("https://static.geotribu.fr/feed_rss_created.xml"))
tree = ET.parse(urlopen("https://geotribu.fr/feed_rss_created.xml"))
root = tree.getroot()

print(root)
articles = root.findall('channel/item')
articles = root.findall("channel/item")
print(len(articles))

for art in articles:
Expand Down

0 comments on commit c5d6008

Please sign in to comment.