Skip to main content

Beaker package integration for ZTFY

Project description

Introduction

ZTFY.beaker is a small wrapper around Beaker (http://pypi.python.org/pypi/Beaker) session and caching library.

It allows you to define a Beaker session throught a ZCML configuration directive to include it in a WSGI application based on ZTFY packages.

A BeakerSessionUtility can then be created and registered to act as a session data container.

Beaker session configurations

All Beaker session options can be defined throught ZCML directives. See metadirectives.py to get the complete list of configuration options.

For example, to define a Memcached session configuration:

<configure
        xmlns:beaker="http://namespaces.ztfy.org/beaker">

        <beaker:memcachedSession
                url="127.0.0.1:11211"
                cookie_expires="False"
                lock_dir="/var/lock/sessions" />

</configure>

Directives are available for memory, DBM, file, Memcached and SQLAlchemy sessions storages.

HISTORY

0.1.0

  • first release

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ztfy.beaker, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ztfy.beaker-0.1.0-py2.7.egg (32.3 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ztfy.beaker-0.1.0.tar.gz (13.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page