Return context identifier. This is the identifier the local objects use internally for this context. You cannot override this method to change the behavior but use it to link other context local objects (such as SQLAlchemy's scoped sessions) to the Werkzeug locals.
(self)
| 337 | self.ident_func = get_ident |
| 338 | |
| 339 | def get_ident(self): |
| 340 | """Return context identifier. |
| 341 | |
| 342 | This is the identifier the local objects use internally |
| 343 | for this context. You cannot override this method to change the |
| 344 | behavior but use it to link other context local objects (such as |
| 345 | SQLAlchemy's scoped sessions) to the Werkzeug locals. |
| 346 | """ |
| 347 | return self.ident_func() |
| 348 | |
| 349 | def cleanup(self): |
| 350 | """Manually clean up the data in the locals for this context. |
no outgoing calls