~bkidwell/zim/pyzim-win-installer

« back to all changes in this revision

Viewing changes to zim/gui/applications.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:
695
695
                        cmd[cmd.index('%n')] = File(notebook.uri).path
696
696
 
697
697
                if '%D' in cmd:
698
 
                        dir = notebook.get_document_root()
 
698
                        dir = notebook.document_root
699
699
                        if dir:
700
700
                                cmd[cmd.index('%D')] = dir.path
701
701
                        else: