call site 3 for path.local.read
apigen/testing/test_apigen_example.py - line 200
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
   def test_build_class_pages_nav_links(self):
       self.apb.build_class_pages(['main.SomeSubClass',
                                   'main.SomeClass'])
->     self.apb.build_namespace_pages()
       # fake some stuff that would be built from other methods
       self.linker.replace_dirpath(self.base, False)
       clsfile = self.base.join('api/main.SomeClass.html')
       assert clsfile.check()
       html = clsfile.read()
       print html
       run_string_sequence_test(html, [
           'href="../style.css"',
           'href="../apigen_style.css"',
           'src="../api.js"',
           'href="index.html">pkg',
           'href="main.html">main',
           'href="main.SomeClass.html">SomeClass',
           'href="main.SomeSubClass.html">SomeSubClass',
       ])
       assert 'href="main.sub.func.html"' not in html
       assert 'href="_test' not in html
       assert 'href="main.sub.html">sub' in html
       _checkhtml(html)
apigen/htmlgen.py - line 569
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
   def build_namespace_pages(self):
       passed = []
       module_name = self.dsa.get_module_name().split('/')[-1]
   
       names = self.namespace_tree.keys()
       names.sort()
       function_names = self.dsa.get_function_names()
       class_names = self.dsa.get_class_names()
       for dotted_name in sorted(names):
           if self.capture:
               self.capture.err.writeorg('.')
           if dotted_name in function_names or dotted_name in class_names:
               continue
           subitem_dotted_names = self.namespace_tree[dotted_name]
           tag = H.Content(self.build_namespace_view(dotted_name,
                                                     subitem_dotted_names))
           nav = self.build_navigation(dotted_name, True)
           if dotted_name == '':
               reltargetpath = 'api/index.html'
           else:
               reltargetpath = 'api/%s.html' % (dotted_name,)
           self.linker.set_link(dotted_name, reltargetpath)
           title_name = dotted_name
           if dotted_name == '':
               title_name = self.dsa.get_module_name()
           title = 'index of %s' % (title_name,)
           rev = self.get_revision(dotted_name)
           if rev:
               title += ' [rev. %s]' % (rev,)
->         self.write_page(title, reltargetpath, tag, nav)
       return passed
apigen/htmlgen.py - line 198
193
194
195
196
197
198
199
200
201
202
203
   def write_page(self, title, reltargetpath, tag, nav):
       targetpath = self.base.join(reltargetpath)
       relbase= relpath('%s%s' % (targetpath.dirpath(), targetpath.sep),
                        self.base.strpath + '/')
       page = wrap_page(self.project, title, targetpath, tag, nav, self.base,
->                      self.pageclass)
       # we write the page with _temporary_ hrefs here, need to be replaced
       # from the TempLinker later
       content = page.unicode()
       targetpath.ensure()
       targetpath.write(content.encode("utf8"))
apigen/htmlgen.py - line 126
122
123
124
125
126
127
   def wrap_page(project, title, targetpath, contentel, navel, basepath,
                 pageclass):
       page = pageclass(project, title, targetpath, nav=navel, encoding='UTF-8')
       page.set_content(contentel)
->     page.setup_scripts_styles(basepath)
       return page
apigen/layout.py - line 46
37
38
39
40
41
42
43
44
45
46
47
48
   def setup_scripts_styles(self, copyto=None):
       for path, name in self.stylesheets:
           if copyto:
               copyto.join(name).write(path.read())
           self.head.append(py.xml.html.link(type='text/css',
                                             rel='stylesheet',
                                             href=self.relpath + name))
       for path, name in self.scripts:
           if copyto:
->             copyto.join(name).write(path.read())
           self.head.append(py.xml.html.script(type="text/javascript",
                                               src=self.relpath + name))