Mercurial > kallithea
comparison rhodecode/model/db.py @ 1039:51b70569c330 beta
extended admin rescan to show what repositories was added and what removed
fixed found bugs, added expunge to cached getter since it introduce some more problems.
Added some relationship to properly clean related objects from database.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Feb 2011 01:38:39 +0100 |
parents | 9e59b16d1b48 |
children | 5d676b6ab71c |
comparison
equal
deleted
inserted
replaced
1038:5554aa9c2480 | 1039:51b70569c330 |
---|---|
112 user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all') | 112 user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all') |
113 | 113 |
114 repositories = relationship('Repository') | 114 repositories = relationship('Repository') |
115 user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all') | 115 user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all') |
116 | 116 |
117 group_member = relationship('UsersGroupMember', cascade='all') | |
117 @property | 118 @property |
118 def full_contact(self): | 119 def full_contact(self): |
119 return '%s %s <%s>' % (self.name, self.lastname, self.email) | 120 return '%s %s <%s>' % (self.name, self.lastname, self.email) |
120 | 121 |
121 | 122 |