Skip to main content

person component for the CubicWeb framework

Project description

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.

Contributing

Information on how to contribute can be found here https://www.logilab.org/Card/contributing

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

cubicweb-person-1.12.0.tar.gz (54.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cubicweb_person-1.12.0-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

Details for the file cubicweb-person-1.12.0.tar.gz.

File metadata

  • Download URL: cubicweb-person-1.12.0.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for cubicweb-person-1.12.0.tar.gz
Algorithm Hash digest
SHA256 05677210365641369771bb299c19a742a88b56e4fb852b4d50a857f6ce2b6384
MD5 3edf4a92046e4bc4c1a49727d201076c
BLAKE2b-256 1f0b059ec5b33c8ed6209b01622aadb49f755d629f4d61bad6dd647faafce073

See more details on using hashes here.

File details

Details for the file cubicweb_person-1.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubicweb_person-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 827380a2ece8f15e46bd59079065b5a1fd99b3f5616ed8b54e35dacda2ea83aa
MD5 4d72ec9bbebbd6a570e7e93e325dc931
BLAKE2b-256 79e2a33f83c5e251ce0150a440976c0e7449bdfd0858f8826eefec13c1b682a3

See more details on using hashes here.

Supported by

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