Home | History | Annotate | Download | only in docs

Lines Matching refs:entry

43 def fully_qualified_name(entry):
45 Calculates the fully qualified name for an entry by walking the path
49 entry: a BeautifulSoup Tag corresponding to an <entry ...> XML node
55 parents = [i['name'] for i in entry.parents if i.name in filter_tags]
57 name = entry['name']
80 <entry name="Hello" /> # this is in variable 'Hello'
161 This function only makes sense to be called for an Entry, Clone, or
180 Validate that all <clone> elements point to an existing <entry> element.
191 clone_entry = clone['entry']
196 find_entry = lambda x: x.name == 'entry' \
202 error_msg = ("Did not find corresponding clone entry '%s' " + \
209 # All <entry> elements with container=$foo have a <$foo> child
214 Validate all <entry> elements with the following rules:
226 for entry in soup.find_all("entry"):
227 entry_container = entry.attrs.get('container')
230 container_tag = entry.find(entry_container)
234 validate_error(("Entry '%s' in kind '%s' has type '%s' but " + \
236 %(fully_qualified_name(entry), find_kind(entry), \
239 enum = entry.attrs.get('enum')
241 if entry.enum is None:
242 validate_error(("Entry '%s' in kind '%s' is missing enum") \
243 % (fully_qualified_name(entry), find_kind(entry),
248 for value in entry.enum.find_all('value'):
255 validate_error(("Entry '%s' has id '%s', which is not" + \
257 %(fully_qualified_name(entry), value_id))
260 if entry.enum:
261 validate_error(("Entry '%s' kind '%s' has enum el, but no enum attr") \
262 % (fully_qualified_name(entry), find_kind(entry),