Metadata-Version: 2.1
Name: collective.contact.plonegroup
Version: 1.16
Summary: Organizations and functions combinations to create plone groups
Home-page: http://pypi.python.org/pypi/collective.contact.plonegroup
Author: Ecreall, Entrouvert, IMIO
Author-email: s.geulette@imio.be
License: GPL
Description: .. image:: https://secure.travis-ci.org/collective/collective.contact.plonegroup.png
            :target: http://travis-ci.org/collective/collective.contact.plonegroup
        
        =============================
        collective.contact.plonegroup
        =============================
        
        Introduction
        ============
        
        A Plone add-on that manage organizations and functions, leading to corresponding plone groups creation.
        This product makes the link between:
        
        * collective.contact.core : organization definition containing your organization services (multiple levels)
        * dexterity.localrolesfield : field presenting a list of services for which a local role can be given
        
        How-to
        ======
        
        First, create a directory in your site (object from collective.contact.core). This directory will contain all the informations related to your contacts.
        
        You can then add your organization in it (with a specific id equal to 'plonegroup-organization').
        An organization can contain organizations (such as services, divisions or department).
        
        In the collective.contact.plonegroup configuration panel, you have to :
        
        * select some services of your organization to be used in localroles field
        * define some function labels that will be used in each selected organization
        
        When submitting, for each organization - function combination, a plone group is created with the id "organization-uid"_"function-id" and name "organizations-name" ("function-name").
        
        The generated plone groups will be used in localroles field, where some local roles can be given to some function for each selected service.
        
        Installation
        ============
        
        * Add collective.contact.plonegroup to your eggs.
        * Re-run buildout.
        * Install the product in your plone site.
        
        Credits
        =======
        
        Have an idea? Found a bug? Let us know by `opening a ticket`_.
        
        .. _`opening a ticket`: https://github.com/collective/collective.contact.plonegroup/issues
        
        Contributors
        ============
        
        - Gauthier Bastien, IMIO
        - Stéphan Geulette, IMIO
        - Vincent Fretin, Ecreall
        - Cédric Messiant, Ecreall
        - Frédéric Peters, Entr'ouvert
        
        Changelog
        =========
        
        
        1.16 (2019-06-30)
        -----------------
        
        - Fixed error in `OrgaPrettyLinkWithAdditionalInfosColumn` when displaying
          organizations out of `PLONEGROUP_ORG`.
          [gbastien]
        - Fixed `utils.get_organizations` when `caching=True` to store a new list of
          organizations in the cache instead returned value or value in cache may be
          modified if we modify returned value in a sub method...
          [gbastien]
        - Use `get_registry_organizations/set_registry_organizations` and
          `get_registry_functions/set_registry_functions` as much as possible.
          [gbastien]
        
        1.15 (2019-06-07)
        -----------------
        
        - Fixed problem, linked Plone groups title were not updated when suffix title
          changed and some `fct_orgs` were defined.
          [gbastien]
        - In `settings.detectContactPlonegroupChange`, set `changes = True` only when
          relevant, due to wrong indentation, it was done systematically.
          [gbastien]
        
        1.14 (2019-05-16)
        -----------------
        
        - Make `OrgaPrettyLinkWithAdditionalInfosColumn` work if displaying the
          `plonegroup-organization`, include link to plonegroup configuration panel in
          `SelectedInPlonegroupColumn` header.
          [gbastien]
        - Changed first parameter name for `utils.get_plone_group` and
          `utils.get_plone_group_id` from `org_uid` to `prefix` as it can be used in
          other cases.
          [gbastien]
        - Added helper method `utils.select_org_for_function` to be able to add/remove
          an organization uid from `fct_orgs` defined on a `function`.
          [gbastien]
        - Removed dependency on `unittest2`.
          [gbastien]
        - When calling `config.get_registry_organizations` and
          `config.get_registry_functions`, by default return a copy of stored data to
          avoid changing it.
          [gbastien]
        - Added parameter `default=True` to `utils.get_own_organization`, in this case,
          default ids for `root directory` and `own organization` are used instead
          using a catalog query, it should be faster.
          [gbastien]
        
        1.13 (2019-01-11)
        -----------------
        
        - Use unrestrictedSearchResults to check link integrity.
          [sgeulette]
        - Added helpers config.get_registry_organizations,
          config.get_registry_functions, config.set_registry_organizations and
          config.set_registry_functions to easily get and set organizations/functions
          registry records.
          [gbastien]
        
        1.12 (2018-12-11)
        -----------------
        
        - Added parameter `kept_org_uids` to `utils.get_organizations` to only keep
          organizations having defined UID.
          [gbastien]
        - Sort `collective.contact.plonegroup.selected_organization_services`
          vocabulary by value title.
          [gbastien]
        - Display the organization UID next to title in the `suborganizations` view.
          [gbastien]
        
        1.11 (2018-11-20)
        -----------------
        
        - In utils.get_organizations, call uuidsToObjects with ordered=True to get
          organizations in correct order because the catalog query is not sorted.
          [gbastien]
        - Fixed migration that adds 'fct_orgs' to functions.
          [gbastien]
        
        1.10 (2018-10-12)
        -----------------
        
        - Removed grok for OwnOrganizationServicesVocabulary.
          [gbastien]
        - Added utils.get_organization to get an organization corresponding
          to a given plone_group_id.
          [gbastien]
        - Added utils.get_organizations to get every plonegroup organizations.  It is
          possible to get every selectable or selected organizations, as objects or not
          and for which a particular linked Plone group (suffix) is not empty.
          [gbastien]
        - Added utils.get_all_suffixes that returns every defined functions ids.
          [gbastien]
        - Added possibility to restrict suffixes to only some selected organizations.
          Plone groups will only be created for selected organizations.  When selecting or
          unselecting organizations, linked Plone groups are created/deleted accordingly.
          [gbastien]
        - Moved setting.getOwnOrganizationPath to
          utils.get_own_organization/utils.get_own_organization_path.
          [gbastien]
        - Added method utils.get_plone_groups that returns every Plone groups of a
          given organization.
          [gbastien]
        - Added utils.get_plone_group that returns a Plone group for given organization
          UID and suffix.
          [gbastien]
        - Disabled auto_append on IContactPlonegroupConfig.functions DataGridField.
          [gbastien]
        - Notify event PlonegroupGroupCreatedEvent when a Plone group linked to an
          organization is created.
          [gbastien]
        - z3c.table batching does not work when displaying suborganizations, so set
          batchSize and startBatchingAt to 999 instead 200 so we are pretty sure it is
          never displayed.
          [gbastien]
        - While displaying "@@suborganizations", display a specific message "No suborganization"
          when no suborganizations instead displaying nothing.
          [gbastien]
        - Added default logger importable from collective.contact.plonegroup.
          [gbastien]
        - Added utils.select_organization to be able to select or unselect an
          organization from organizations registry.
          [gbastien]
        - While creating Plone groups, translate suffix displayed in title.
          [gbastien]
        
        1.9 (2018-09-04)
        ----------------
        
        - Added utils.get_plone_group_id to get Plone group id for given organization and suffix.
          [gbastien]
        - Overrided "@@suborganizations" view to display the entire hierarchy of contained
          organizations and sub-organizations and more informations in a table.
          [gbastien]
        - When the plonegroup-organization is displayed in a tooltip, use original way
          to display sub organizations because the new rendering using the table takes
          too much place in the tooltip.
          [gbastien]
        
        1.8.1 (2018-07-30)
        ------------------
        
        - Sort user vocabulary by fullname
          [sgeulette]
        - Added cache on travis.
          [sgeulette]
        
        1.8 (2017-09-18)
        ----------------
        
        - Corrected error when deleting site.
          [sgeulette]
        - Corrected group modification. Added migration step.
          [sgeulette]
        
        1.7 (2017-07-25)
        ----------------
        
        - Check if linkintegrity is enabled in events.
          [sgeulette]
        
        1.6 (2017-05-30)
        ----------------
        
        - Use manager role only if necessary to avoid "SystemError: Excessive recursion" when recataloging
          [sgeulette]
        - Protect against group deletion
          [sgeulette]
        - Corrected subscriber at object paste
          [sgeulette]
        
        1.5 (2016-12-13)
        ----------------
        
        - Get selected organizations with manager role because plone.formwidget.masterselect calls ++widget++ as Anonymous.
          [sgeulette]
        
        1.4 (2016-12-07)
        ----------------
        
        - Call only once a subscriber.
          [sgeulette]
        - Improved util method and added test
          [sgeulette]
        - Added method to get selected organizations with customized title
          [sgeulette]
        - Added methods to get orgs users and vocabulary
          [sgeulette]
        
        1.3 (2016-04-15)
        ----------------
        
        - Use a stored cache key to invalidate cache on all zeo clients
          [sgeulette]
        
        1.2 (2016-01-13)
        ----------------
        
        - Made an unrestricted search to list own organizations, possible reason of empty list
          [sgeulette]
        - Increase OrderedSelectWidget size to 15 lines.
          [sgeulette]
        - Use the same permission to protect config view and configlet.
          [sgeulette]
        
        1.1 (2015-12-11)
        ----------------
        
        - Put title as unicode in vocabulary.
          [sgeulette]
        
        1.0 (2015-11-24)
        ----------------
        
        - Added link integrity check when deleting a plonegroup organization
          [sgeulette]
        - Added marker interfaces to distinguish plonegroup organizations
          [sgeulette]
        - Added selected organizations vocabulary as elephantvocabulary: display correctly no more selected terms.
          [sgeulette]
        - Don't deactivate a used plonegroup organization
          [sgeulette]
        - Check state to build OwnOrganizationServicesVocabulary.
          [cedricmessiant]
        - Set token to UID in OwnOrganizationServicesVocabulary.
          [sgeulette]
        - Give access to configlet to Site Administrator
          [sgeulette]
        - Flake8 corrections
          [sgeulette]
        
        
        0.2 (2014-03-18)
        ----------------
        
        - Corrected Manifest to include all files.
        
        
        0.1 (2014-02-13)
        ----------------
        
        - Initial release.
          [sgeulette]
        
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: 4.2
Classifier: Framework :: Plone :: 4.3
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Provides-Extra: test
