Skip to content

seantis/seantis.dir.events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seantis Events

Directory of upcoming Events.

seantis.dir.events builds on seantis.dir.base, adding information about upcoming events.

seantis.dir.base allows to put dexterity objects into 1-4 categories, showing those categories in a browsable and searchable catalog. To learn more about seantis.dir.base visit https://github.com/seantis/seantis.dir.base.

Dependencies

seantis.dir.events relies on Plone 4.3+ with dexterity and seantis.dir.base.

python-magic is used to identify the type of uploaded files which requires the 'libmagic' library.

Installation

  1. Use Plone 4.3 or newer
extends =
    http://dist.plone.org/release/4.3/versions.cfg
  1. Add the module to your instance eggs
[instance]
eggs +=
    seantis.dir.events
  1. Ensure that the i18n files are compiled by adding
[instance]
...
environment-vars =
    ...
    zope_i18n_compile_mo_files true
  1. Setup up autoremove and/or import clock servers for one instance (or set up a cron job getting the corresponding views described below).
[instance]
...
environment-vars =
    ...
    seantis_events_cleanup true
    seantis_events_import true
  1. Install dexterity and seantis.dir.events using portal_quickinstaller

Special Views

JSON export

  • JSON export of all events: ?type=json
  • Export a limited number of events: ?type=json&max=10
  • Export all events with a given category: ?type=json&filter=1&cat1=text&cat2=text
  • Export all events with a given keyword: ?type=json&search=1&searchtext=text
  • Export events with RRULES: ?type=json&compact=1
  • Include imported events: ?type=json&imported=1

Index

  • View event index: /eventindex
  • Rebuild Z-catalog: /eventindex?rebuild
  • Reindex event indices: /eventindex?reindex

Cleanup

  • Archive past events, remove stale previews and archived events: /cleanup?run=1&force=1

Import

  • Import events: /fetch?run=1
  • Reimport event: /fetch?run=1&reimport=1
  • Import only events with a given ID: /fetch?run=1&source-ids=event1,event2
  • Don't process source in random order: /fetch?run=1&no_shuffle=1

Build Status

Build Status

Coverage

Project Coverage

Latests PyPI Release

Latest PyPI Release

License

seantis.dir.events is released under GPL v2