Bug 663202
Summary: | [RFE] STRICT mode should be brand configurable | ||
---|---|---|---|
Product: | [Community] Publican | Reporter: | Jeff Fearn 🐞 <jfearn> |
Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | future | CC: | mhideo, mmcallis, publican-list, rlandman, smumford |
Target Milestone: | 3.0 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 3.0.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-10-31 03:10:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 820023 |
Description
Jeff Fearn 🐞
2010-12-14 23:28:16 UTC
Removed STRICT mode from code. Added configuration options banned_tags and banned_attrs. These can be set at the book or brand levels. By default Publican does not, and will not, set these parameters. Brands wishing to impose restrictions will have to do so in the brand itself. Fixed in revision 1690 Jeff, For testing purposes, could you provide some instructions on how to set these bans? Since you stated they can be set at the book level, I tried adding a 'banned_tags:' entry to the publican.cfg file. Running 'publican print_banned' still shows no banned tags. Cheers Documentation required for this RFE. Publican User Guide 3.0 tracker ticket added to this issue. banned_attrs and banned_tags can only be set in brands, so you'd need to update a brand to test this. Just set either in a brands defaults.cfg or overrides.cfg ... you can be naughty and just `sudo gvim /usr/share/publican/Common_Content/RedHat/defaults.cfg` to test if you don't want to rebuild a brand. e.g. banned_tags: "indexterm,para" simpara should be enough para for anyone! (In reply to comment #4) > banned_attrs and banned_tags can only be set in brands, so you'd need to > update a brand to test this. > > Just set either in a brands defaults.cfg or overrides.cfg ... you can be > naughty and just `sudo gvim > /usr/share/publican/Common_Content/RedHat/defaults.cfg` to test if you don't > want to rebuild a brand. > > e.g. banned_tags: "indexterm,para" > > > simpara should be enough para for anyone! execute the above. Verified in publican-3.0-0.fc17.t180.noarch Setting banned_tags: "indexterm,para" in brand default.cfg and building a book gives: ERROR: Banned tag (para) detected. Discuss this with your brands owners if you think this is in error. Setting: banned_attrs: "id" in brand default.cfg and building a book gives: ERROR: Banned attribute (id) detected. Discuss this with your brands owners if you think this is in error. |