Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.portlet.geo

How to install collective.portlet.geo

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.portlet.geo
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
1.0.1
1.0.2Never BuiltWhy not?
1.0.1 Available View build log
Linux (32-bit)
1.0.1
1.0.2Never BuiltWhy not?
1.0.1 Available View build log
Linux (64-bit)
1.0.2 Available View build log
1.0.1 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 1.0.2 on Jan 9th, 2014

The geoportlet works as a wrapper around the exiting portlet types.

Usage

When you select the "Geoportlet" type under "Manage portlets", the add form lets you select from a database of countries and languages, and choose a portlet type. In the next screen, you'll create the chosen portlet (if it requires user input).

The geoportlet toggles its availability based on IP address lookup and/or HTTP language accept strings. You can use it to segment the audience for a portlet into particular countries or language groups, e.g. China and Mandarin.

It uses the geolocation database provided by http://Software77.net.

Compatibility: Plone 4+.

HTML

Each geoportlet wraps the contained portlet assignment in an HTML <div> element with CSS-classes corresponding to the selected countries and/or languages. The format is geoportlet-<country> and geoportlet-<language> where the country is provided as the three-letter ISO 3166-1 alpha-3 country code and the language is provided as the two-letter ISO 639-1 language code:

<div class="geoportlet-dnk geoportlet-da">
   <div class="portlet ...">
      ...
   </div>
</div>

Author

Malthe Borch <mborch@gmail.com>

Changelog

1.0.2 (2012-06-14)

  • When first creating a geoportlet, use the contained assignment's title as the portlet title. This ensures that we get a suitable name from the INameChooser adapter.
  • Fixed traversal issue that prevented the editing of portlets with a "null" edit-form.
  • Fixed security checking issue.

1.0.1 (2012-06-06)

  • Fixed a compatibility issue with Python 2.6.
  • Fixed an issue where the geolocation database location would not get a default value.

1.0 (2012-06-06)

  • Initial public release.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.