12
12
project_id = Column(Integer, ForeignKey(Project.c.id))
13
13
type = Column(String) # installed/removed/etc
14
14
target_id = Column(Integer)
16
17
project = relation(Project, backref=backref('relations', order_by=id))
19
def __init__(self, type, target_id, status=None):
19
20
#self.project_id = project_id
21
22
self.target_id = target_id
25
return "<Relation('%s','%s','%s')>" % (self.project_id, self.type,
27
return "<Relation('%s','%s','%s','%s')>" % (self.project_id, self.type,
29
31
class Repo(libkeryx.Base):