From b0b97ea355cbf74a93a119eb4e644d9e528e481f Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Mar 19 2014 10:24:16 +0000 Subject: model: Add a convenient Repo.path --- diff --git a/progit/model.py b/progit/model.py index e79cddd..1478c2f 100644 --- a/progit/model.py +++ b/progit/model.py @@ -87,6 +87,9 @@ class Project(BASE): date_created = sa.Column(sa.DateTime, nullable=False, default=datetime.datetime.utcnow) + @property + def path(self): + return "%s.git" % self.name class Comment(BASE): """ Stores the comments made on a commit/file.