Parent: [df942c] (diff)

Download this file

extending.rst    63 lines (48 with data), 2.8 kB

Extending Allura with Entry Points

There are many extension points to extending Allura. They all make themselves known to Allura via python entry points defined in setup.py. Many are then available immediately. Others, such as authentication providers or themes, need to be specified in your .ini file, since you may only have one enabled at a time.

The available extension points for Allura are:

A listing of available 3rd-party extensions is at https://sourceforge.net/p/allura/wiki/Extensions/

To disable any Allura entry point, simply add an entry in your .ini config file with names and values corresponding to entry points defined in any setup.py file. For example if you have ForgeImporter set up, but want to disable the google code importers:

disable_entry_points.allura.project_importers = google-code
disable_entry_points.allura.importers = google-code-tracker, google-code-repo

Other entry points are used to provide paster commands and easy_widget configuration, which are not part of Allura but are used by Allura.

Event Handlers

Another way to extend Allura is set up event handlers to respond to Allura events. There is documentation and examples at :ref:`events`.

The events that allura publishes are:

  • project_created
  • project_updated
  • repo_cloned
  • repo_refreshed
  • repo_clone_task_failed