Megaphone plugin to look up elected officials based on address, via the Cicero API
Project description
Introduction
Azavea’s Cicero API can be used to look up the elected officials for a given address. collective.megaphonecicerolookup integrates this functionality with the Megaphone online advocacy tool, so that recipients of Megaphone letters and petitions can be found via a Cicero lookup based on the address entered by the user.
Installation
collective.megaphonecicerolookup has been tested with Plone 4.
Adding to buildout
collective.megaphonecicerolookup has several dependencies. These should get pulled in automatically if you add the collective.megaphonecicerolookup egg to your buildout. _However_, you need to make sure that you get versions of the dependencies that are compatible with your version of Plone. To do so, you may extend the following known good set of version pins:
[buildout] extends = http://good-py.appspot.com/release/collective.megaphone/2.1?plone=4.0.1 [instance] ... eggs = ... collective.megaphonecicerolookup
Of course, you may need to adjust the specified Plone version, or create a derivative set of version pins if the ones in this set conflict with those recommended for some other add-on.
Activating the add-on
After running buildout and starting your Zope instance, install collective.megaphonecicerolookup via the Add-ons control panel in Plone Site Setup.
Now go to the Configuration registry control panel and configure your Cicero API username and password.
Usage
Add a new Megaphone Action. Select the ‘letter’ type and continue through the wizard. (Megaphone petitions do not have specific recipients.)
When you reach the Recipients step of the wizard, click the Add Recipient button.
If collective.megaphonecicerolookup is correctly installed, you can now choose to add a recipient of the Cicero lookup: address to official type.
Configure the lookup by specifying the label that will be shown to the user sending a letter and the type of official you want to look up.
You may optionally specify a set of states for which lookups will be performed. If you do so and the user chooses a different state, their letter will be recorded but without a specific recipient. If you leave this option blank, lookups will always be attempted.
Changelog
1.0.1 (2011-02-15)
Fix handling of WebFaults from Cicero. [davisagli]
1.0 (2011-01-11)
Log a warning instead of raising an exception if the form submission is missing required fields (street, city, state, zip). [davisagli]
1.0b2 (2010-10-18)
Don’t break Megaphones without a Cicero lookup source if they are missing fields required by the Cicero lookup source. [davisagli]
1.0b1 (2010-10-14)
Initial release [davisagli]
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 collective.megaphonecicerolookup-1.0.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f23f3720db1522e88a9ec07f5f4226c61ed31693268c343c84f01d6562c56b |
|
MD5 | 85afbf890e11dd0a4cd7e5281bcda259 |
|
BLAKE2b-256 | 44ec343744a51aa11f7a521bba1febfaa5104a4fe0502b57c8753d953b7a0ea4 |