changeset 976:de535f8b1e8b beta

Fixed links for repository, it's optional now to pass a link without a summary eg. https://rhodecode.org/repo -> shows https://rhodecode.org/repo/summary fixed db model
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 28 Jan 2011 22:12:28 +0100
parents 27dba61f07d3
children 28524453bb76
files rhodecode/config/routing.py rhodecode/model/db.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Fri Jan 28 19:46:10 2011 +0100
+++ b/rhodecode/config/routing.py	Fri Jan 28 22:12:28 2011 +0100
@@ -169,6 +169,8 @@
     map.connect('raw_changeset_home', '/{repo_name:.*}/raw-changeset/{revision}',
                 controller='changeset', action='raw_changeset', revision='tip',
                 conditions=dict(function=check_repo))
+    map.connect('summary_home', '/{repo_name:.*}',
+                controller='summary', conditions=dict(function=check_repo))
     map.connect('summary_home', '/{repo_name:.*}/summary',
                 controller='summary', conditions=dict(function=check_repo))
     map.connect('shortlog_home', '/{repo_name:.*}/shortlog',
--- a/rhodecode/model/db.py	Fri Jan 28 19:46:10 2011 +0100
+++ b/rhodecode/model/db.py	Fri Jan 28 22:12:28 2011 +0100
@@ -201,7 +201,7 @@
 
     repo_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id', cascade='all')
 
-    logs = relation('UserLog', cascade='all')
+    logs = relationship('UserLog', cascade='all')
 
     def __repr__(self):
         return "<%s('%s:%s')>" % (self.__class__.__name__,