Mercurial > kallithea
changeset 1200:3ecaa17d9dea beta
added os.sep for files controller
updated changelog
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Apr 2011 21:29:50 +0200 |
parents | 268fa0b6b2ef |
children | 7d2c16725be6 |
files | docs/changelog.rst rhodecode/controllers/files.py |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/changelog.rst Sat Apr 02 21:19:16 2011 +0200 +++ b/docs/changelog.rst Sat Apr 02 21:29:50 2011 +0200 @@ -22,7 +22,7 @@ - fixed #90 whoosh indexer can index chooses repositories passed in command line - extended journal with day aggregates and paging -- implemented #107 customizable code highlights on code sources +- implemented #107 source code lines highlight ranges - implemented #93 customizable changelog on combined revision ranges - equivalent of githubs compare view - implemented #108 extended and more powerful LDAP configuration @@ -33,8 +33,8 @@ - fixed many issues with international characters and unicode. It uses utf8 decode with replace to provide less errors even with non utf8 encoded strings - #125 added API KEY access to feeds -- #109 Repository can be created from external Mercurial link, and manually - updated (via pull) from admin panel +- #109 Repository can be created from external Mercurial link (aka. remote + repository, and manually updated (via pull) from admin panel fixes ----- @@ -49,6 +49,7 @@ - removed issue with space inside renamed repository after deletion - fixed strange issue on formencode imports - fixed #126 Deleting repository on Windows, rename used incompatible chars. +- windows fixes for os.kill and path spliting, issues #148 and #133 1.1.7 (**2011-03-23**) ======================
--- a/rhodecode/controllers/files.py Sat Apr 02 21:19:16 2011 +0200 +++ b/rhodecode/controllers/files.py Sat Apr 02 21:29:50 2011 +0200 @@ -25,6 +25,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. +import os import logging import rhodecode.lib.helpers as h @@ -153,7 +154,7 @@ file_node = self.__get_filenode_or_redirect(repo_name, cs, f_path) response.content_disposition = 'attachment; filename=%s' % \ - f_path.split('/')[-1].encode('utf8', 'replace') + f_path.split(os.sep)[-1].encode('utf8', 'replace') response.content_type = file_node.mimetype return file_node.content