예제 #1
0
파일: model.py 프로젝트: thruflo/thruflo
 def get_id_from(cls, repo, branch, path):
     s = '/'.join([repo, branch, path])
     docid = 'blob%s' % utils.generate_hash(s=s)
     return docid
예제 #2
0
파일: model.py 프로젝트: thruflo/thruflo
 def get_id_from(cls, path):
     docid = 'repo%s' % utils.generate_hash(s=path)
     return docid