mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 07:52:11 +02:00
Roll back changelist 180942763
*** Reason for rollback *** Breaks the FOSS build. We'll reincorporate this change once Closure Rules is properly updated to accommodate it. *** Original change description *** Change all foreach loops in Soy templates to use the for loop syntax Soy supports 2 kinds of loops: foreach- for iterating over items in a collection e.g. {foreach $item in $list}...{/foreach} for - for indexed iteration e.g. {for $i in range(0, 10)}...{/for} The reason Soy has 2 different loops is an accident of history, Soy didn’t use to have a proper grammar for expressions and so the alternate ‘for...range’ syntax was added to make it possible to write indexed loops. As the gramma... *** ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=180961695
This commit is contained in:
parent
d52a701f50
commit
ffcfa283f6
24 changed files with 103 additions and 109 deletions
|
@ -34,26 +34,26 @@
|
|||
<domain:add>
|
||||
{if length($hostsToAdd) > 0}
|
||||
<domain:ns>
|
||||
{for $ha in $hostsToAdd}
|
||||
{foreach $ha in $hostsToAdd}
|
||||
<domain:hostObj>{$ha}</domain:hostObj>
|
||||
{/for}
|
||||
{/foreach}
|
||||
</domain:ns>
|
||||
{/if}
|
||||
{for $la in $locksToApply}
|
||||
{foreach $la in $locksToApply}
|
||||
<domain:status s="{$la}" />
|
||||
{/for}
|
||||
{/foreach}
|
||||
</domain:add>
|
||||
<domain:rem>
|
||||
{if length($hostsToRemove) > 0}
|
||||
<domain:ns>
|
||||
{for $hr in $hostsToRemove}
|
||||
{foreach $hr in $hostsToRemove}
|
||||
<domain:hostObj>{$hr}</domain:hostObj>
|
||||
{/for}
|
||||
{/foreach}
|
||||
</domain:ns>
|
||||
{/if}
|
||||
{for $lr in $locksToRemove}
|
||||
{foreach $lr in $locksToRemove}
|
||||
<domain:status s="{$lr}" />
|
||||
{/for}
|
||||
{/foreach}
|
||||
</domain:rem>
|
||||
</domain:update>
|
||||
</update>
|
||||
|
@ -64,14 +64,14 @@
|
|||
</secDNS:rem>
|
||||
{if length($newDsData) > 0}
|
||||
<secDNS:add>
|
||||
{for $ds in $newDsData}
|
||||
{foreach $ds in $newDsData}
|
||||
<secDNS:dsData>
|
||||
<secDNS:keyTag>{$ds.keyTag}</secDNS:keyTag>
|
||||
<secDNS:alg>{$ds.alg}</secDNS:alg>
|
||||
<secDNS:digestType>{$ds.digestType}</secDNS:digestType>
|
||||
<secDNS:digest>{$ds.digest}</secDNS:digest>
|
||||
</secDNS:dsData>
|
||||
{/for}
|
||||
{/foreach}
|
||||
</secDNS:add>
|
||||
{/if}
|
||||
</secDNS:update>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue