comparison MoinMoin/macro/Include.py @ 1868:64507f46beb2

reduce usage of has_key()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 22:01:07 +0100
parents ebcebba1afb3
children bb2e053067fb
comparison
equal deleted inserted replaced
1867:8166b37db555 1868:64507f46beb2
98 98
99 # iterate over pages 99 # iterate over pages
100 for inc_name in pagelist: 100 for inc_name in pagelist:
101 if not request.user.may.read(inc_name): 101 if not request.user.may.read(inc_name):
102 continue 102 continue
103 if this_page._macroInclude_pagelist.has_key(inc_name): 103 if inc_name in this_page._macroInclude_pagelist:
104 result.append(u'<p><strong class="error">Recursive include of "%s" forbidden</strong></p>' % (inc_name,)) 104 result.append(u'<p><strong class="error">Recursive include of "%s" forbidden</strong></p>' % (inc_name,))
105 continue 105 continue
106 if skipitems: 106 if skipitems:
107 skipitems -= 1 107 skipitems -= 1
108 continue 108 continue