Blender ID: updated to latest development version

This commit is contained in:
Sybren A. Stüvel 2018-11-07 14:25:20 +01:00
parent 487778f677
commit 5725f500a1
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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)