~jaap.karssenberg/zim/pyzim-0.43-backports

« back to all changes in this revision

Viewing changes to zim/notebook.py

  • Committer: Jaap Karssenberg
  • Date: 2010-01-13 22:34:54 UTC
  • Revision ID: pardus@cpan.org-20100113223454-0u1cefs3erbh57gg
* Fix that removes duplicate entries with '_' in index
* Fix for umask

Show diffs side-by-side

added added

removed removed

Lines of Context:
625
625
                resolve_path() to parse user input.
626
626
                '''
627
627
                orig = name
 
628
                name = name.replace('_', ' ')
 
629
                        # Avoid duplicates with and without '_' in index
628
630
                name = ':'.join( map(unicode.strip,
629
631
                                filter(lambda n: len(n)>0, unicode(name).split(':')) ) )
630
632