{ "info": { "author": "IMIO", "author_email": "support@imio.be", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Plone", "Framework :: Plone :: 4.3", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": ".. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.\n If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide_addons.html\n This text does not appear on pypi or github. It is a comment.\n\n.. image:: https://travis-ci.org/collective/collective.iconifiedcategory.svg?branch=master\n :target: https://travis-ci.org/collective/collective.iconifiedcategory\n\n.. image:: https://coveralls.io/repos/github/collective/collective.iconifiedcategory/badge.svg\n :target: https://coveralls.io/github/collective/collective.iconifiedcategory\n\n==============================================================================\ncollective.iconifiedcategory\n==============================================================================\n\nThis product will let you categorize created content using a category identified by an icon.\n\nA dexterity behavior can be enabled and will add a field \"content category\" that will list available categories defined in a configuration.\n\nSo you first have to define the categories by adding a ContentCategoryConfiguration somewhere. Then add a CategoryGroup on which some extra features may be activated :\n\n- is content confidential?\n- is content an element to print?\n- is content an element to sign?\n\nIf activated, these fields will be available on the content using the behavior.\n\nThen into a CategoryGroup, you will be able to add ContentCategory that are characterized by a title and an icon. These ContentCategory elements will be the terms of a vocabulary used to select a category on a content using the behavior.\n\nThis package is widely overridable and is made to manage many usecases of iconified categories.\n\nA element that contains categorized content will display a special widget where categorized content are grouped by ContentCategory behind an icon.\n\nA table view is also available listing categorized contents with more details.\n\nScreenshots to come...\n\nInstallation\n------------\n\nInstall collective.iconifiedcategory by adding it to your buildout::\n\n [buildout]\n\n ...\n\n eggs =\n collective.iconifiedcategory\n\n\nand then running ``bin/buildout``\n\n\nContribute\n----------\n\n- Issue Tracker: https://github.com/collective/collective.iconifiedcategory/issues\n- Source Code: https://github.com/collective/collective.iconifiedcategory\n\n\nLicense\n-------\n\nThe project is licensed under the GPLv2.\n\nContributors\n============\n\n- Martin Peeters, Original Author [Affinitic]\n\nChangelog\n=========\n\n0.38 (2019-08-23)\n-----------------\n\n- Fixed code to work with `plone.app.async` as in this case, there is no\n `REQUEST`. To do this, needed to get the `@@images` view by instantiating the\n `ImageDataModifiedImageScaling` class, this could be a problem if it is\n overrided by a subpackage.\n [gbastien]\n- Tried to fix again tooltipster popup when categorized element title is\n displayed on several lines...\n [gbastien]\n\n0.37 (2019-06-14)\n-----------------\n\n- Avoid vertical scroll in tooltipster popup when categorized content title\n is displayed on several lines.\n [gbastien]\n- Force use distribution trusty in Travis.\n [gbastien]\n\n0.36 (2019-04-23)\n-----------------\n\n- Overrided `ImageScaling.modified` to take into account real stored icon file\n `_p_mtime` instead category `_p_mtime` because the category's `_p_mtime` can\n be modified for several reasons and that breaks existing content using the\n icon. Moreover, it is now necessary to update elements using a category only\n when icon file changed.\n [gbastien]\n- Force display small icon in select2 droprown so it fits the available space,\n this is the case when a large icon was uploaded. Added description on field\n `ContentCategory.icon` explaining to use a 16x16 image icon.\n [gbastien]\n\n0.35 (2019-02-22)\n-----------------\n\n- Use ram.cache for utils.get_ordered_categories to cache during a REQUEST.\n [gbastien]\n- Added parameter `only_enabled (True by default)` when\n `using utils.get_ordered_categories` and\n `IconifiedCategoryGroupAdapter.get_every_categories` to be able to have every\n categories in utils.sort_categorized_elements.\n [gbastien]\n- Use generated url for `scale mini` as icon url so it can be cached.\n [gbastien]\n- Trigger `CategorizedElementsUpdatedEvent` after elements using a\n ContentCategory have been updated.\n [gbastien]\n- Use `natsorted` instead `realsorted` to sort annexes by title.\n [gbastien]\n- Updated upgrade step as step to 2100 should be done before step to 2000...\n Removed step to 2000 and integrated it into step to 2100 so we first compute\n ContentCategory icon listing scale then update every categorized elements.\n [gbastien]\n\n0.34 (2019-01-31)\n-----------------\n\n- Display `content_category` title at the top of `@@categorized-childs-infos`\n tooltipster view.\n [gbastien]\n- Use `natsort.realsorted` to sort categorized elements on their title,\n elements are sorted regardless of uppercase or lowercase title.\n [gbastien]\n- Moved `context._p_changed = True` to the `utils.sort_categorized_elements`\n method so we are sure that calling it will correctly manage `_p_changed`.\n [gbastien]\n\n0.33 (2018-08-03)\n-----------------\n\n- Adapted CSS regarding `FontAwesome` where font name changed in version 5+\n from `FontAwesome` to `Font Awesome 5 Free`.\n Require `collective.fontawesome >= 1.1`.\n [gbastien]\n\n0.32 (2018-05-04)\n-----------------\n\n- Added `many_elements_7_columns` and `many_elements_8_columns` styles necessary\n when displaying really many elements on several columns.\n [gbastien]\n- Make sure the icon sticks to the text first word in the tooltipster popup\n by wrapping the icon and categorized element title first word in a ``\n that uses a `style=\"white-space: nowrap\"`.\n [gbastien]\n\n0.31 (2018-05-03)\n-----------------\n\n- Fix CSS applied in tooltipster popup for active confidential.\n [gbastien]\n\n0.30 (2018-04-20)\n-----------------\n\n- Make sure number of elements applied CSS is done when tooltipstered or not.\n [gbastien]\n- Added possibility to pass a CSS selector to `categorizedChildsInfos`, the JS\n method that initialize `tooltipster` for categorized elements.\n [gbastien]\n\n0.29 (2018-02-14)\n-----------------\n\n- Adapted JS call to `tooltipster` as `collective.js.tooltipster` now uses\n `tooltipster` 4.2.6. Require `collective.js.tooltipster` > 0.1\n [gbastien]\n\n0.28 (2018-01-23)\n-----------------\n\n- When changing an element's `content_category`, reapply the default values for\n fields `to_print`, `confidential`, `to_sign` and `signed` if it was still the\n original default value defined on original `content_category`. Default values\n are linked to the `content_category`.\n [gbastien]\n\n0.27 (2017-12-07)\n-----------------\n\n- In `actionview.BaseView`, moved the `ObjectModifiedEvent` from the `__call__`\n to the `set_values` method so using it directly updates the\n `categorized_elements` of the parent.\n [gbastien]\n\n0.26 (2017-11-29)\n-----------------\n\n- Use a specific static resourceDirectory for images.\n [gbastien]\n\n0.25 (2017-11-28)\n-----------------\n\n- Call `actionview._may_set_values` in `IconClickableColumn.is_editable`\n to avoid double logic.\n [gbastien]\n\n0.24 (2017-11-27)\n-----------------\n\n- Fixed migration that adds `to_sign/signed` relevant data to the\n `categorized_elements` of the parent containing categorized contents.\n Execute the update with `limited=False` and do not care about already\n migrated content, do the update on every found elements.\n [gbastien]\n- Added tests for the `SignedChangeView` view especially the `loop` among\n possible `to_sign/signed` combination values.\n [gbastien]\n- Do not break when deleting an element having a `content_category` if container\n does not have the `categorized_elements` dict.\n [gbastien]\n- Improved some translations.\n [gbastien]\n- Factorized the way categories and subcategories are get for the \n `content_category` vocabularies `collective.iconifiedcategory.categories` and\n `collective.iconifiedcategory.category_titles` so it is easy to override and\n we rely on same method for both vocabularies that needs same source.\n [gbastien]\n\n0.23 (2017-08-10)\n-----------------\n\n- Added management of `to_sign` and `signed` attributes like it is the case for\n `to_print` and `confidential` attributes. Both attributes are used behind a\n single action `signed` that have 3 options : `not to sign`, `to sign` and\n `signed`.\n [gbastien]\n- Default values for `to_print`, `confidential` and `to_sign/signed` are now\n managed in the `IObjectAddedEvent` no more in the `content_category setter`,\n this way every attribtues are managed the same way because `to_print` and\n `confidential` are simple attributes where `to_sign/signed` can come from the\n `Scan metadata` behavior of `collective.dms.scanbehavior`.\n [gbastien]\n- Added possibility to show/hide details about `to_print`, `confidential`,\n `to_sign/signed` in the categorized elements tooltipster.\n\n0.22 (2017-08-04)\n-----------------\n\n- Make portal available on the tabview instance.\n [gbastien]\n\n0.21 (2017-07-18)\n-----------------\n\n- Reverted changes from releases `0.19` and `0.20`, we do not bypass can_view if\n element is not `confiential` because `can_view` could take into account other\n elements than `confidential`.\n [gbastien]\n\n0.20 (2017-07-14)\n-----------------\n\n- Make sure we correctly bypass `can_view` in `utils._check_van_view` when\n element is not confidential in case we do not receive `obj` but\n `categorized_elements`.\n [gbastien]\n\n0.19 (2017-07-13)\n-----------------\n\n- Factorized call to _check_can_view from utils and views so we are sure that\n the check is only done if obj is confidential. This fix a bug where can_view\n check was done for not confidential obj and raised an error on @@download even\n though it was displayed in the categorized elements table.\n [gbastien]\n\n0.18 (2017-05-29)\n-----------------\n\n- Added missing translation when updating categorized elements using the\n @@update-categorized-elements view.\n [gbastien]\n- Use icon_expr instead content_icon on the types fti to define the icon.\n Actually we want to define no icon as the type icon is displayed using CSS.\n [gbastien]\n- Added one additional level to the `content_category` generated by\n `utils.calculate_category_id` to avoid same `content_category` generated for\n different category group.\n [gbastien]\n- Added parameter `sort=True` to `utils.update_all_categorized_elements` to be\n able to disable time consuming sorting.\n [gbastien]\n\n0.17 (2017-03-22)\n-----------------\n\n- Make the `plone.formwidget.namedfile` `@@download` view can_view aware.\n [gbastien]\n\n0.16 (2017-03-08)\n-----------------\n\n- Correctly hide to_print and confidential widgets on add and display view\n if they were deactivated on the group\n [mpeeters]\n- Add new events to limit updated informations on parent\n [mpeeters]\n- Add an option to update only category informations on parent\n [mpeeters]\n\n0.15 (2017-02-17)\n-----------------\n\n- Adapted translations so it is more understandable.\n [gbastien]\n- Do only call `_cookCssResources` in `category_before_remove` if not currently\n removing the `Plone Site`.\n [gbastien]\n- Make `ICategory.icon` a primary field so we may use a simpler download URL\n that is only the `path_to_object/@@download` without the file name anymore.\n This is done to surround a bug in Apache that occurs when the filename\n contains the `%` character.\n [gbastien]\n\n0.14 (2017-02-13)\n-----------------\n\n- Generate a CSS class on the `