# HG changeset patch # User Mads Kiilerich # Date 1448584761 -3600 # Node ID 87aef0cb5a6a21285b1bd6f9ffe8e37c4b5739ab # Parent 007d1a34a35a68e5ccab2d17cc402736573536ee# Parent 1666c8c7d92596ea6610a7bf8f6a78e3a9e3d06b Merge stable diff -r 007d1a34a35a -r 87aef0cb5a6a docs/setup.rst --- a/docs/setup.rst Tue Nov 17 02:42:07 2015 +0100 +++ b/docs/setup.rst Fri Nov 27 01:39:21 2015 +0100 @@ -730,7 +730,7 @@ WSGIDaemonProcess kallithea \ processes=1 threads=4 \ - python-path=/srv/kallithea/pyenv/lib/python2.7/site-packages + python-path=/srv/kallithea/venv/lib/python2.7/site-packages WSGIScriptAlias / /srv/kallithea/dispatch.wsgi WSGIPassAuthorization On @@ -758,7 +758,7 @@ os.chdir('/srv/kallithea/') import site - site.addsitedir("/srv/kallithea/pyenv/lib/python2.7/site-packages") + site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages") from paste.deploy import loadapp from paste.script.util.logging_config import fileConfig diff -r 007d1a34a35a -r 87aef0cb5a6a kallithea/controllers/admin/gists.py --- a/kallithea/controllers/admin/gists.py Tue Nov 17 02:42:07 2015 +0100 +++ b/kallithea/controllers/admin/gists.py Fri Nov 27 01:39:21 2015 +0100 @@ -42,7 +42,7 @@ from kallithea.lib.base import BaseController, render from kallithea.lib.auth import LoginRequired, NotAnonymous from kallithea.lib.utils import jsonify -from kallithea.lib.utils2 import safe_int, time_to_datetime +from kallithea.lib.utils2 import safe_int, safe_unicode, time_to_datetime from kallithea.lib.helpers import Page from sqlalchemy.sql.expression import or_ from kallithea.lib.vcs.exceptions import VCSError, NodeNotChangedError @@ -205,7 +205,7 @@ log.error(traceback.format_exc()) raise HTTPNotFound() if format == 'raw': - content = '\n\n'.join([f.content for f in c.files if (f_path is None or f.path == f_path)]) + content = '\n\n'.join([f.content for f in c.files if (f_path is None or safe_unicode(f.path) == f_path)]) response.content_type = 'text/plain' return content return render('admin/gists/show.html') diff -r 007d1a34a35a -r 87aef0cb5a6a kallithea/lib/paster_commands/repo_scan.py --- a/kallithea/lib/paster_commands/repo_scan.py Tue Nov 17 02:42:07 2015 +0100 +++ b/kallithea/lib/paster_commands/repo_scan.py Fri Nov 27 01:39:21 2015 +0100 @@ -56,12 +56,12 @@ #get SqlAlchemy session self._init_session() rm_obsolete = self.options.delete_obsolete - log.info('Now scanning root location for new repos...') + print 'Now scanning root location for new repos ...' added, removed = repo2db_mapper(ScmModel().repo_scan(), remove_obsolete=rm_obsolete) added = ', '.join(added) or '-' removed = ', '.join(removed) or '-' - log.info('Scan completed added: %s removed: %s', added, removed) + print 'Scan completed added: %s removed: %s' % (added, removed) def update_parser(self): self.parser.add_option( diff -r 007d1a34a35a -r 87aef0cb5a6a kallithea/templates/admin/gists/edit.html --- a/kallithea/templates/admin/gists/edit.html Tue Nov 17 02:42:07 2015 +0100 +++ b/kallithea/templates/admin/gists/edit.html Fri Nov 27 01:39:21 2015 +0100 @@ -69,8 +69,8 @@ % for cnt, file in enumerate(c.files):
- - + +