예제 #1
0
파일: files.py 프로젝트: veecue/bundlewrap
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
예제 #2
0
파일: files.py 프로젝트: jrragan/bundlewrap
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
예제 #3
0
 def content_hash(self):
     if self.attributes["content_type"] == "binary":
         return hash_local_file(self.template)
     else:
         return sha1(self.content)