# HG changeset patch # User Damien Correia # Date 1542116929 -3600 # Node ID 58c9992cb4dcdf1ffc55f77ae50ffc7d00dd9bd9 # Parent e5d91569642f8840eadb21f3d8e825bc37f3a921# Parent a12caaa4299d6031e7d77845659b74b0003f9aa9 Merge default diff -r e5d91569642f -r 58c9992cb4dc .hgtags --- a/.hgtags Tue Oct 09 17:51:18 2018 +0200 +++ b/.hgtags Tue Nov 13 14:48:49 2018 +0100 @@ -10,3 +10,6 @@ 461fa3beb4386cf6764d60d59c4854fbba01833b 0.1.9 d02350fa13e7d76393c414edecef40cd18cbb837 0.1.10 9264287735a6f0538eb4580567e914cfb91383f2 0.1.11 +a948e0a00f5ce1f6d79d559ade979a3397f0d722 0.1.12 +39482eb2520fa8610d376e575c10dc2bcc79abc6 0.1.13 +fe7f30ba737d6790b949bac378f8539dcb3ab62f 0.1.14 diff -r e5d91569642f -r 58c9992cb4dc buildout.cfg --- a/buildout.cfg Tue Oct 09 17:51:18 2018 +0200 +++ b/buildout.cfg Tue Nov 13 14:48:49 2018 +0100 @@ -79,4 +79,4 @@ eggs = pyams_default_theme [test] [versions] -pyams_default_theme = 0.1.11 +pyams_default_theme = 0.1.15 diff -r e5d91569642f -r 58c9992cb4dc docs/HISTORY.txt --- a/docs/HISTORY.txt Tue Oct 09 17:51:18 2018 +0200 +++ b/docs/HISTORY.txt Tue Nov 13 14:48:49 2018 +0100 @@ -1,6 +1,23 @@ History ======= +0.1.14 +------ + - updated default fonts + - updated renderers and CSS styles + +0.1.13 +------ + - updated meta-headers + +0.1.12 +------ + - added site summary portlet renderer + - added default associations renderer + - added content link illustration adapter + - updated pictures renderers + - updated default video renderer + 0.1.11 ------ - added method to pictograms paragraph renderer diff -r e5d91569642f -r 58c9992cb4dc setup.py --- a/setup.py Tue Oct 09 17:51:18 2018 +0200 +++ b/setup.py Tue Nov 13 14:48:49 2018 +0100 @@ -22,7 +22,7 @@ README = os.path.join(DOCS, 'README.txt') HISTORY = os.path.join(DOCS, 'HISTORY.txt') -version = '0.1.11' +version = '0.1.15' long_description = open(README).read() + '\n\n' + open(HISTORY).read() tests_require = [] diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme.egg-info/PKG-INFO --- a/src/pyams_default_theme.egg-info/PKG-INFO Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme.egg-info/PKG-INFO Tue Nov 13 14:48:49 2018 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pyams-default-theme -Version: 0.1.11 +Version: 0.1.14 Summary: PyAMS default theme Home-page: http://hg.ztfy.org/pyams/pyams_default_theme Author: Thierry Florac @@ -11,6 +11,23 @@ History ======= + 0.1.14 + ------ + - updated default fonts + - updated renderers and CSS styles + + 0.1.13 + ------ + - updated meta-headers + + 0.1.12 + ------ + - added site summary portlet renderer + - added default associations renderer + - added content link illustration adapter + - updated pictures renderers + - updated default video renderer + 0.1.11 ------ - added method to pictograms paragraph renderer diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme.egg-info/SOURCES.txt --- a/src/pyams_default_theme.egg-info/SOURCES.txt Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme.egg-info/SOURCES.txt Tue Nov 13 14:48:49 2018 +0100 @@ -18,9 +18,11 @@ src/pyams_default_theme.egg-info/top_level.txt src/pyams_default_theme/component/__init__.py src/pyams_default_theme/component/association/__init__.py +src/pyams_default_theme/component/association/viewlet.py src/pyams_default_theme/component/association/interfaces/__init__.py src/pyams_default_theme/component/association/templates/association-default.pt src/pyams_default_theme/component/association/templates/association-remote-content.pt +src/pyams_default_theme/component/association/templates/association-viewlet.pt src/pyams_default_theme/component/gallery/__init__.py src/pyams_default_theme/component/gallery/templates/renderer-default.pt src/pyams_default_theme/component/illustration/__init__.py @@ -117,6 +119,9 @@ src/pyams_default_theme/shared/imagemap/templates/render.pt src/pyams_default_theme/shared/logo/__init__.py src/pyams_default_theme/shared/logo/templates/logos-default.pt +src/pyams_default_theme/shared/site/__init__.py +src/pyams_default_theme/shared/site/portlet/__init__.py +src/pyams_default_theme/shared/site/portlet/templates/site-summary.pt src/pyams_default_theme/shared/view/__init__.py src/pyams_default_theme/shared/view/portlet/__init__.py src/pyams_default_theme/shared/view/portlet/templates/view-items-list.pt diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme/__init__.py --- a/src/pyams_default_theme/__init__.py Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme/__init__.py Tue Nov 13 14:48:49 2018 +0100 @@ -15,6 +15,7 @@ from fanstatic import Resource, Library from pyams_skin import myams_js, bootstrap_css, bootstrap +from pyams_utils.fanstatic import ExternalResource from pyramid.i18n import TranslationStringFactory _ = TranslationStringFactory('pyams_default_theme') @@ -22,9 +23,12 @@ library = Library('pyams_default_theme', 'resources') +pyams_default_theme_fonts = ExternalResource(library, 'https://fonts.googleapis.com/css?family=Lato:300|Oswald', + resource_type='css') + pyams_default_theme_css = Resource(library, 'css/pyams-default.css', minified='css/pyams-default.min.css', - depends=[bootstrap_css, ]) + depends=[bootstrap_css, pyams_default_theme_fonts]) pyams_default_theme = Resource(library, 'js/pyams-default.js', minified='js/pyams-default.min.js', diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme/component/association/__init__.py --- a/src/pyams_default_theme/component/association/__init__.py Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme/component/association/__init__.py Tue Nov 13 14:48:49 2018 +0100 @@ -12,29 +12,25 @@ __docformat__ = 'restructuredtext' - -# import standard library - -# import packages from persistent import Persistent from zope.interface import implementer from zope.location import Location from zope.schema.fieldproperty import FieldProperty -# import interfaces -from pyams_content.component.association.interfaces import IAssociationParagraph, IAssociationInfo, \ - IAssociationContainer +from pyams_content.component.association.interfaces import IAssociationContainer, IAssociationInfo, \ + IAssociationParagraph from pyams_content.component.extfile import IExtFile -from pyams_content.component.links.interfaces import IInternalLink, IBaseLink -from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer +from pyams_content.component.links.interfaces import IBaseLink, IInternalLink +from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget from pyams_content.features.renderer.interfaces import IContentRenderer -from pyams_content.features.renderer.skin import BaseContentRenderer -from pyams_default_theme import _ from pyams_default_theme.component.association.interfaces import IAssociationParagraphRemoteContentRendererSettings +from pyams_default_theme.features.renderer import BaseContentRenderer from pyams_skin.layer import IPyAMSLayer from pyams_template.template import template_config from pyams_utils.adapter import adapter_config, get_annotation_adapter +from pyams_default_theme import _ + # # Associations paragraph default renderer @@ -46,16 +42,11 @@ """Associations paragraph default renderer""" label = _("Default associations renderer") - i18n_context_attrs = ('title', ) + i18n_context_attrs = ('title',) links = None attachments = None - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self.attachments = [] - self.links = [] - def get_associations(self): yield from IAssociationContainer(self.context).get_visible_items(self.request) @@ -65,12 +56,15 @@ def update(self): super().update() + self.attachments = [] + self.links = [] for item in self.get_associations(): if IExtFile.providedBy(item): self.attachments.append(item) elif IBaseLink.providedBy(item): self.links.append(item) + # # Associations paragraph remote content renderer # @@ -101,8 +95,9 @@ """Associations container remote content renderer""" label = _("Include remote content") + weight = 10 - i18n_context_attrs = ('title', ) + i18n_context_attrs = ('title',) links = () settings_interface = IAssociationParagraphRemoteContentRendererSettings diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme/component/association/templates/association-default.pt --- a/src/pyams_default_theme/component/association/templates/association-default.pt Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme/component/association/templates/association-default.pt Tue Nov 13 14:48:49 2018 +0100 @@ -1,4 +1,2 @@ - -

§ title

- ${structure:provider:pyams.association} -
+

§ title

+${structure:provider:pyams.associations} diff -r e5d91569642f -r 58c9992cb4dc src/pyams_default_theme/component/association/templates/association-viewlet.pt --- a/src/pyams_default_theme/component/association/templates/association-viewlet.pt Tue Oct 09 17:51:18 2018 +0200 +++ b/src/pyams_default_theme/component/association/templates/association-viewlet.pt Tue Nov 13 14:48:49 2018 +0100 @@ -1,21 +1,34 @@ -