Skip to main content

Transmogrifier pipeline sections to import WordPress polls into Plone.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
transmogrify.wppolls-1.0a1.tar.gz (17.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page