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 collective.atcassandrastorage

How to install collective.atcassandrastorage

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.atcassandrastorage
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
Windows (64-bit)
0.2 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
Linux (32-bit)
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
 
License
GPL
Dependencies
Lastest release
version 0.2 on Jan 5th, 2011

Abstract

An Archetype field storage which uses a cassandra backing store.

Reasoning

For a customer project I'm doing right now I'm using cassandra as a storage backend for Plone FormGen data. Now the need did arise to also have specific fields of AT content types to be stored in cassandra as well.

Design decisions

  • configuration of the cassandra clients done by using plone.app.registry
  • per-field configurable keyspace and column family for fields
  • The UID of the instance object is used as a key in the specified

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

Bullet list ends without a blank line; unexpected unindent.

column family (remember that an insert in cassandra is essentially an update)

  • using pycassa as glue library

Usage

Import the storage and attach it to a field in your AT Schema:

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

Literal block expected; none found.

from collective.atcassandrastorage.storage import CassandraFieldStorage

MySchema = atapi.Schema( ... StringField("afield", storage=CassandraFieldStorage("AKeyspace", "AColumnFamily"), ), ... )

This will store and fetch data for afield from a cassandra database using the keyspace AKeyspace and the column family AColumnFamily.

Configuration

Configuration is done using plone.app.registry. Visit the registry in Plone's control panel and configure the values, they should be pretty much obvious.

Dependencies

plone.app.registry for configuration

pycassa python Cassandra glue library

Changelog

0.2 (2010-05-31)
  • Added tests.

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

Bullet list ends without a blank line; unexpected unindent.

[seletz]

  • Introduce IInstanceKey interface to allow to overwrite instance key

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

Bullet list ends without a blank line; unexpected unindent.

calculation. [seletz]

0.1 (2010-05-29)
  • Initial release

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

Bullet list ends without a blank line; unexpected unindent.

[seletz]

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:3

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.