Application processor to setup session for every request
(self, handler)
| 86 | delattr(self._data, name) |
| 87 | |
| 88 | def _processor(self, handler): |
| 89 | """Application processor to setup session for every request""" |
| 90 | |
| 91 | self._cleanup() |
| 92 | self._load() |
| 93 | |
| 94 | try: |
| 95 | return handler() |
| 96 | finally: |
| 97 | self._save() |
| 98 | |
| 99 | def _load(self): |
| 100 | """Load the session from the store, by the id from cookie""" |