Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove portlet used to show the latest news articles by section #197

Merged
merged 5 commits into from Jul 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
*.egg-info
*.mo
*.pyc
*.pyo
*~
.coverage
.installed.cfg
Expand Down
7 changes: 6 additions & 1 deletion CHANGES.rst
Expand Up @@ -6,7 +6,12 @@ There's a frood who really knows where his towel is.
2.1b5 (unreleased)
^^^^^^^^^^^^^^^^^^

- Nothing changed yet.
.. Warning::
This version disables usage of Latest Sectionable NITF portlet.
Remove manually all Latest Sectionable NITF portlets before upgrading.

- Latest Sectionable NITF portlet was disabled and will be completely removed in version 3.0.
[hvelarde]


2.1b4 (2017-10-18)
Expand Down
53 changes: 29 additions & 24 deletions README.rst
Expand Up @@ -60,6 +60,35 @@ Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.

Check the box next to ``collective.nitf`` and click the 'Activate' button.

Upgrading from 1.x to 2.x
^^^^^^^^^^^^^^^^^^^^^^^^^

.. Warning::
Upgrades to version 2.x are only supported from latest version of branch 1.x.

You have to be aware of the following changes when migrating from version 1.x to 2.x:

* Package is no longer compatible with Plone 4.2
* Latest Sectionable NITF portlet was disabled and will be completely removed in version 3.0;
you should remove all Latest Sectionable NITF portlets from your site before upgrading
* Package no longer depends on Grok
* Package no longer depends on `collective.z3cform.widgets <http://pypi.python.org/pypi/collective.z3cform.widgets>`_;
you should uninstall that dependency manually if there is no other package depending on it on your site
* Package no longer depends on `plone.app.referenceablebehavior <http://pypi.python.org/pypi/plone.app.referenceablebehavior>`_;
the ``IReferenceable`` behavior included there is no longer assigned by default
* The character counter is no longer available
* We use `Cycle2 <http://jquery.malsup.com/cycle2/>`_ instead of `Galleria <https://galleria.io/>`_ as the framework for the slideshow view;
package now depends on `collective.js.cycle2 <https://pypi.python.org/pypi/collective.js.cycle2>`_
* The following views are available for a News Article: ``view``, ``slideshow_view`` and ``text_only_view``
* View templates were completely refactored and support for semantic markup was added;
the default view displays a bigger image
* The following behaviors are assigned by default to the News Article content type: ``plone.app.relationfield.behavior.IRelatedItems`` and ``collective.nitf.behaviors.interfaces.ISection``
* A new permission ``collective.nitf: Setup`` is available to access the control panel configlet and is assigned by default to ``Manager`` and ``Site Administrator`` roles
* Static resources are now named ``nitf.css`` and ``nitf.js`` (easier to debug at the browser)

An upgrade step is available to remove old resources, rename the views, and reindex all News Articles to reflect changes.
The upgrade step will not remove the ``plone.app.referenceablebehavior.referenceable.IReferenceable`` behavior if applied.

Behaviors
^^^^^^^^^

Expand Down Expand Up @@ -140,27 +169,3 @@ The following command rebuilds static files and exit (insted of keep watching th
.. code-block:: bash

$ bin/npm_build

Migration from 1.x to 2.x
^^^^^^^^^^^^^^^^^^^^^^^^^

You have to be aware of the following changes when migrating from version 1.x to 2.x:

* Package is no longer compatible with Plone 4.2
* Package no longer depends on Grok
* Package no longer depends on `collective.z3cform.widgets <http://pypi.python.org/pypi/collective.z3cform.widgets>`_;
you should uninstall that dependency manually if there is no other package depending on it on your site
* Package no longer depends on `plone.app.referenceablebehavior <http://pypi.python.org/pypi/plone.app.referenceablebehavior>`_;
the ``IReferenceable`` behavior included there is no longer assigned by default
* The character counter is no longer available
* We use `Cycle2 <http://jquery.malsup.com/cycle2/>`_ instead of `Galleria <https://galleria.io/>`_ as the framework for the slideshow view;
package now depends on `collective.js.cycle2 <https://pypi.python.org/pypi/collective.js.cycle2>`_
* The following views are available for a News Article: ``view``, ``slideshow_view`` and ``text_only_view``
* View templates were completely refactored and support for semantic markup was added;
the default view displays a bigger image
* The following behaviors are assigned by default to the News Article content type: ``plone.app.relationfield.behavior.IRelatedItems`` and ``collective.nitf.behaviors.interfaces.ISection``
* A new permission ``collective.nitf: Setup`` is available to access the control panel configlet and is assigned by default to ``Manager`` and ``Site Administrator`` roles
* Static resources are now named ``nitf.css`` and ``nitf.js`` (easier to debug at the browser)

An upgrade step is available to remove old resources, rename the views, and reindex all News Articles to reflect changes.
The upgrade step will not remove the ``plone.app.referenceablebehavior.referenceable.IReferenceable`` behavior if applied.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -68,6 +68,7 @@
'plone.supermodel',
'plone.uuid',
'Products.CMFPlone >=4.3',
'Products.CMFQuickInstallerTool',
'Products.GenericSetup',
'setuptools',
'zope.browserpage',
Expand Down
1 change: 1 addition & 0 deletions src/collective/nitf/portlets/__init__.py
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
# BBB: this module will be removed in version 3.0
18 changes: 5 additions & 13 deletions src/collective/nitf/portlets/configure.zcml
@@ -1,26 +1,18 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="collective.nitf">
xmlns:plone="http://namespaces.plone.org/plone">

<!-- # BBB: this module will be removed in version 3.0 -->

<include package="plone.app.portlets" />

<plone:portlet
name="collective.nitf.LatestSectionableNITFPortlet"
interface=".latest_sectionable_nitf.ILatestSectionableNITFPortlet"
assignment=".latest_sectionable_nitf.Assignment"
edit_permission="cmf.ManagePortal"
renderer=".latest_sectionable_nitf.Renderer"
addview=".latest_sectionable_nitf.AddForm"
editview=".latest_sectionable_nitf.EditForm"
/>

<browser:page
for="*"
name="nitf-filter-list"
class=".latest_sectionable_nitf.NitfFilterList"
template="nitf_filter_list.pt"
permission="zope2.View"
/>

</configure>
83 changes: 0 additions & 83 deletions src/collective/nitf/portlets/latest_sectionable_nitf.pt

This file was deleted.