コード例 #1
0
ファイル: _actions.py プロジェクト: bungeni-org/bungeni.main
def activate(group):
    """Perform any actions required to activate a group.
    
    When a group is activated the group role is granted to the group principal 
    (and by virtue of membership, also to each active member of the group) 
    on target context as specified by this group's privilege_extent setting.
    """
    utils.set_group_local_role(group)
コード例 #2
0
ファイル: common.py プロジェクト: BenoitTalbot/bungeni-portal
 def _do_save(self, data):
     group_role_changed = False
     prm = IPrincipalRoleMap(get_group_privilege_extent_context(self.context))
     if (data["group_role"] != self.context.group_role):
         if prm.getSetting(self.context.group_role, self.context.principal_name) == Allow:
             group_role_changed = True
             unset_group_local_role(self.context)
     formlib.form.applyChanges(self.context, self.form_fields, data)
     if group_role_changed:
         set_group_local_role(self.context)
     notify(ObjectModifiedEvent(self.context))
コード例 #3
0
 def _do_save(self, data):
     group_role_changed = False
     prm = IPrincipalRoleMap(get_group_context(self.context))
     if (data["group_role"] != self.context.group_role):
         if (prm.getSetting(self.context.group_role,
                            self.context.principal_name) == Allow):
             group_role_changed = True
             unset_group_local_role(self.context)
     formlib.form.applyChanges(self.context, self.form_fields, data)
     if group_role_changed:
         set_group_local_role(self.context)
     notify(ObjectModifiedEvent(self.context))
コード例 #4
0
def activate(group):
    """Perform any actions required to activate a group.
    """
    utils.set_group_local_role(group)
コード例 #5
0
def _group_active(context):
    utils.set_group_local_role(context)
    publish_to_xml(context, type="group", include=[])
コード例 #6
0
def _group_active(context):
    utils.set_group_local_role(context)
コード例 #7
0
def _group_activate(info, context):
    utils.set_group_local_role(context)
コード例 #8
0
ファイル: _actions.py プロジェクト: mohalfaki/bungeni-portal
def _group_activate(info, context):
    utils.set_group_local_role(context)
コード例 #9
0
ファイル: _actions.py プロジェクト: mohalfaki/bungeni-portal
def _group_active(context):
    utils.set_group_local_role(context)
コード例 #10
0
ファイル: _actions.py プロジェクト: mohalfaki/bungeni-portal
def _group_active(context):
    utils.set_group_local_role(context)
    publish_to_xml(context, type="group")
コード例 #11
0
ファイル: _actions.py プロジェクト: mohalfaki/bungeni-portal
def _group_active(context):
    utils.set_group_local_role(context)
    publish_to_xml(context, type='group', include=[])