def _checkParams(self, params): admins.RHAdminBase._checkParams(self, params) if "groupId" not in params or params["groupId"].strip() == "": raise MaKaCError(_("group id not specified")) gh = user.GroupHolder() self._target = self._group = gh.getById(params["groupId"])
def _process(self): grp = user.Group() _GroupUtils.setGroupValues(grp, self._grpData) gh = user.GroupHolder() gh.add(grp) self._redirect(urlHandlers.UHGroupDetails.getURL(grp))