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 raptus.article.randomimage

How to install raptus.article.randomimage

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install raptus.article.randomimage
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.0b5 Available View build log
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
Windows (64-bit)
2.0b5 Available View build log
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
Mac OS X (10.5+)
2.0b5 Available View build log
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
Linux (32-bit)
2.0b5 Available View build log
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
Linux (64-bit)
2.0b5 Available View build log
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
 
Author
License
GPL
Lastest release
version 2.0b5 on Jan 5th, 2011

Introduction

Provides components which display a random image contained in the article.

The following features for raptus.article are provided by this package:

Components
  • Random image (Random image displayed over the whole width)
  • Random image left (Random image displayed on the left side)
  • Random image right (Random image displayed on the right side)
  • Random image teaser (Random image displayed over the whole width and displayed above the columns)
Dependencies
  • raptus.article.images

Installation

To install raptus.article.randomimage into your Plone instance, locate the file buildout.cfg in the root of your Plone instance directory on the file system, and open it in a text editor.

Add the actual raptus.article.randomimage add-on to the "eggs" section of buildout.cfg. Look for the section that looks like this:

eggs =
    Plone

This section might have additional lines if you have other add-ons already installed. Just add the raptus.article.randomimage on a separate line, like this:

eggs =
    Plone
    raptus.article.randomimage

Note that you have to run buildout like this:

$ bin/buildout

Then go to the "Add-ons" control panel in Plone as an administrator, and install or reinstall the "raptus.article.default" product.

Note that if you do not use the raptus.article.default package you have to include the zcml of raptus.article.randomimage either by adding it to the zcml list in your buildout or by including it in another package's configure.zcml.

Usage

Components

Navigate to the "Components" tab of your article and select one of the random image components and press "save and view". Note that at least one image has to be contained in the article in which this component is active.

Developer Manual

Note: You find a developer manual for raptus.article at raptus.article.core. Please have look there if you need more information.

Code overview

Components
plone.abovecontentbody
  • raptus.article.randomimage.full
  • raptus.article.randomimage.right
  • raptus.article.randomimage.left
plone.portaltop
  • raptus.article.randomimage.teaser
Interfaces
file: interfaces.py
  • IRandomImage (Provider for a random image)
    • getImage - method (Returns a random image (catalog brain))

Changelog

2.0b5 (2010-11-10)
  • Added French translations
2.0b4 (2010-10-24)
  • Set zip_safe flag to False
2.0b3 (2010-10-21)
  • Updated readme and manual
2.0b2 (2010-10-20)
  • First public release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:6

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.