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
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:
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
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
Edit the ‘wppolls.cfg’ file and set the options: ‘source’, ‘path’, ‘locale’ and ‘transitions’
On the ZMI, got to ‘portal_setup/Import’ and select the profile ‘transmogrify.wppolls’
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
Changelog
There’s a frood who really knows where his towel is.
1.0a1 (2015-08-05)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for transmogrify.wppolls-1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ac015e1dc12193c26fa3193e204856cb536fb069a04c04c83d0339a569e76b |
|
MD5 | 427c08a2c6871134d4a91a15176d1236 |
|
BLAKE2b-256 | 8ecaa5471f556d8c87a3141f66b042866f4e64e0d85e1e97a572e9730ae7e94d |