Lookup a config field and return its value, first checking the route.config, then route.app.config.
(self, key, default=None)
| 583 | return getargspec(self.get_undecorated_callback())[0] |
| 584 | |
| 585 | def get_config(self, key, default=None): |
| 586 | """ Lookup a config field and return its value, first checking the |
| 587 | route.config, then route.app.config.""" |
| 588 | depr(0, 13, "Route.get_config() is deprecated.", |
| 589 | "The Route.config property already includes values from the" |
| 590 | " application config for missing keys. Access it directly.") |
| 591 | return self.config.get(key, default) |
| 592 | |
| 593 | def __repr__(self): |
| 594 | cb = self.get_undecorated_callback() |