Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.beakersessiondatamanager

How to install Products.BeakerSessionDataManager

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.beakersessiondatamanager
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1 Available View build log
1.0 Available View build log
1.0b1 Available View build log
Windows (64-bit)
1.1 Available View build log
1.0 Available View build log
1.0b1 Available View build log
Mac OS X (10.5+)
1.1 Available View build log
1.0 Available View build log
1.0b1 Available View build log
Linux (32-bit)
1.1 Available View build log
1.0 Available View build log
1.0b1 Available View build log
Linux (64-bit)
1.1 Available View build log
1.0 Available View build log
1.0b1 Available View build log
 
License
MIT
Lastest release
version 1.1 on Dec 6th, 2011

Introduction

Products.BeakerSessionDataManager is a replacement for the default Zope 2 session implementation. (Compatible with Zope 2.10 and later.) It uses Beaker as a backend (via collective.beaker) and adapts the Beaker session to provide the same interface as a normal Zope session.

Beaker is a better alternative to the default session implementation for several reasons:

  • The Zope session implementation does not perform well in high-write scenarios.
  • Beaker provides better flexibility in where session data is actually stored.
  • Beaker is used and maintained outside of the Zope ecosystem.

System Message: ERROR/3 (<string>, line 16)

Content block expected for the "Note" directive; none found.

.. Note::

System Message: WARNING/2 (<string>, line 17)

Explicit markup ends without a blank line; unexpected unindent.

If you are developing a product that needs sessions but are not already using Zope sessions, you should probably just use collective.beaker directly. This product is meant for use with existing add-ons that already use Zope sessions (i.e. request.SESSION).

Installation
  1. Add the Products.BeakerSessionDataManager egg to your buildout:

    System Message: WARNING/2 (<string>, line 30)

    Literal block expected; none found.

[instance] eggs = Products.BeakerSessionDataManager

  1. Make sure that buildout adds Beaker configuration to zope.conf. For example:

    System Message: WARNING/2 (<string>, line 36)

    Literal block expected; none found.

zope-conf-additional = <product-config beaker> session.type file session.data_dir ${buildout:directory}/var/sessions/data session.lock_dir ${buildout:directory}/var/sessions/lock session.key beaker.session session.secret secret </product-config>

The "secret" should be replaced with a unique string for your system. It must be the same for all Zope instances using the same session store.

See the collective.beaker docs for more details on configuration.

3. In the ZMI, delete the session_data_manager object and add a Beaker Session Data Manager.

Notes
  • Beaker does not automatically clean up old sessions, so you may want to set

System Message: WARNING/2 (<string>, line 57)

Bullet list ends without a blank line; unexpected unindent.

up a cron job to take care of this.

Contributors

  • David Glick [davisagli]
  • Paul Roe [kuetrzi]

System Message: WARNING/2 (<string>, line 65)

"include" directive disabled.

.. include:: CHANGES.rst

Changelog

1.1 (2011-12-05)
  • Made compatible with Zope 2.10.

System Message: WARNING/2 (<string>, line 74)

Bullet list ends without a blank line; unexpected unindent.

[davisagli]

1.0 (2011-06-29)
  • Add test and fix for missing __len__.

System Message: WARNING/2 (<string>, line 80)

Bullet list ends without a blank line; unexpected unindent.

[kuetrzi]

1.0b1 (2011-04-17)
  • Initial release.

System Message: WARNING/2 (<string>, line 86)

Bullet list ends without a blank line; unexpected unindent.

[davisagli]

Subscribe to package updates

Last updated Dec 6th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.