(self, filename)
| 662 | return paths |
| 663 | |
| 664 | def _get_static_file(self, filename): |
| 665 | filename = filename.replace("..", "") #avoid backdirs |
| 666 | __i = filename.find(':') |
| 667 | if __i < 0: |
| 668 | return None |
| 669 | key = filename[:__i] |
| 670 | path = filename[__i+1:] |
| 671 | key = key.replace("/","") |
| 672 | paths = self.all_paths() |
| 673 | if not key in paths: |
| 674 | return None |
| 675 | return os.path.join(paths[key], path) |
| 676 | |
| 677 | def _overload(self, data, **kwargs): |
| 678 | """Used to overload the content before sent back to client""" |
no test coverage detected