Skip to main content

Allows to create a user and assign roles directly from the sharing tab. By Ecreall

Project description

Allows to create a user and assign roles directly from the sharing tab for Plone >= 4.1. This can work with Plone 4.0.9 with plone.app.users > 1.0.6, < 1.1.x.

Content types have just to implement IAddNewUser to have the functionnality.

If you want to enable it for Folder, you only have to add to your buildout.cfg:

[instance]
eggs =
    ...
    collective.local.adduser
zcml =
    ...
    collective.local.adduser

If you don’t want the functionnality for Folder, but on your own content type, add to the configure.zcml of your policy module:

<include package="collective.local.adduser" file="minimal.zcml" />
<class class="my.package.content.MyContent.MyContent">
   <implements interface="collective.local.adduser.interfaces.IAddNewUser" />
</class>

If you don’t want the roles field, you can include minimal_wo_roles.zcml instead of minimal.zcml. Changelog =========

1.2 (2012-09-25)

  • Created minimal.zcml and minimal_wo_roles.zcml for extensibility. The package is not declared as Plone plugin anymore, be sure to include one of the package zcml files.
  • UserLocallyAdded event now takes data and not roles as second parameter.

1.1.1 (2012-08-03)

  • No failure if no role has been selected for new user.

1.1 (2012-06-29)

  • Added possibility to add new fields to the add user form.

1.0 (2011-09-29)

  • Initial release

Project details


Release history Release notifications

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2.1

This version
History Node

1.2

History Node

1.1.1

History Node

1.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
collective.local.adduser-1.2.zip (14.9 kB) Copy SHA256 hash SHA256 Source None Sep 25, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page