(self)
| 653 | self._log.error('error processing GET request', exc_info=True) |
| 654 | |
| 655 | def all_paths(self): |
| 656 | paths = {'res': os.path.join(os.path.dirname(__file__), "res")} |
| 657 | static_paths = self._app_args.get('static_file_path', {}) |
| 658 | if not type(static_paths)==dict: |
| 659 | self._log.error("App's parameter static_file_path must be a Dictionary.", exc_info=False) |
| 660 | static_paths = {} |
| 661 | paths.update(static_paths) |
| 662 | return paths |
| 663 | |
| 664 | def _get_static_file(self, filename): |
| 665 | filename = filename.replace("..", "") #avoid backdirs |
no test coverage detected