Skip to main content

RSS Listing

RSS Listing is a content type, which displays an RSS feed in the same way as the default RSS Portlet does.

Public resources

RSS Listing installs a public resource ++resource++jyu.rsslisting.images/rsslisting_icon.gif for its content type icon:

>>> from Products.Five.testbrowser import Browser
>>> browser = Browser(); portal_url = self.portal.absolute_url()
>>> browser.open(portal_url + "/++resource++jyu.rsslisting.images/rsslisting_icon.gif")

and ++resource++jyu.rsslisting.styles/rsslisting.css for its stylesheet:

>>> browser.open(portal_url + "/++resource++jyu.rsslisting.styles/rsslisting.css")

Creating content

By default, adding RSS Listing is not allowed globally. Let’s allow it to make it easier to test:

>>> from Products.CMFCore.utils import getToolByName
>>> portal_types = getToolByName(self.portal, "portal_types")
>>> rss_listing = portal_types.get("RSS Listing")
>>> rss_listing
<DynamicViewTypeInformation at /plone/portal_types/RSS Listing>

>>> rss_listing.global_allow = True
>>> rss_listing.global_allow
True

Now RSS Listing is addable by any contributor. Let’s

  1. open the front page:

    >>> browser.open(portal_url)
  2. enter the log in details:

    >>> browser.getControl(name='__ac_name').value = 'contributor'
    >>> browser.getControl(name='__ac_password').value = 'secret'
  3. and log in:

    >>> browser.getControl(name='submit').click()
    >>> "You are now logged in" in browser.contents
    True

Now we should be able to see RSS Listing in the add item menu:

>>> browser.getLink(id='rss-listing').url.endswith("createObject?type_name=RSS+Listing")
True

To add a single RSS Listing

  1. click it from the add item menu:

    >>> browser.getLink(id='rss-listing').click()
  2. enter RSS information:

    >>> browser.getControl(name='title').value = "Slashdot"
    >>> browser.getControl(name='description').value = "Yesterday's news!"
    >>> browser.getControl(name='url').value = "http://rss.slashdot.org/Slashdot/slashdot"
    >>> browser.getControl(name='count').value = "10"
    >>> browser.getControl(name='timeout').value = "100"
  3. and submit the form:

    >>> browser.getControl(name='form_submit').click()

Now a new RSS Listing has been created:

>>> 'slashdot' in self.portal.objectIds()
True

Publishing content

By default, RSS Listing can be published by any reviewer. Let’s

  1. log out:

    >>> browser.getLink('Log out').click()
  2. open the front page:

    >>> browser.open(portal_url)
  3. enter the log in details:

    >>> browser.getControl(name='__ac_name').value = 'reviewer'
    >>> browser.getControl(name='__ac_password').value = 'secret'
  4. and log in:

    >>> browser.getControl(name='submit').click()
    >>> "You are now logged in" in browser.contents
    True

To publish the RSS Listing

  1. navigate to the content:

    >>> browser.open(portal_url + "/slashdot")
  2. and publish it:

    >>> browser.getLink('Publish').click()

Viewing content

Published RSS Listing should be visible to everybody. Let’s

  1. log out:

    >>> browser.getLink('Log out').click()
  2. navigate to the content:

    >>> browser.open("%(portal_url)s/slashdot" % vars())

RSS Listing is being rendered:

>>> "Yesterday's news!" in browser.contents
True

With required 10 feed items:

>>> browser.contents.count("<a href=\"http://rss.slashdot.org/")
10

Metadata

Release files for jyu.rsslisting 1.0.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 jyu.rsslisting 1.0.1
File Size Uploaded Provenance
jyu.rsslisting-1.0.1.tar.gz 15.5 kB Without provenance Details

Release files / jyu.rsslisting-1.0.1.tar.gz

Download URL jyu.rsslisting-1.0.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a3185c81c490c0f6b7d8c1c301c125fa3a17d08bdd292279842af82166f72fb8
BLAKE2b-256 checksum
How to use checksums
d0cf0e0fa708633ea0bce7bb206b66e5d16277615dbfb7905763c4159449fd8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jyu.rsslisting 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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