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


Download files

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

Source Distribution

ztfy.beaker-0.1.0.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

ztfy.beaker-0.1.0-py2.7.egg (32.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page