From 56d25c0581e49965ed6573a37f8e9308e3fe6373 Mon Sep 17 00:00:00 2001 From: Gauthier Bastien Date: Mon, 30 Sep 2019 21:49:41 +0200 Subject: [PATCH] Call allow_module 'utils' outside the iniialize method is it is not necessary to declare imio.history as additional z2 products in tests relying on it --- src/imio/history/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/imio/history/__init__.py b/src/imio/history/__init__.py index 9f1cc4c..15b8b10 100644 --- a/src/imio/history/__init__.py +++ b/src/imio/history/__init__.py @@ -1,8 +1,11 @@ -# -*- extra stuff goes here -*- +# -*- coding: utf-8 -*- + +from AccessControl import allow_module + + +allow_module('imio.history.utils') def initialize(context): """Initializer called when used as a Zope 2 product.""" - from AccessControl import allow_module - allow_module('imio.history.utils')