def create_failure(self, req, msg): author = get_context(req)['author'] data = {} data['url'] = ProjectListModule.url data['home'] = req.base_path data['user'] = author data['vcslist'] = self._list_enabled_vcs() data['prj_is_public'] = sanitize_html(req.args.get('prj_is_public', 'off')) # Use system warning to notify user add_warning(req, msg) for key in req.args: if key in ['prj_long_name', 'prj_short_name', 'prj_description', 'vcstype', '_project_']: data[key] = sanitize_html(req.args[key]) return 'create_form.html', data, None
def new_project_form(self, req): req.perm.require("PROJECT_CREATE") author = get_context(req)['author'] data = {} data['url'] = ProjectListModule.url data['vcslist'] = self._list_enabled_vcs() data['user'] = author data['prj_is_public'] = sanitize_html(req.args.get('prj_is_public')) return 'create_form.html', data, None
def create_failure(self, req, msg): author = get_context(req)['author'] data = {} data['url'] = ProjectListModule.url data['home'] = req.base_path data['user'] = author data['vcslist'] = self._list_enabled_vcs() data['prj_is_public'] = sanitize_html( req.args.get('prj_is_public', 'off')) # Use system warning to notify user add_warning(req, msg) for key in req.args: if key in [ 'prj_long_name', 'prj_short_name', 'prj_description', 'vcstype', '_project_' ]: data[key] = sanitize_html(req.args[key]) return 'create_form.html', data, None