Pass extension pages to all extensions' "project settings" pages.

This commit is contained in:
2017-05-31 10:33:24 +02:00
parent f953f1e51b
commit 2c78697e80
3 changed files with 22 additions and 9 deletions

View File

@@ -5,9 +5,11 @@ unique usernames from emails. Calls out to the pillar_server.modules.blender_id
module for Blender ID communication.
"""
import logging
import datetime
import logging
import typing
import bson
from bson import tz_util
from flask import g
from flask import request
@@ -226,7 +228,7 @@ def _delete_expired_tokens():
# log.debug('Deleted %i expired authentication tokens', result.deleted_count)
def current_user_id():
def current_user_id() -> typing.Optional[bson.ObjectId]:
"""None-safe fetching of user ID. Can return None itself, though."""
current_user = g.get('current_user') or {}