def __call__(self): root = getSite() if not global_user_processsecurity(): return {'error': True} dace_ui_api = get_current_registry().getUtility(IDaceUIAPI, 'dace_ui_api') actions = dace_ui_api.get_actions([root], self.request) admin_actions = [a for a in actions if getattr(a[1], 'style_descriminator', '') in ('admin-action', 'lateral-action')] return {'groups': group_actions(admin_actions), 'pictos': {g: v[1] for g, v in GROUPS_PICTO.items()}, 'error': False}
def __call__(self): root = getSite() if not global_user_processsecurity(None, root): return {'error': True} actions = [] for processid in self.processids: actions.extend(self._get_actions(root, processid)) admin_actions = [a for a in actions \ if getattr(a[1], 'style_descriminator','') == \ 'admin-action'] grouped_actions = group_actions(admin_actions) return {'groups': grouped_actions, 'pictos': GROUPS_PICTO, 'error': False}
def __call__(self): root = getSite() if not global_user_processsecurity(): return {'error': True} dace_ui_api = get_current_registry().getUtility( IDaceUIAPI, 'dace_ui_api') actions = dace_ui_api.get_actions([root], self.request) admin_actions = [ a for a in actions if getattr(a[1], 'style_descriminator', '') in ('admin-action', 'lateral-action') ] return { 'groups': group_actions(admin_actions), 'pictos': {g: v[1] for g, v in GROUPS_PICTO.items()}, 'error': False }
def createnewsletter_processsecurity_validation(process, context): return global_user_processsecurity()
def see_subscribed_processsecurity_validation(process, context): return context.subscribed and global_user_processsecurity()
def see_all_processsecurity_validation(process, context): return context.newsletters and global_user_processsecurity()
def unsubscribe_processsecurity_validation(process, context): return global_user_processsecurity()
def editinv_processsecurity_validation(process, context): return global_user_processsecurity()
def see_subscribed_processsecurity_validation(process, context): return context.subscribed and global_user_processsecurity()
def unsubscribe_processsecurity_validation(process, context): return global_user_processsecurity()
def uploaduser_processsecurity_validation(process, context): return global_user_processsecurity()
def editinv_processsecurity_validation(process, context): return global_user_processsecurity()
def edit_processsecurity_validation(process, context): return global_user_processsecurity() and \ context.invitations
def seeinvs_processsecurity_validation(process, context): return global_user_processsecurity()
def uploaduser_processsecurity_validation(process, context): return global_user_processsecurity()
def send_processsecurity_validation(process, context): return context.validate_content() and \ global_user_processsecurity()
def createnewsletter_processsecurity_validation(process, context): return global_user_processsecurity()
def remove_processsecurity_validation(process, context): return global_user_processsecurity()
def seeinvs_processsecurity_validation(process, context): return global_user_processsecurity()
def see_all_processsecurity_validation(process, context): return context.newsletters and global_user_processsecurity()
def remove_processsecurity_validation(process, context): return global_user_processsecurity()
def send_processsecurity_validation(process, context): return context.validate_content() and \ global_user_processsecurity()
def edit_processsecurity_validation(process, context): return global_user_processsecurity() and \ context.invitations