Questions tagged [beaker]

Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applications. It comes with WSGI middleware for easy drop-in use with WSGI based web applications, and caching decorators for ease of use with any Python based application.

Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applications. It comes with WSGI middleware for easy drop-in use with WSGI based web applications, and caching decorators for ease of use with any Python based application.

For more information, read the documentation at: https://beaker.readthedocs.io/en/latest/index.html


Beaker is also the name of a full-stack software and hardware integration testing system, with the ability to manage a globally distributed network of test labs. Use the beaker-testing tag instead of this tag for questions about Beaker the testing system.

114 questions
0
votes
1 answer

Beaker: how access a cache created by decorator programmatically?

I have a cached method like this: from beaker.cache import CacheManager from beaker.util import parse_cache_config_options cache = CacheManager(**parse_cache_config_options({'cache.type': 'memory'})) @cache.cache('test',expire=100000) def…
Maksym Polshcha
  • 18,030
  • 8
  • 52
  • 77
0
votes
1 answer

How to use beaker for multiple bottle apps

The documentation of Bottle show how to use beaker for session management, like the following import bottle from beaker.middleware import SessionMiddleware session_opts = { 'session.type': 'file', 'session.cookie_expires': 300, …
Jcyrss
  • 1,513
  • 3
  • 19
  • 31
0
votes
1 answer

How to show div based on Beaker session status with jQuery?

Content is loaded in a main_content area via jQuery Ajax. Outside of the main_content area is a login link. Clicking on this link loads a form in the main_content area which, when submitted, performs login authorisation with Beaker. On success,…
user1063287
  • 10,265
  • 25
  • 122
  • 218
0
votes
2 answers

Disable cache decorator for testing for dogpile.cache

I recently switched from beaker to dogpile.cache. It works very well in live code but I am running into an issue with testing. How do I disable the caching for testing? I am currently using #caching.py from dogpile.cache import make_region region =…
sasker
  • 2,221
  • 2
  • 21
  • 26
0
votes
1 answer

Python - Mako templates - How to invalidate cache?

One of my pages has a block generated with this key: <%block cached="True" cache_key="${(month, year, timezone, admin)}"> To invalidate a specific month/year, I loop through all the timezones/admin (about 50)…
whats canasta
  • 763
  • 2
  • 7
  • 16
0
votes
1 answer

python bottle with beaker.middleware

I want to integrate python beaker.middleware with bottle mvc. This(https://github.com/cavillingelite/bottle-mvc-mod_wsgi) is the configured version of bottle micro framework as MVC. I can run this(http://bottlepy.org/docs/dev/recipes.html) coding…
Ananda Subasinghe
  • 1,265
  • 2
  • 13
  • 24
0
votes
1 answer

pyramid_beaker httponly and secure cookie

After a security report, I've been asked to provide a secure session cookie. I am using pyramid_beaker.session_factory_from_settings() and was lucky(?) to be able to set the httponly with ('session.httponly', True), but ('session.secure', True) does…
Danosaure
  • 3,578
  • 4
  • 26
  • 41
0
votes
1 answer

Beaker 1.5.1 not creating cache file

Recently one of our app servers went down, when it was rebooted the Python Beaker module stopped producing cache files. The error I am getting is: Error - : 'ver' URL: http://127.0.0.1:3002/menuadmin/ File…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
0
votes
1 answer

File permission issue with apache+mod_wsgi with pyramid&pyramid_beaker

I am trying to set up a pyramid app. I am using wsgi and apache2. I keep getting Internal server error and the contents of the apache log is mod_wsgi (pid=11200): Exception occurred processing WSGI script '/home/ubuntu/modwsgi/env/pyramid.wsgi'. …
Ranjith Ramachandra
  • 10,399
  • 14
  • 59
  • 96
1 2 3 4 5 6 7
8