~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/branchview.py

  • Committer: Robey Pointer
  • Date: 2007-03-12 17:51:19 UTC
  • Revision ID: robey@lag.net-20070312175119-xms19elalw5ax1zc
revert the change that stopped converting spaces to ' '.
in other words, go back to doing the nbsp conversion.  bug report from
kent gibson reveals that at least in firefox, the spaces aren't handled
the way i want.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from cherrypy import HTTPRedirect
30
30
 
31
31
from loggerhead import util
32
 
from loggerhead.changecache import ChangeCache, FileChangeCache
 
32
from loggerhead.changecache import ChangeCache
33
33
from loggerhead.history import History
34
34
from loggerhead.textindex import TextIndex
35
35
from loggerhead.controllers.changelog_ui import ChangeLogUI
141
141
            self.log.debug('Reload branch history...')
142
142
            if self._history is not None:
143
143
                self._history.detach()
144
 
            _history = self._history = History.from_folder(
145
 
                self._absfolder, self._name)
 
144
            self._history = History.from_folder(self._absfolder, self._name)
146
145
            cache_path = self._config.get('cachepath', None)
147
146
            if cache_path is None:
148
147
                # try the project config
149
148
                cache_path = self._project_config.get('cachepath', None)
150
149
            if cache_path is not None:
151
 
                _history.use_cache(ChangeCache(_history, cache_path))
152
 
                _history.use_file_cache(FileChangeCache(_history, cache_path))
153
 
                _history.use_search_index(TextIndex(_history, cache_path))
 
150
                self._history.use_cache(ChangeCache(self._history, cache_path))
 
151
                self._history.use_search_index(TextIndex(self._history, cache_path))
154
152
        return self._history
155
153
    
156
154
    def check_rebuild(self):