Skip to main content

Summary

person provides person informations :

  • firstname

  • surname / lastname

  • civility

  • arbitrary text description

  • a relation to an email address (NB, the EmailAddress entity is automatically provided by cubicweb).

If the addressbook cube is used, persons will also have phone and postal_address relations to store more contact information.

There is a special relation called ‘primary_email’. A person can be linked to multiple email addresses (using the ‘use_email’ relation). The primary email must be unique. At the creation of the first email, this relation is automatically added (though you can change it later, of course).

Recommends

  • addressbook cube

Usage

In addition of basic entity views, this cube provides :

  • VCardPersonView, displays a person in the VCard file format

    (.. _VCard on wikipedia: http://en.wikipedia.org/wiki/VCard) .

    This view creates a file called vcard.vcf which can be open in your addressbook application (Kmail, Thunderbird and so on). In order to generate this file, you have to access to a specific view using an url address with ?vid=vcard suffix.

    How to personalize the person primary view in order to add a link for the vcard ?

     class PersonalizedPersonPrimaryView(PersonPrimaryView):
    
         def render_entity_attributes(self, entity):
             super(PersonalizedPersonPrimaryView, self).render_entity_attributes(entity)
             self.w(u'<div><a href="%s">export contact as vcard</a></div>'  % entity.absolute_url(vid='vcard'))
    
    This view will not be selected by default. You have to registered
    this view or add a selector. For more information, please refer to
    XXX in the doc.
  • a civility facet, this facet (XXX: ref to facet doc) will be shown if a view displays a result set of at least two Person entities with different civilities.

Metadata

Release files for cubicweb-person 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-person 1.8.0
File Size Uploaded
cubicweb-person-1.8.0.tar.gz 9.2 kB Details

Release files / cubicweb-person-1.8.0.tar.gz

Download URL cubicweb-person-1.8.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9766f5004c0469a5abeee112579093f2d08f7281fe015fdd0471a0f44df656bd
BLAKE2b-256 checksum
How to use checksums
1e95dd94a2065ec431ed52e3f0baab4f0c23083f1ee07287b980332f67f8c2fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.1.0

2 release files

2.0.1

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.0

1 release file

1.10.1

1 release file

1.10.0

1 release file

1.9.0

1 release file

1.8.1

1 release file

This release

1.8.0 This release

1 release file

1.7.2

1 release file

1.7.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page