Skip to content

Commit

Permalink
fixed url listing for cache purging
Browse files Browse the repository at this point in the history
svn path=/ZMS/branches/zms4/; revision=5511
  • Loading branch information
Dr. Frank Hoffmann committed Mar 22, 2020
1 parent 6cf4768 commit b2cb98d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Products/zms/import/manage_cachepurge-3.0.2.metacmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ return '<br />'.join(msg)
><tal:block tal:condition="python:request.get('btn','')=='all_urls' or request.get('btn','')=='this_url'"
tal:define="url python:here.getHref2IndexHtml({'lang':request.get('lang',here.getPrimaryLanguage()),'preview':''});
url python:( ip_or_domain in url ) and url or ( protocol + '://' + ip_or_domain + url.split('/content')[1] )"
tal:replace="python:'%s\n%s\n'%(url,url.split('index_')[0])">node url</tal:block
tal:replace="python: len(url.split('index_'))>1 and '%s\n%s\n'%(url,url.split('index_')[0]) or '%s\n'%(url)">node url</tal:block
><tal:block
tal:condition="python:request.get('btn','')=='all_urls'"
tal:repeat="ob python:here.filteredTreeNodes(request,here.PAGES,max_len=None)"
><tal:block tal:define="url python:ob.getHref2IndexHtml({'lang':request.get('lang',here.getPrimaryLanguage()),'preview':''});
url python:( ip_or_domain in url ) and url or ( protocol + '://' + ip_or_domain + url.split('/content')[1] )"
tal:replace="python:'%s\n%s\n'%(url,url.split('index_')[0])">node url</tal:block
tal:replace="python: len(url.split('index_'))>1 and '%s\n%s\n'%(url,url.split('index_')[0]) or '%s\n'%(url)">node url</tal:block
></tal:block
></textarea>
</div>
</div>
<div class="form-row" tal:define="reset_preview python:request.set('preview','preview')">
<div class="form-group row" tal:define="reset_preview python:request.set('preview','preview')">
<div class="controls save">
<button type="submit" name="btn" class="btn btn-secondary" value="this_url" title="Write this URL into List">Get this URL</button>
<button type="submit" name="btn" class="btn btn-warning" value="all_urls" title="Recursively write all dependent URLs into List">Get URLs recursivly</button>
Expand Down

0 comments on commit b2cb98d

Please sign in to comment.