Skip to main content

A Person content type for Plone.

Project description

logo

Person content type for Plone

PyPI PyPI - Python Version PyPI - Wheel PyPI - License PyPI - Status

PyPI - Plone Versions

Meta Code Style

GitHub contributors GitHub Repo stars

Features

collective.person provides a content type representing a Person.

Content Types

  • Person: A content type representing a person

Behaviors

name title description
collective.person.person Person Behavior Fields with basic person information
collective.person.user Link Person to Plone User Adapts a Person to link it to a Plone User
collective.person.namefromusername Name from username Use the username field as name (basis for the id)

Permissions

id title Usage
collective.person.person.add collective.person: Add Person Control the creation of a new Person content item

Catalog Indexes

This package adds Indexes and Metadata to Portal Catalog.

Content Attribute Index Type Metadata Comment
roles KeywordIndex --
username FieldIndex Used when collective.person.user behavior is enabled

See it in action

This package is being used by the following sites:

  • TODO

Documentation

Installation

Add collective.person as a dependency on your package's setup.py

    install_requires = [
        "collective.person",
        "Plone",
        "plone.restapi",
        "setuptools",
    ],

Also, add collective.person to your package's configure.zcml (or dependencies.zcml):

<include package="collective.person" />

Generic Setup

To automatically enable this package when your add-on is installed, add the following line inside the package's profiles/default/metadata.xml dependencies element:

    <dependency>profile-collective.person:default</dependency>

Source Code and Contributions

We welcome contributions to collective.person.

You can create an issue in the issue tracker, or contact a maintainer.

Development setup

You need a working Python environment version 3.8 or later.

Then install the dependencies and a development instance using:

make install

By default, we use the latest Plone version in the 6.x series.

Update translations

make i18n

Format codebase

make format

Run tests

make test

License

The project is licensed under GPLv2.

Changelog

1.0.0a2 (2023-06-21)

New features:

  • Implement Person content type @ericof person
  • Add pt_BR translation @ericof pt_BR
  • Implement collective.person.user behavior @ericof user-behavior

1.0.0 (unreleased)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.person-1.0.0a2.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

collective.person-1.0.0a2-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

Details for the file collective.person-1.0.0a2.tar.gz.

File metadata

  • Download URL: collective.person-1.0.0a2.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for collective.person-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 cb255c89f1e56c4dd2d045d791b02aa71a26b848439d432b21f2b7baee9029c3
MD5 6f30cfe98d322b4e91bcd73b44cb108d
BLAKE2b-256 ecd446b11633b839c4a5a697be032d0c6ec44e4c4d6fbb3a662eb00210307f7b

See more details on using hashes here.

File details

Details for the file collective.person-1.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for collective.person-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 607ad461b281e5f1c53d276df12d3028f78c22e0b3185be536290bf807f86b47
MD5 4e73fdfa0dbad45fe84f9524fcd10161
BLAKE2b-256 88f46778c290767a519b12a0c360c6bd9371a889f8da3e4b2a5e94d06786d829

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page