Returns the unique hash key for this template name.
(self, name, filename=None)
| 141 | """ |
| 142 | |
| 143 | def get_cache_key(self, name, filename=None): |
| 144 | """Returns the unique hash key for this template name.""" |
| 145 | hash = sha1(name.encode('utf-8')) |
| 146 | if filename is not None: |
| 147 | if isinstance(filename, unicode): |
| 148 | filename = filename.encode('utf-8') |
| 149 | hash.update('|' + filename) |
| 150 | return hash.hexdigest() |
| 151 | |
| 152 | def get_source_checksum(self, source): |
| 153 | """Returns a checksum for the source.""" |
no test coverage detected