Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Life, the Universe, and Everything

Transmogrifier pipeline sections to import WordPress polls created with the WP-Polls plugin into Plone. This package depends on collective.polls.

Mostly Harmless

http://img.shields.io/pypi/v/transmogrify.wppolls.svg https://img.shields.io/travis/collective/transmogrify.wppolls/master.svg https://img.shields.io/coveralls/collective/transmogrify.wppolls/master.svg

Got an idea? Found a bug? Let us know by opening a support ticket.

Don’t Panic

Installation

To enable this package in a buildout-based installation:

  1. Edit your buildout.cfg and add add the following to it:

    [buildout]
    ...
    eggs =
        transmogrify.wppolls

After updating the configuration you need to run ‘’bin/buildout’’, which will take care of updating your system.

Usage

  1. Export as CSV the following tables from your WordPress site usign the phpMyAdmin interface:

  • wp_pollsa

  • wp_pollsq

Use the following options for all:

  • Fields terminated by ‘\t’

  • Remove CRLF characters within fields

  • Put field names in the first row

https://raw.github.com/collective/transmogrify.wppolls/master/export.png

Export from phpMyAdmin as CSV.

  1. Edit the ‘wppolls.cfg’ file and set the options: ‘source’, ‘path’, ‘locale’ and ‘transitions’

  2. On the ZMI, got to ‘portal_setup/Import’ and select the profile ‘transmogrify.wppolls’

  3. Click on ‘Import all steps’ and wait for the process to finish

Sections

transmogrify.wppolls.csvsource

This source section generates a list of polls and its results; it doesn’t takes care of any information about the voters.

[csvsource]
blueprint = transmogrify.wppolls.csvsource
source = /home/customer/site/data/
path = /polls
locale = pt-br
transitions = open
source:

full path to the WordPress CSV export files.

path:

path, relative to the site root, of the folder where polls should be created; defaults to ‘/polls’.

locale:

if you want the id normalizer to be aware of locale; defaults to ‘en’.

transitions:

a sequence of workflow transition names that will be executed. By default, polls are opened and then closed (‘open, close’).

transmogrify.wppolls.voteupdater

This section is needed to update the results of a poll as the schema updater section doesn’t know how to deal with it. It must be used after the constructor.

[voteupdater]
blueprint = transmogrify.wppolls.voteupdater

Share and Enjoy

This package would not have been possible without the contribution of the following people:

  • Héctor Velarde

Development sponsored by Simples Consultoria.

Changelog

There’s a frood who really knows where his towel is.

1.0a1 (2015-08-05)

  • Initial release.

Metadata

Release files for transmogrify.wppolls 1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for transmogrify.wppolls 1.0a1
File Size Uploaded
transmogrify.wppolls-1.0a1.tar.gz 17.1 kB Details

Release files / transmogrify.wppolls-1.0a1.tar.gz

Download URL transmogrify.wppolls-1.0a1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04ac015e1dc12193c26fa3193e204856cb536fb069a04c04c83d0339a569e76b
BLAKE2b-256 checksum
How to use checksums
8ecaa5471f556d8c87a3141f66b042866f4e64e0d85e1e97a572e9730ae7e94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0a1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page