diff options
| author | Michael Merickel <michael@merickel.org> | 2020-01-09 00:57:15 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2020-01-09 00:57:15 -0600 |
| commit | 79d6a38a66a68231e651a6c81e784ab1a78c07de (patch) | |
| tree | 75d8ffbeec444a564ae5b6623a9ce361eddedced /docs/quick_tutorial/authentication/tutorial | |
| parent | 025824417f0d779f41717a28047dc420991015aa (diff) | |
| download | pyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.tar.gz pyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.tar.bz2 pyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.zip | |
fix paradigm to avoid incorrect usages
It's almost impossible to create a decorator that works on both methods
and functions, but more importantly the original approach was sharing a
cache across instances of the policy. It needed to be local to the
policy instance, but shared across requests. The new example
demonstrates that.
The cache is also much more flexible in its usage patterns now.
Diffstat (limited to 'docs/quick_tutorial/authentication/tutorial')
0 files changed, 0 insertions, 0 deletions
