comparison rhodecode/model/db.py @ 3457:08e8115585bd beta

calling lock function without lock attribute, will return lock state
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 05 Mar 2013 20:03:33 +0100
parents a6bef3e8a361
children 94f251fda314
comparison
equal deleted inserted replaced
3456:cf1fbc9fed89 3457:08e8115585bd
1000 def unlock(cls, repo): 1000 def unlock(cls, repo):
1001 repo.locked = None 1001 repo.locked = None
1002 Session().add(repo) 1002 Session().add(repo)
1003 Session().commit() 1003 Session().commit()
1004 1004
1005 @classmethod
1006 def getlock(cls, repo):
1007 return repo.locked
1008
1005 @property 1009 @property
1006 def last_db_change(self): 1010 def last_db_change(self):
1007 return self.updated_on 1011 return self.updated_on
1008 1012
1009 def clone_url(self, **override): 1013 def clone_url(self, **override):