Project

General

Profile

Bug #2465 ยป PT-checkGenericFileContent-clarification.patch

Jonathan CLARKE, 2012-04-23 12:59

View differences:

3.0/policy.xml 2012-04-23 12:54:51.135219288 +0200
<SECTIONS>
<SECTION name="File to manage" multivalued="true">
<SECTION name="File" component="true" componentKey="GENERIC_FILE_CONTENT_PATH">
<SECTION name="File" component="false">
<INPUT>
<NAME>GENERIC_FILE_CONTENT_PATH</NAME>
<DESCRIPTION>Path</DESCRIPTION>
</INPUT>
<INPUT>
<NAME>GENERIC_FILE_CONTENT_PAYLOAD</NAME>
<DESCRIPTION>Content of the file</DESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
<SELECT1>
<NAME>GENERIC_FILE_CONTENT_ENFORCE</NAME>
<DESCRIPTION>Enforce the content of the file</DESCRIPTION>
<LONGDESCRIPTION>If yes, the file will exactly contains what is in the "Content of the file" field, otherwise the content will be added, leaving the rest of the file untouched</LONGDESCRIPTION>
<ITEM>
<LABEL>Yes</LABEL>
<VALUE>true</VALUE>
</ITEM>
<ITEM>
<LABEL>No</LABEL>
<VALUE>false</VALUE>
</ITEM>
<CONSTRAINT>
<TYPE>boolean</TYPE>
<DEFAULT>false</DEFAULT>
</CONSTRAINT>
</SELECT1>
</INPUT>
<INPUT>
<NAME>GENERIC_FILE_CONTENT_DELETION_BOOLEAN</NAME>
<DESCRIPTION>Enable the deletion of lines using a regexp</DESCRIPTION>
......
</CONSTRAINT>
</INPUT>
</SECTION>
<SECTION name="File content" component="true" componentKey="GENERIC_FILE_CONTENT_PATH">
<INPUT>
<NAME>GENERIC_FILE_CONTENT_PAYLOAD</NAME>
<DESCRIPTION>Content of the file</DESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
</SECTION>
<SECTION name="Line deletion regular expressions" component="true" componentKey="GENERIC_FILE_CONTENT_PATH">
<INPUT>
<NAME>GENERIC_FILE_CONTENT_DELETION_REGEXP</NAME>
    (1-1/1)