changeset 667:56a8434a88cc beta

fixes #51 deleting a repo didn't delete it's dependent db entries. fixed routes logger double entries
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 07 Nov 2010 15:06:43 +0100
parents 6ed37675e78b
children dff6d5cb8bba
files development.ini production.ini rhodecode/config/deployment.ini_tmpl rhodecode/model/db.py
diffstat 4 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/development.ini	Sun Nov 07 15:04:15 2010 +0100
+++ b/development.ini	Sun Nov 07 15:06:43 2010 +0100
@@ -136,6 +136,7 @@
 handlers = console
 qualname = routes.middleware
 # "level = DEBUG" logs the route matched and routing variables.
+propagate = 0
 
 [logger_rhodecode]
 level = DEBUG
--- a/production.ini	Sun Nov 07 15:04:15 2010 +0100
+++ b/production.ini	Sun Nov 07 15:06:43 2010 +0100
@@ -136,6 +136,7 @@
 handlers = console
 qualname = routes.middleware
 # "level = DEBUG" logs the route matched and routing variables.
+propagate = 0
 
 [logger_rhodecode]
 level = DEBUG
--- a/rhodecode/config/deployment.ini_tmpl	Sun Nov 07 15:04:15 2010 +0100
+++ b/rhodecode/config/deployment.ini_tmpl	Sun Nov 07 15:06:43 2010 +0100
@@ -136,6 +136,7 @@
 handlers = console
 qualname = routes.middleware
 # "level = DEBUG" logs the route matched and routing variables.
+propagate = 0
 
 [logger_rhodecode]
 level = DEBUG
--- a/rhodecode/model/db.py	Sun Nov 07 15:04:15 2010 +0100
+++ b/rhodecode/model/db.py	Sun Nov 07 15:06:43 2010 +0100
@@ -88,6 +88,8 @@
     user = relation('User')
     fork = relation('Repository', remote_side=repo_id)
     repo_to_perm = relation('RepoToPerm', cascade='all')
+    stats = relation('Statistics', cascade='all')
+
 
     def __repr__(self):
         return "<Repository('id:%s:%s')>" % (self.repo_id, self.repo_name)
@@ -134,5 +136,5 @@
     commit_activity_combined = Column("commit_activity_combined", BLOB(), nullable=False)#JSON data
     languages = Column("languages", BLOB(), nullable=False)#JSON data
 
-    repository = relation('Repository')
+    repository = relation('Repository', single_parent=True)