Esempio n. 1
0
    def process_item_hook(self, el, full_name, full_link):
        keyword_el = etree.SubElement(self.functions_el, 'keyword')
        keyword_el.set('type', self.get_mark(el))
        keyword_el.set('name', full_name)
        keyword_el.set('link', full_link)

        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 2
0
    def process_item_hook(self, el, full_name, full_link):
        keyword_el = etree.SubElement(self.functions_el, 'keyword')
        keyword_el.set('type', self.get_mark(el))
        keyword_el.set('name', full_name)
        keyword_el.set('link', full_link)

        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 3
0
    def process_item_hook(self, el, full_name, full_link):

        item_type = get_item_type(el)
        if item_type:
            if full_link in self.ident_map:
                self.ident_map[full_link][full_name] = item_type
            else:
                self.ident_map[full_link] = {full_name: item_type}
        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 4
0
    def process_item_hook(self, el, full_name, full_link):

        item_type = get_item_type(el)
        if item_type:
            if full_link in self.ident_map:
                self.ident_map[full_link][full_name] = item_type
            else:
                self.ident_map[full_link] = {full_name: item_type}
        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 5
0
    def process_item_hook(self, el, full_name, full_link):
        is_member = False
        if self.check_is_member(el): pass
        elif '<' in full_name: pass
        elif '>' in full_name: pass
        elif '(' in full_name: pass
        elif ')' in full_name: pass
        else:
            self.out_file.write(full_name + ' => ' + full_link + '\n')

        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 6
0
    def process_item_hook(self, el, full_name, full_link):
        if self.check_is_member(el):
            pass
        elif '<' in full_name:
            pass
        elif '>' in full_name:
            pass
        elif '(' in full_name:
            pass
        elif ')' in full_name:
            pass
        else:
            self.out_file.write(full_name + ' => ' + full_link + '\n')

        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 7
0
    def process_item_hook(self, el, full_name, full_link):
        self.links.append({'string': full_name, 'target': full_link})

        if is_group(el):
            saved_group = self.curr_group
            self.curr_group = full_name
            IndexTransform.process_item_hook(self, el, full_name, full_link)
            self.curr_group = saved_group
        else:
            IndexTransform.process_item_hook(self, el, full_name, full_link)

        if is_group(el.getparent()
                    ) and self.curr_group and needs_entry_in_group(el):

            self.links.append({
                'string': get_rel_name(full_name),
                'target': full_link,
                'on_group': self.curr_group
            })
Esempio n. 8
0
    def process_item_hook(self, el, full_name, full_link):
        self.links.append({'string': full_name, 'target': full_link})

        if is_group(el):
            saved_group = self.curr_group
            self.curr_group = full_name
            IndexTransform.process_item_hook(self, el, full_name, full_link)
            self.curr_group = saved_group
        else:
            IndexTransform.process_item_hook(self, el, full_name, full_link)

        if is_group(el.getparent()) and self.curr_group and \
                needs_entry_in_group(el):

            self.links.append({
                'string': get_rel_name(full_name),
                'target': full_link,
                'on_group': self.curr_group
            })
Esempio n. 9
0
    def process_item_hook(self, el, full_name, full_link):
        if is_group(el):
            saved_group = self.curr_group

            self.groups[full_name] = {
                'name': full_name,
                'base_url': full_link,
                'urls': ['']
            }
            self.curr_group = full_name
            IndexTransform.process_item_hook(self, el, full_name, full_link)
            self.curr_group = saved_group
        else:
            IndexTransform.process_item_hook(self, el, full_name, full_link)

        if is_group(el.getparent()):
            base_url = self.groups[self.curr_group]['base_url']
            if full_link.find(base_url) == 0:
                rel_link = full_link[len(base_url):]
                if not rel_link in self.groups[self.curr_group]['urls']:
                    self.groups[self.curr_group]['urls'].append(rel_link)
Esempio n. 10
0
    def process_item_hook(self, el, full_name, full_link):
        if is_group(el):
            saved_group = self.curr_group

            self.groups[full_name] = {
                'name': full_name,
                'base_url': full_link,
                'urls': ['']
            }
            self.curr_group = full_name
            IndexTransform.process_item_hook(self, el, full_name, full_link)
            self.curr_group = saved_group
        else:
            IndexTransform.process_item_hook(self, el, full_name, full_link)

        if is_group(el.getparent()):
            base_url = self.groups[self.curr_group]['base_url']
            if full_link.find(base_url) == 0:
                rel_link = full_link[len(base_url):]
                if rel_link not in self.groups[self.curr_group]['urls']:
                    self.groups[self.curr_group]['urls'].append(rel_link)
Esempio n. 11
0
 def process_item_hook(self, el, full_name, full_link):
     item_kind = self.get_item_kind(el)
     if item_kind is not None:
         add_to_map(self.ns_map, full_name, full_link, item_kind)
     IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 12
0
 def process_item_hook(self, el, full_name, full_link):
     self.out_file.write('<li>' +
                         self.output_item(el, full_name, full_link) +
                         '<ul>')
     IndexTransform.process_item_hook(self, el, full_name, full_link)
     self.out_file.write('</ul></li>\n')
Esempio n. 13
0
 def process_item_hook(self, el, full_name, full_link):
     self.out_file.write('<li>' +
                         self.output_item(el, full_name, full_link) +
                         '<ul>')
     IndexTransform.process_item_hook(self, el, full_name, full_link)
     self.out_file.write('</ul></li>\n')
Esempio n. 14
0
    def process_item_hook(self, el, full_name, full_link):

        self.out_file.write(full_name + ' => ' + full_link + '\n')
        IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 15
0
 def process_item_hook(self, el, full_name, full_link):
     item_kind = self.get_item_kind(el)
     if item_kind is not None:
         add_to_map(self.ns_map, full_name, full_link, item_kind)
     IndexTransform.process_item_hook(self, el, full_name, full_link)
Esempio n. 16
0
 def process_item_hook(self, el, full_name, full_link):
     self.out_file.write('<keyword type="' + xml_escape(self.get_mark(el)) +
                         '" name="' + xml_escape(full_name) + '" link="' +
                         xml_escape(full_link) + '"/>\n')
     IndexTransform.process_item_hook(self, el, full_name, full_link)