[Bf-extensions-cvs] [5725f500] blender2.8: Blender ID: updated to latest development version

Sybren A. Stüvel noreply at git.blender.org
Wed Nov 7 14:25:24 CET 2018


Commit: 5725f500a11c23707426d3b79376e74d8d802920
Author: Sybren A. Stüvel
Date:   Wed Nov 7 14:25:20 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBA5725f500a11c23707426d3b79376e74d8d802920

Blender ID: updated to latest development version

===================================================================

M	blender_id/CHANGELOG.md
M	blender_id/communication.py

===================================================================

diff --git a/blender_id/CHANGELOG.md b/blender_id/CHANGELOG.md
index 94b21376..efda8c80 100644
--- a/blender_id/CHANGELOG.md
+++ b/blender_id/CHANGELOG.md
@@ -5,6 +5,7 @@
 - Require Blender 2.80+.
 - API change: `blender_id.get_subclient_user_id()` now returns `''` instead of `None` when the user
   is not logged in.
+- Log which Blender ID instance is communicated with.
 
 
 # Version 1.5 (released 2018-07-03)
diff --git a/blender_id/communication.py b/blender_id/communication.py
index 5572b637..9960c338 100644
--- a/blender_id/communication.py
+++ b/blender_id/communication.py
@@ -55,7 +55,12 @@ def blender_id_endpoint(endpoint_path=None):
     import os
     import urllib.parse
 
-    base_url = os.environ.get('BLENDER_ID_ENDPOINT', 'https://www.blender.org/id/')
+    base_url = os.environ.get('BLENDER_ID_ENDPOINT')
+    if base_url:
+        log.warning('Using overridden Blender ID url %s', base_url)
+    else:
+        base_url = 'https://www.blender.org/id/'
+        log.info('Using standard Blender ID url %s', base_url)
 
     # urljoin() is None-safe for the 2nd parameter.
     return urllib.parse.urljoin(base_url, endpoint_path)



More information about the Bf-extensions-cvs mailing list