Commits

Marcin Kuzminski  committed c165349

merged bugfixes for rhodecode 1.1.2 release

  • Participants
  • Parent commits b8d6511

Comments (0)

Files changed (6)

File docs/changelog.rst

 - 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**)
 ======================
 

File docs/installation.rst

  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
 

File docs/setup.rst

 the config file.
 
 In order to make start using celery run::
+
  paster celeryd <configfile.ini>
 
-
+.. note::
+   Make sure You run this command from same virtualenv, and with the same user
+   that rhodecode runs.
+   
 HTTPS support
 -------------
 
             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;  
     }
 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
 ---------------

File rhodecode/controllers/admin/repos.py

     
     :created_on: Apr 7, 2010
     :author: marcink
-    :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>    
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>    
     :license: GPLv3, see COPYING for more details.
 """
 # This program is free software; you can redistribute it and/or
 
         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)) /

File rhodecode/controllers/summary.py

     
     :created_on: Apr 18, 2010
     :author: marcink
-    :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>    
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>    
     :license: GPLv3, see COPYING for more details.
 """
 # This program is free software; you can redistribute it and/or
 import calendar
 import logging
 from time import mktime
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, date
 
 from vcs.exceptions import ChangesetError
 
             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)
 
 requirements = [
         "Pylons==1.0.0",
+        "WebHelpers>=1.2",
         "SQLAlchemy==0.6.5",
         "Mako==0.3.6",
         "vcs==0.1.10",