comparison macros.xml @ 12:23680a42e149 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 8ad854180e3be0934cdb1f0021886199a2edf9c3"
author iuc
date Fri, 05 Feb 2021 19:46:48 +0000
parents c4a9b38b435d
children 1d1762860d7e
comparison
equal deleted inserted replaced
11:c4a9b38b435d 12:23680a42e149
434 #if $section.sample: 434 #if $section.sample:
435 --sample '${section.sample}' 435 --sample '${section.sample}'
436 #end if 436 #end if
437 </token> 437 </token>
438 438
439 <xml name="macro_include_exclude_validate_sanitize">
440 <validator type="expression" message="Single quote or trailing backslash not allowed">"'" not in value and value[-1] != "\\"</validator>
441 <sanitizer>
442 <valid initial="string.ascii_letters,string.digits,string.whitespace,string.punctuation">
443 <remove value="@" />
444 <remove value="'" />
445 </valid>
446 </sanitizer>
447 </xml>
439 448
440 <xml name="macro_include"> 449 <xml name="macro_include">
441 <param argument="--include" type="text" optional="true" label="Include" help="Select sites for which the expression is true"> 450 <param argument="--include" type="text" optional="true" label="Include" help="Select sites for which the expression is true">
442 <validator type="regex" message="Single quote not allowed">^[^']*$</validator> 451 <expand macro="macro_include_exclude_validate_sanitize" />
443 <sanitizer sanitize="False"/>
444 </param> 452 </param>
445 </xml> 453 </xml>
446 <token name="@INCLUDE@"> 454 <token name="@INCLUDE@">
447 #if $section.include: 455 #if $section.include:
448 --include '${section.include}' 456 --include '${section.include}'
449 #end if 457 #end if
450 </token> 458 </token>
451 459
452 <xml name="macro_exclude"> 460 <xml name="macro_exclude">
453 <param argument="--exclude" type="text" optional="true" label="Exclude" help="Exclude sites for which the expression is true"> 461 <param argument="--exclude" type="text" optional="true" label="Exclude" help="Exclude sites for which the expression is true">
454 <validator type="regex" message="Single quote not allowed">^[^']*$</validator> 462 <expand macro="macro_include_exclude_validate_sanitize" />
455 <sanitizer sanitize="False"/>
456 </param> 463 </param>
457 </xml> 464 </xml>
458 <token name="@EXCLUDE@"> 465 <token name="@EXCLUDE@">
459 #if $section.exclude: 466 #if $section.exclude:
460 --exclude '${section.exclude}' 467 --exclude '${section.exclude}'