--- a/ForgeGit/forgegit/model/git.py
+++ b/ForgeGit/forgegit/model/git.py
@@ -1,27 +1,15 @@
from ming.orm.mapped_class import MappedClass
from ming.orm.property import FieldProperty
-from pyforge.model import Artifact
+from pyforge.model import Repository
-class Repository(Artifact):
+class GitRepository(Repository):
class __mongometa__:
name='git-repository'
- name=FieldProperty(str)
- tool=FieldProperty(str)
- path=FieldProperty(str)
- status=FieldProperty(str)
-
- def url(self):
- return self.app_config.url() + self.name + '/'
-
- def shorthand_id(self):
- return self.name
-
def index(self):
- result = Artifact.index(self)
+ result = Repository.index(self)
result.update(
- name_s=self.name,
type_s='GitRepository')
return result