Ejemplo n.º 1
0
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
Ejemplo n.º 2
0
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
Ejemplo n.º 3
0
 def content_hash(self):
     if self.attributes["content_type"] == "binary":
         return hash_local_file(self.template)
     else:
         return sha1(self.content)