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
0 answers

Beaker fails to find Python

I know this has been asked before, but I haven't found a response that helps me and apparently I don't have enough points to add a comment, so I'm going to post this as a new question. I installed beaker and followed the instructions to connect it…
Eudald
  • 358
  • 3
  • 12
0
votes
1 answer

I receive an AttributeError: 'NoneType', webpy multiple sessions using beaker

I am building a webpy platform for my school to make posts and such for their graduation commencement. I've been writing this python code and I am unsure of what to do. I have tried using beaker to manage the multiple sessions, I based this code off…
0
votes
1 answer

Caching with Pyramid

How can I cache my views and templates with Pyramid? The docs talk about pyramid_beaker ( https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/ ) but the page doesn't actually show how to use the cache. The first result on google for…
Tõnis M
  • 470
  • 4
  • 18
0
votes
1 answer

Table in mysql for pyramid_beaker session

what columns are need to defined in mysql for storing session using…
which_part
  • 792
  • 3
  • 11
  • 26
0
votes
1 answer

configuring pyramid_beaker to use with mysql

i am using pyramid_beaker as session factory .I want to save session in mysql database.so i want to know how to configure that? i have gone through this http://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/ but it does not solve my…
which_part
  • 792
  • 3
  • 11
  • 26
0
votes
0 answers

Beaker session in bottle

while using beaker session, i came across to use same session object along the whole application. I came through this url: Bottle.py session with Beaker But, still i am getting 'KeyError' when i am trying to access the save session value in one…
Gopi Krishna
  • 108
  • 2
  • 16
0
votes
1 answer

pyramid beaker + Sessionauthenticationpolicy how they work?

For my webapp I use beaker and sessionauthenticationpolicy. When looking at pyramid.security I noticed that the "remember" function of "sessionauthenticationpolicy" return an empty list so I can't set a cookies on the response returned to the…
0
votes
1 answer

How do I pass a variable to createfunc in Beaker

In the Beaker documentation, they talk about not passing a parameter directly in the createfunc call but use a closure. The creation function must not accept any arguments as it won’t be called with any. Options affecting the created value can be…
Joshua Dalley
  • 339
  • 3
  • 6
  • 23
0
votes
1 answer

How to enable Puppet's debug logging level from Beaker

I have some beaker-rspec acceptance tests covering a Puppet module I am creating, and would like to know how to enable debug logging on the underlying Puppet calls (e.g., know exactly what happens when I call apply_manifest). I'm pretty sure I've…
JimmidyJoo
  • 10,503
  • 7
  • 27
  • 30
0
votes
5 answers

Bottle() w/ Beaker Middleware?

How do you use bottle subapps with beaker Sessions? bottlepy.org shows examples for…
Nite
  • 61
  • 5
0
votes
1 answer

Can I move beaker.SessionMiddleware to handle method somehow?

It's a bit ugly that many lines of code fall into "__main__". Can someone give me a tip of how to move SessionMiddleware into handle method? I should notice that I use session in CoreXmlParser. Thanks in advance ! def handle(environ,…
0
votes
1 answer

Docker testing environment

I just did the configuration explained on the docs for docker. HOSTS: ubuntu-12-10: platform: ubuntu-12.10-x64 image: ubuntu:12.10 hypervisor: docker CONFIG: type: foss But I am getting this stacktrace after launching…
Captain Haddock
  • 488
  • 2
  • 7
0
votes
1 answer

How to start using Beaker in Django

Question: Could people show or point me toward a complete example or tutorial to start using Beaker in Django? Information: Since I've read about problems in database connection with django ORM here I've decided to replace Django's ORM with…
Chatri Sae-Tung
  • 436
  • 4
  • 7
0
votes
1 answer

Using BeakerCleanup with Zope

BeakerCleanup does not seem to work with Zope as it requires a .ini or a .cfg file format. BeakerSession parameters are contained in the zope.conf file and obviously this cannot be used in $ /bin/paster call…
Ravi
  • 2,472
  • 3
  • 20
  • 26
0
votes
0 answers

Session problems in Zope

The session data disappears when a page is duplicated a few times in Chrome/Firefox. Below is an example: Load http://www.example.com/parent/test. This page has a search feature which on click invokes a Python script that sets a session variable…
Ravi
  • 2,472
  • 3
  • 20
  • 26