def _process( self ): params = self._getRequestParams() if params.get("accessVisibility","") == _("PRIVATE") : self._target.setTasksPrivate() elif params.get("accessVisibility","") == _("PUBLIC") : self._target.setTasksPublic() else : pass if params.get("commentVisibility","") == _("PRIVATE") : self._target.setTasksCommentPrivate() elif params.get("commentVisibility","") == _("PUBLIC") : self._target.setTasksCommentPublic() else : pass if params.get("taskAccessAction","") == "Add": chosen = params.get("accessChosen",None) if chosen is not None and chosen != "" : person = self._findPerson(chosen) if person is not None : self._target.addTasksAccessPerson(person) elif params.get("taskAccessAction","") == "New": pass elif params.get("taskAccessAction","") == "Remove": chosen = self._normaliseListParam(params.get("access", [])) for c in chosen : self._target.removeTasksAccessPerson(int(c)) else : pass if params.get("taskCommentAction","") == "Add": chosen = params.get("commentChosen",None) if chosen is not None and chosen != "" : person = self._findPerson(chosen) if person is not None : self._target.addTasksCommentator(person) elif params.get("taskCommentAction","") == "New": pass elif params.get("taskCommentAction","") == "Remove": chosen = self._normaliseListParam(params.get("commentator", [])) for c in chosen : self._target.removeTasksCommentator(int(c)) else : pass if params.get("taskManagerAction","") == "Add": chosen = params.get("managerChosen",None) if chosen is not None and chosen != "" : person = self._findPerson(chosen) if person is not None : self._target.addTasksManager(person) elif params.get("taskManagerAction","") == "New": pass elif params.get("taskManagerAction","") == "Remove": chosen = self._normaliseListParam(params.get("manager", [])) for c in chosen : self._target.removeTasksManager(int(c)) else : pass p = category.WPCategModifTasks( self, self._target ) return p.display()
def _process( self ): p = category.WPCategModifTasks( self, self._target ) return p.display()