python3: fix implicit relative submodule imports (#31143)

This commit is contained in:
Paul Marillonnet 2019-01-24 12:14:19 +01:00
parent f6fa7f7c56
commit 20bcf5ac0c
6 changed files with 8 additions and 8 deletions

View File

@ -68,7 +68,7 @@ from authentic2.saml.common import redirect_next, asynchronous_bindings, \
get_saml2_metadata, get_sp_options_policy, \
get_entity_id, AUTHENTIC_SAME_ID_SENTINEL
import authentic2.saml.saml2utils as saml2utils
from common import kill_django_sessions
from authentic2.idp.saml.common import kill_django_sessions
from authentic2.constants import NONCE_FIELD_NAME
from authentic2.idp import signals as idp_signals

View File

@ -1,3 +1,3 @@
from utils import accept_nonce, cleanup_nonces
from authentic2.nonce.utils import accept_nonce, cleanup_nonces
__all__ = ('accept_nonce', 'cleanup_nonces')

View File

@ -24,7 +24,7 @@ try:
except ImportError:
from django.contrib.contenttypes.generic import GenericRelation
from fields import PickledObjectField, MultiSelectField
from authentic2.saml.fields import PickledObjectField, MultiSelectField
from . import app_settings, managers
from .. import managers as a2_managers

View File

@ -3,7 +3,7 @@ from __future__ import print_function
import xml.etree.ElementTree as etree
import collections
from authentic2.compat_lasso import lasso
import x509utils
from authentic2.saml import x509utils
import base64
import binascii
import re

View File

@ -2,7 +2,7 @@ from __future__ import print_function
import xml.etree.ElementTree as ET
from utils import FancyTreeBuilder
from authentic2.saml.shibboleth.utils import FancyTreeBuilder
class NS(object):
AFP = 'urn:mace:shibboleth:2.0:afp'

View File

@ -17,9 +17,9 @@ from authentic2.constants import NONCE_FIELD_NAME
from authentic2.views import logout as logout_view
from authentic2 import hooks
from models import Ticket, Service
from utils import make_id
from constants import (SERVICE_PARAM, RENEW_PARAM, GATEWAY_PARAM,
from authentic2_idp_cas.models import Ticket, Service
from authentic2_idp_cas.utils import make_id
from authentic2_idp_cas.constants import (SERVICE_PARAM, RENEW_PARAM, GATEWAY_PARAM,
TICKET_PARAM, CANCEL_PARAM, SERVICE_TICKET_PREFIX,
INVALID_REQUEST_ERROR, INVALID_TICKET_SPEC_ERROR,
INVALID_SERVICE_ERROR, INVALID_TICKET_ERROR,