ploneintranet.userprofile.content package

Submodules

ploneintranet.userprofile.content.userprofile module

class ploneintranet.userprofile.content.userprofile.Email(*args, **kw)

Bases: zope.schema._bootstrapfields.TextLine

An email field

class ploneintranet.userprofile.content.userprofile.GooglePlace(values=None, vocabulary=None, source=None, **kw)

Bases: zope.schema._field.Choice

A field that is linked in the display view to a google place search

interface ploneintranet.userprofile.content.userprofile.IUserProfile

Bases: plone.supermodel.model.Schema

The core user profile schema.

Most of the plone intranet UI relies on these fields.

username = <zope.schema._bootstrapfields.TextLine object>

Username

first_name = <zope.schema._bootstrapfields.TextLine object>

First name

last_name = <zope.schema._bootstrapfields.TextLine object>

Last name

person_title = <zope.schema._bootstrapfields.TextLine object>

Person title

portrait = <plone.namedfile.field.NamedBlobImage object>

Photo

recent_contacts = <zope.schema._field.List object>

Last Contacts

email = <ploneintranet.userprofile.content.userprofile.Email object>

Email

interface ploneintranet.userprofile.content.userprofile.IUserProfileAdditional

Bases: plone.supermodel.model.Schema

Default additional fields for UserProfile.

mobile = <ploneintranet.userprofile.content.userprofile.Phone object>

Mobile Number

telephone = <ploneintranet.userprofile.content.userprofile.Phone object>

Telephone Number

time_zone = <zope.schema._field.Choice object>

Time Zone

address = <zope.schema._bootstrapfields.Text object>

Address

department = <zope.schema._bootstrapfields.TextLine object>

Department

primary_location = <ploneintranet.userprofile.content.userprofile.GooglePlace object>

Primary location

biography = <zope.schema._bootstrapfields.Text object>

Biography

job_title = <zope.schema._bootstrapfields.TextLine object>

Job title

class ploneintranet.userprofile.content.userprofile.Phone(*args, **kw)

Bases: zope.schema._bootstrapfields.TextLine

A phone field

class ploneintranet.userprofile.content.userprofile.UserProfile(id=None, **kwargs)

Bases: plone.dexterity.content.Container

UserProfile content type.

Description()
Title()
display_name_email
fullname
initials
class ploneintranet.userprofile.content.userprofile.UsernameValidator(context, request, view, field, widget)

Bases: z3c.form.validator.SimpleFieldValidator

Two users can’t have the same username.

Because of #1043 it’s possible that .username != .getUserName() so instead we rely on .username == .getUserId() which holds true since we don’t do use_uuid_as_userid.

validate(value, force=False)

ploneintranet.userprofile.content.userprofilecontainer module

interface ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer

Bases: plone.supermodel.model.Schema

Marker interface for userprofile container

class ploneintranet.userprofile.content.userprofilecontainer.UserProfileContainer(id=None, **kwargs)

Bases: plone.dexterity.content.Container

A (singleton) folder to contain Userprofile instances

Module contents