# HG changeset patch # User Thierry Florac # Date 1594825586 -7200 # Node ID 9eaa98fb60c408a4a3690a1f6522cc0bf87ac68c # Parent 0a295da319810dc292849a91edd71ae26f4e5c69 Moved MyAMS resources to dedicated package diff -r 0a295da31981 -r 9eaa98fb60c4 src/pyams_default_theme/__init__.py --- a/src/pyams_default_theme/__init__.py Wed Jul 08 09:59:01 2020 +0200 +++ b/src/pyams_default_theme/__init__.py Wed Jul 15 17:06:26 2020 +0200 @@ -12,12 +12,13 @@ __docformat__ = 'restructuredtext' -from fanstatic import Resource, Library +from fanstatic import Library, Resource from pyramid.i18n import TranslationStringFactory -from pyams_skin import bootstrap_css, bootstrap, bootstrap_modal_css, myams_js_require +from myams import bootstrap, bootstrap_css, bootstrap_modal_css, myams_js_require from pyams_utils.fanstatic import ExternalResource + _ = TranslationStringFactory('pyams_default_theme') diff -r 0a295da31981 -r 9eaa98fb60c4 src/pyams_default_theme/features/share/portlet/__init__.py --- a/src/pyams_default_theme/features/share/portlet/__init__.py Wed Jul 08 09:59:01 2020 +0200 +++ b/src/pyams_default_theme/features/share/portlet/__init__.py Wed Jul 15 17:06:26 2020 +0200 @@ -14,17 +14,16 @@ from zope.interface import Interface +from myams import awesomefonts_css from pyams_content.features.share.interfaces import ISocialShareManager from pyams_content.features.share.portlet import IToolboxPortletSettings +from pyams_default_theme import _ from pyams_portal.interfaces import IPortalContext, IPortletRenderer from pyams_portal.portlet import PortletRenderer -from pyams_skin import awesomefonts_css from pyams_skin.layer import IPyAMSLayer from pyams_template.template import template_config from pyams_utils.adapter import adapter_config -from pyams_default_theme import _ - @adapter_config(context=(IPortalContext, IPyAMSLayer, Interface, IToolboxPortletSettings), provides=IPortletRenderer)