示例#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