Skip to main content

Introduction

collective.cicero provides access to Azavea’s Cicero API for performing geography-based lookups of political data. It is designed for integration with Plone, but can be used in other contexts as well.

Usage

Access to the API is provided via the call_cicero method:

call_cicero(service_name, method_name, *args, **kw)

service_name is one of the Cicero web services. Currently the only supported option is ‘ElectedOfficialQueryService’.

method_name is one of the SOAP methods supported by the chosen service.

*args and **kw are the additional parameters required by the chosen method. See the Cicero API documentation for details.

Settings

The Cicero credentials (username and password) are looked up via a plone.registry-style IRegistry utility. In Plone, activating the plone.app.registry package followed by collective.cicero will set up a suitable registry with the relevant settings available.

Test Mode

A test mode is supported. In test mode, canned responses will be loaded from disk instead of actually querying Cicero.

Enable test mode by setting the CICERO_TEST environment variable. If this variable is present in the operating system environment, test mode will be used.

For test mode to work, the tests folder must contain a copy of the WSDL for the service being tested, as well as a response file for the method being tested. Responses can be obtained by running in normal mode with suds configured to log at the debug level. A sample response for the GetOfficialsByAddress method of the ElectedOfficialQueryService is included.

Changelog

1.1 (unreleased)

  • Add a control panel for the Cicero settings, and make it validate the credentials when they are saved. [davisagli]

  • Set the socket timeout to something more reasonable. [davisagli]

1.0 (2010-09-17)

  • Initial release

Metadata

Release files for collective.cicero 1.1

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

Source distribution (sdist)

Source distribution for collective.cicero 1.1
File Size Uploaded
collective.cicero-1.1.zip 23.3 kB Details

Release files / collective.cicero-1.1.zip

Download URL collective.cicero-1.1.zip
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
209fb3e93b843cd91dcfff547e4113ad5877228780a3830d7c3f3d2f89e70b5b
BLAKE2b-256 checksum
How to use checksums
b4a175df76a94e1613c3d18bf9e42c73b192580e58af04b93bff20ac49386af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

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