diff --git a/docs/changelog.rst b/docs/changelog.rst --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -22,6 +22,21 @@ fixes - fixed large tooltips problems on main page - fixed #92 whoosh indexer is more error proof +1.1.2 (**2011-01-12**) +====================== + +news +---- + + +fixes +----- + +- fixes #98 protection against float division of percentage stats +- fixed graph bug +- forced webhelpers version since it was making troubles during installation + + 1.1.0 (**2010-12-18**) ====================== diff --git a/docs/installation.rst b/docs/installation.rst --- a/docs/installation.rst +++ b/docs/installation.rst @@ -29,7 +29,7 @@ Or:: pip install rhodecode If you prefer to install manually simply grab latest release from -http://pypi.python.org/pypi/rhodecode, decompres archive and run:: +http://pypi.python.org/pypi/RhodeCode, decompres archive and run:: python setup.py install diff --git a/docs/setup.rst b/docs/setup.rst --- a/docs/setup.rst +++ b/docs/setup.rst @@ -154,9 +154,13 @@ so for example setting `BROKER_HOST` in the config file. In order to make start using celery run:: + paster celeryd - +.. note:: + Make sure You run this command from same virtualenv, and with the same user + that rhodecode runs. + HTTPS support ------------- @@ -182,7 +186,7 @@ Sample config for nginx using proxy:: if (!-f $request_filename){ proxy_pass http://127.0.0.1:5000; } - #this is important for https !!! + #this is important if You want to use https !!! proxy_set_header X-Url-Scheme $scheme; include /etc/nginx/proxy.conf; } @@ -261,11 +265,10 @@ TODO ! Other configuration files ------------------------- -Some extra configuration files and examples can be found here: -http://hg.python-works.com/rhodecode/files/tip/init.d +Some example init.d script can be found here, for debian and gentoo: -and also an celeryconfig file can be use from here: -http://hg.python-works.com/rhodecode/files/tip/celeryconfig.py +https://rhodeocode.org/rhodecode/files/tip/init.d + Troubleshooting --------------- diff --git a/rhodecode/controllers/admin/repos.py b/rhodecode/controllers/admin/repos.py --- a/rhodecode/controllers/admin/repos.py +++ b/rhodecode/controllers/admin/repos.py @@ -7,7 +7,7 @@ :created_on: Apr 7, 2010 :author: marcink - :copyright: (C) 2009-2010 Marcin Kuzminski + :copyright: (C) 2009-2011 Marcin Kuzminski :license: GPLv3, see COPYING for more details. """ # This program is free software; you can redistribute it and/or @@ -285,7 +285,7 @@ class ReposController(BaseController): c.repo_last_rev = r.revisions[-1] if r.revisions else 0 - if last_rev == 0: + if last_rev == 0 or c.repo_last_rev == 0: c.stats_percentage = 0 else: c.stats_percentage = '%.2f' % ((float((last_rev)) / diff --git a/rhodecode/controllers/summary.py b/rhodecode/controllers/summary.py --- a/rhodecode/controllers/summary.py +++ b/rhodecode/controllers/summary.py @@ -7,7 +7,7 @@ :created_on: Apr 18, 2010 :author: marcink - :copyright: (C) 2009-2010 Marcin Kuzminski + :copyright: (C) 2009-2011 Marcin Kuzminski :license: GPLv3, see COPYING for more details. """ # This program is free software; you can redistribute it and/or @@ -28,7 +28,7 @@ import calendar import logging from time import mktime -from datetime import datetime, timedelta +from datetime import datetime, timedelta, date from vcs.exceptions import ChangesetError @@ -102,15 +102,14 @@ class SummaryController(BaseController): except ChangesetError: c.repo_branches[name] = EmptyChangeset(hash) - td = datetime.today() + timedelta(days=1) - y, m, d = td.year, td.month, td.day + td = date.today() + timedelta(days=1) + td_1m = td - timedelta(days=calendar.mdays[td.month]) + td_1y = td - timedelta(days=365) - ts_min_y = mktime((y - 1, (td - timedelta(days=calendar.mdays[m])).month, - d, 0, 0, 0, 0, 0, 0,)) - ts_min_m = mktime((y, (td - timedelta(days=calendar.mdays[m])).month, - d, 0, 0, 0, 0, 0, 0,)) + ts_min_m = mktime(td_1m.timetuple()) + ts_min_y = mktime(td_1y.timetuple()) + ts_max_y = mktime(td.timetuple()) - ts_max_y = mktime((y, m, d, 0, 0, 0, 0, 0, 0,)) if c.repo_info.dbrepo.enable_statistics: c.no_data_msg = _('No data loaded yet') run_task(get_commits_stats, c.repo_info.name, ts_min_y, ts_max_y) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ from rhodecode import get_version requirements = [ "Pylons==1.0.0", + "WebHelpers>=1.2", "SQLAlchemy==0.6.5", "Mako==0.3.6", "vcs==0.1.10",