This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Overview

A Plone Portlet which does an adapter lookup to fetch the portal type to use in the query for recently changed portlets.

Rationale

This is scratching an itch of a customer, which wants to display only recent “news” on a news page etc. Instead of hard-coding the portal type, we do a adapter lookup.

Usage

Users then can register adapters like:

<adapter
    for=".interfaces.INewsArea
         zope.publisher.interfaces.browser.IBrowserRequest
         zope.publisher.interfaces.browser.IBrowserView
         "
    provides="inquant.portlet.contextualrecentitems.interfaces.ITypeNameProvider"
    factory=".adapters.FeedItemTypeProvider"
    />

<five:implements
    class="Products.feedfeeder.content.folder.FeedfeederFolder"
    interface=".interfaces.INewsArea"
    />

And have the actual adapter look like:

class FeedItemTypeProvider(object):
    def __init__(self, context, request, view):
        pass
    type = "FeedFeederItem"

The portlet renderer does a queryMultiAdapter on the context, the request and the view. Thus, it’s possible to have a different portlet for each view of your content. This is useful for search pages registered on the site root:

<adapter
    for="zope.interface.Interface
         zope.publisher.interfaces.browser.IBrowserRequest
         Products.BabpnProducts.browser.search.BabpnBOSearchView"
    provides="inquant.portlet.contextualrecentitems.interfaces.ITypeNameProvider"
    factory=".adapters.BizOpTypeProvider"
    />

class BizOpTypeProvider(object):
    def __init__(self, context, request, view):
        pass
    type = "BusinessOpportunity"

That way, the recent changes portlet only shows items which match your search page.

Of course, if no adapter is found, the portlet falls back to its normal behavior like the standard plone recently changed portlet.

Release History

Release History

0.2.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2dev-r58889

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inquant.portlet.contextualrecentitems-0.2.5-py2.4.egg (24.4 kB) Copy SHA256 Checksum SHA256 2.4 Egg Feb 18, 2008
inquant.portlet.contextualrecentitems-0.2.5.tar.gz (14.1 kB) Copy SHA256 Checksum SHA256 Source Feb 18, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting