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
1
vote
1 answer

How do I setup pyramid_beaker for a sessions & login system?

I'm trying to follow the instructions here (http://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/) so I can setup a session/login system. The instructions are confusing me greatly. What exactly is the "default activation setup"? Does that…
zakdances
  • 22,285
  • 32
  • 102
  • 173
0
votes
1 answer

Problems with dbm module under python 3 using Beaker

Im having trouble using Beaker on windows 7. Im using python 3, and i understand there are problems with the dbm module for python 3 under windows. The error im getting when i attempt to start my module is: ImportError: No module named _dbm Poking…
richzilla
  • 40,440
  • 14
  • 56
  • 86
0
votes
1 answer

Pyramid and Beaker: ValueError: insecure string pickle

I'm having some trouble with Pyramid and Beaker (using pyramid_beaker and a memcached backend). This error started happening seemingly at random (I wasn't making any changes in the code) and it persists on requests that don't even use…
Ross
  • 46,186
  • 39
  • 120
  • 173
0
votes
3 answers

How to set cookies with no expiration date and how to set custom cookie headers?

By default, cookies expires at session end, so user need to login every time after closing the browser. But what about remember option - how to set cookie with no expiration date? I've tried to add session.cookie_expires = False in development.ini…
Vitalii Ponomar
  • 10,686
  • 20
  • 60
  • 88
0
votes
1 answer

beaker cache regions for class methods - use it not as a decorator?

I have multiple classes of the following structure: class Thing(Base): id = Column(Integer, primary_key=True) @cache_region('short_term', 'get_children') def get_children(self, childrentype=None): return…
Jonathan Ong
  • 19,927
  • 17
  • 79
  • 118
0
votes
0 answers

Multiple Sessions on Bottle Python

I have built an attendance system for a company based on the Bottle web framework. Working perfectly fine, but it is not allowing multiple sessions. i.e, I want to access the same local host on Firefox, Microsoft Edge, and google chrome at the same…
0
votes
1 answer

WORKGROUP\user: No Mapping between account names and Security Id was done,

I installed PostgreSQL using Chocolaty and Beaker tests in Windows Server, but I got this error WORKGROUP\user: No Mapping between account names and Security Id was done. Then: Initdb: Error: could not access directory ¯d: /postgres/data®:…
0
votes
1 answer

#pyramid logout can not remove session if another page is loading

My web uses pyramid, and include pyramid_beaker to use session to judge wether client is already logged in or not. Now I meet a proble: I login on one web page and open a new tab, if I logout on first page(it's seen redirected to login page…
bigedge
  • 11
  • 2
0
votes
1 answer

Problem with beaker hanging on aws-sdk awaiting response from private ip

It will of course never get response on the private ip. Associate public ip is by default disabled on my subnet-id. Is there anyway to tell beaker to set associate_public_ip_address true?
thoredge
  • 12,237
  • 1
  • 40
  • 55
0
votes
1 answer

Using a Beakerx Custom Magic

I've created a custom Magic command with the intention of generating a spark query programatically. Here's the relevant part of my class that implements the MagicCommandFunctionality: MagicCommandOutcomeItem execute(MagicCommandExecutionParam…
johnxfly
  • 21
  • 6
0
votes
1 answer

Python + Beaker error: Can't get attribute 'MyAttribute' on

I'm calling the method invalidate() from Beaker and it's throwing the error the following error. The strange thing is that this was working correctly a few days ago, and the "attribute 'Field'" which is referenced in the error is actually a class…
0
votes
2 answers

Beaker Rspec running system command

I'm building an acceptance test for puppet on windows where I need to make sure certain security policies where indeed changed after the manifest is applied. I have it 'should modify security policy' do system("secedit.exe /export /areas…
0
votes
1 answer

Beaker Cache complains TypeError

Beaker cache complains a TypeError. I've searched on Google, even tracked beaker's issue tracker but couldn't find anything. I cache the queries like the following method @staticmethod def get_queries(query): @cache.cache(query, type = 'file',…
Ivan
  • 28,999
  • 6
  • 24
  • 21
0
votes
0 answers

ImportError: No module named request when importing BeakerX into Jupyter

I am trying to import beakerx into my jupyter environment like so: from beakerx import * However, I get the following error: ImportError Traceback (most recent call last) in…
spiral01
  • 545
  • 2
  • 17
0
votes
1 answer

How do I invalidate several keys with common prefix in beaker / pylons cache?

suppose I have the following snippet which caches the function load using search_term, limit as key, presumably.(In beaker it's converted to string representation of tuple of all arguments I suppose) # Assuming a cache object is available…
fantasticsid
  • 707
  • 8
  • 16