Skip to content

Commit

Permalink
Merge pull request #6291 from 4teamwork/es-6258-demo-teamraum
Browse files Browse the repository at this point in the history
Extend the opengever deployment directive with workspace roles.
  • Loading branch information
elioschmutz authored Feb 28, 2020
2 parents cd2a553 + ac65b40 commit b947249
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
2020.2.0rc1 (unreleased)
------------------------

- Extend the opengever deployment directive with workspace roles. [elioschmutz]
- Set seen_tours for all users in test fixture. [njohner]


Expand Down
7 changes: 7 additions & 0 deletions opengever/setup/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ def configure_plone_site(self):
'records_manager_group', 'Records Manager')
self.assign_group_to_role(self.site, self.config,
'api_group', 'APIUser')
self.assign_group_to_role(self.site, self.config,
'workspace_client_user_group',
'WorkspaceClientUser')
self.assign_group_to_role(self.site, self.config,
'workspace_user_group', 'WorkspacesUser')
self.assign_group_to_role(self.site, self.config,
'workspace_creator_group', 'WorkspacesCreator')

# REALLY set the language - the plone4 addPloneSite is really
# buggy with languages.
Expand Down
15 changes: 15 additions & 0 deletions opengever/setup/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ class IDeploymentDirective(Interface):
required=False,
max_length=GROUP_ID_LENGTH)

workspace_creator_group = TextLine(
title=u'Workspace creator group',
required=False,
max_length=GROUP_ID_LENGTH)

workspace_user_group = TextLine(
title=u'Workspace user group',
required=False,
max_length=GROUP_ID_LENGTH)

workspace_client_user_group = TextLine(
title=u'Workspace client group',
required=False,
max_length=GROUP_ID_LENGTH)


def register_ldap(context, **kwargs):
title = kwargs.get('title')
Expand Down

0 comments on commit b947249

Please sign in to comment.