Skip to main content

Introduction

This package is intended to be a quick (and slightly dirty) fix for the problem that the latest release of collective.twitterportlet (version 0.10) does not work with the Twitter API v1.1.

By installing this package in your Plone site, you get an additional configlet. In this configlet you can (or rather: must) configure your Twitter tokens. This package then overrides the renderer of the Twitter portlet to use these tokens for the Twitter API calls.

Installation

To enable this package in a buildout based instance, add the following to your buildout configuration:

[instance]
...
eggs =
    ...
    edition1.twitterportletfix

After you have rerun the bin/buildout and restarted your instance, this product should be available for installation.

  1. Go to the “Site Setup” page in your Plone site.

  2. Click on the “Add-ons” link.

  3. Install the “Twitter portlet API v1.1 fix” product.

Usage

Once installed, you need to configure the keys.

First you’ll have to create a Twitter application.

  1. Go to https://dev.twitter.com/ and log in with your Twitter account.

  2. Go to the My applications page.

  3. Create a new application.

  4. Immediately create your access token (so your application can access your account).

  5. Go to the “settings” tab and keep this window open because we’ll be copying information to your Plone site in a minute.

Now go back to your Plone site.

  1. Go to the “Site Setup” page in your Plone site.

  2. Click on the “Twitter settings” link.

  3. Copy all the required values from the Twitter application page.

And you are done. That is, assuming you already had a Twitter portlet in your site, it should now work again.

Caveats

In the Twitter portlet from collective.twitterportlet, you can configure from which user the tweets should be shown. Although this username is still used for the link to the Twitter profile page, it is not used to determine who’s tweets to show. This is determined solely by the access token (and secret) that you configured.

Furthermore, you can only configure one account with this fix. So if you have more than one Twitter portlets and want to show tweets from different accounts, you are out of luck.

Disclaimer

This package has only been tested on Plone 4.1.6 (Python 2.6) and Plone 4.3 (Python 2.7) since those were the only version we needed this fix for. However, it probably also works on other versions of Plone.

Contributors

  • Mark van Lent (markvl) Edition1

Changelog

1.0 (2013-06-13)

  • Package created using templer. [markvl]

Release files for edition1.twitterportletfix 1.0

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

Source distribution (sdist)

Source distribution for edition1.twitterportletfix 1.0
File Size Uploaded
edition1.twitterportletfix-1.0.zip 37.1 kB Details

Release files / edition1.twitterportletfix-1.0.zip

Download URL edition1.twitterportletfix-1.0.zip
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1cfc696331dd2b800f44bdd48e76554ee634fa3255d1f2b341421b838d95823a
BLAKE2b-256 checksum
How to use checksums
2eeee16745ea0252cad3144710425e44a3488e15e2f0ccf2d8d6eafb7708949d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 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