(self, filename, content_type)
| 728 | return content_type |
| 729 | |
| 730 | def add_encoding(self, filename, content_type): |
| 731 | if 'charset=' in content_type: |
| 732 | return False |
| 733 | exts = self.config.add_encoding_exts.split(',') |
| 734 | if exts[0]=='': |
| 735 | return False |
| 736 | parts = filename.rsplit('.',2) |
| 737 | if len(parts) < 2: |
| 738 | return False |
| 739 | ext = parts[1] |
| 740 | if ext in exts: |
| 741 | return True |
| 742 | else: |
| 743 | return False |
| 744 | |
| 745 | def object_put(self, filename, uri, extra_headers = None, extra_label = ""): |
| 746 | # TODO TODO |