~bkidwell/zim/pyzim-win-installer

« back to all changes in this revision

Viewing changes to zim/www.py

  • Committer: Jaap Karssenberg
  • Date: 2011-04-14 20:01:02 UTC
  • Revision ID: pardus@cpan.org-20110414200102-uwl2wpksmttdq2wz
Made parsing for document_root consistent with what is done for icon and added test case. Removed "get_document_root()" in favor of a ".document_root" attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
                                headers.add_header('Content-Type', 'text/html', charset='utf-8')
165
165
                                content = self.render_index()
166
166
                        elif path.startswith('/+docs/'):
167
 
                                dir = self.notebook.get_document_root()
 
167
                                dir = self.notebook.document_root
168
168
                                if not dir:
169
169
                                        raise PageNotFoundError(path)
170
170
                                file = dir.file(path[7:])