Skip to main content

News extension for the ringo framework

Project description

# News extension for the Ringo webframework This extension can be used to extend a Ringo based web application with a newsboard. News can be displayed in the application. News can be administrated either throuh the webinterface or a command line client.

## Installation For details on how to install this extension in your application please refer to [The ringo documentation for extensions](http://ringo.readthedocs.org/en/latest/development/extension.html)

## CLI The extension provides some additional CLI options to manage new directly on the server:

  • ringo-admin news add <jsonfile> (The add command can be used to either add new or update existing news items.)

  • ringo-admin news delete <id>

JSON:

`json {"subject": "Foo", "date": "YYYY-MM-DD", "text": "Foo text the body of the message"} `

If the json contains an id then the command will try to load the item with the given id and update the news in the database. In all other cases (including giving no id at all) will create a new news item with a new id will be generated.

On default the added news will be added to all users in the system. Later enhancements might be giving a list of usernames, filtering by groups and roles etc.

As this command basically utilize the import of ringo like the ringo-admin db loadata command it is capable of doing almost the same things (e.g defining relation)

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ringo_news-1.0.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file ringo_news-1.0.tar.gz.

File metadata

  • Download URL: ringo_news-1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ringo_news-1.0.tar.gz
Algorithm Hash digest
SHA256 884589d2876c69607647135c9cd0a2cb8ef55e2e61362e668c4dce186a0bc55d
MD5 4bbef2c25da03d2c021d2c92b92d8937
BLAKE2b-256 f5e18939697c77ccec3bd691bf05ef96211cb48e16f2aad30a0a8afa884ce626

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page