This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


collective.calameo provides a simple content type based on Archetypes which integrates the Calameo PDF viewer in Plone site.

For more informations about Calameo visit -


Plone 3.0 or newer is required. The package has been tested with Plone 3.3


To get started you will simply need to add the package to your “eggs” and “zcml” sections, run buildout, restart your Plone instance and install the “Collective Calameo Pdf” package using the quick-installer or via the “Add-on Products” section in “Site Setup”.

You can find an example buildout in code repository:

The Calameo PDF content type

In this section we are tesing the Calameo PDF content type by performing basic operations like adding, updadating and deleting Calameo PDF content items.

>>> from Products.Five.testbrowser import Browser
>>> browser = Browser()
>>> portal_url = self.portal.absolute_url()
>>> self.portal.error_log._ignored_exceptions = ()
>>> from Products.PloneTestCase.setup import portal_owner, default_password

We have the login portlet, so let’s use that.

>>> browser.getControl(name='__ac_name').value = portal_owner
>>> browser.getControl(name='__ac_password').value = default_password
>>> browser.getControl(name='submit').click()

Adding a new Calameo PDF content item

We use the ‘Add new’ menu to add a new content item.

>>> browser.getLink('Add new').click()

Then we select the type of item we want to add. In this case we select ‘Calameo PDF’ and click the ‘Add’ button to get to the add form.

>>> browser.getControl('Calameo PDF').click()
>>> browser.getControl(name='form.button.Add').click()
>>> 'Calameo PDF' in browser.contents

Now we fill the form and submit it.

>>> browser.getControl(name='title').value = 'Calameo PDF Sample'
>>> browser.getControl(name='calameoid').value = '000045549bbd850da2f2e'
>>> browser.getControl(name='width').value = '500'
>>> browser.getControl(name='height').value = '300'
>>> browser.getControl('Save').click()
>>> 'Changes saved' in browser.contents
In the default view we have the calameo flash with the right parameters
>>> print browser.contents
    <div id="calameo-wrapper">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                width="500" height="300">
            <param name="movie"
                value="" />
            <param name="quality" value="high" />
            <param name="allowScriptAccess" value="always" />
            <param name="allowFullScreen" value="true" />
            <embed quality="high"
                height="300" width="500"></embed>

And we are done! We added a new ‘Calameo PDF’ content item to the portal.

Calameo macro

We can also use directly collective.calameo macro in our page templates


<div tal:define="calameo_id string:000045549bbd850da2f2e;
                 calameo_width string:520;
                 calameo_height string:380;">
  <metal:calameo use-macro="context/@@calameo_macros/calameo_flash" />


Giorgio Borelli, Author


0.1 (2009-09-02)

  • Initial release
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.calameo-0.1.tar.gz (18.4 kB) Copy SHA256 Checksum SHA256 Source Sep 2, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting