Agilo Extension Points

IAgiloConfigChangeListener

Components can be notified as soon as the configuration is reloaded so that they can act upon that. One example for that is the AgiloPolicy which needs to add new actions to trac's policy system when a new type was added.

Usage:

from agilo.utils.config import IAgiloConfigChangeListener
...

class Foo(Component):
    implements(IAgiloConfigChangeListener)
    
    def config_reloaded(self):
        pass

IAgiloWidgetGenerator

Every widget generator can generate widgets for one or more charts. A widget generates HTML code to show its chart. Every widget instance contains all data necessary to show the chart.

Usage:

from agilo.charts.api import IAgiloWidgetGenerator
...

class Foo(Component):
    implements(IAgiloWidgetGenerator)
    
    def can_generate_widget(name):
        pass
    
    def generate_widget(name, sprint_name, width, height):
        # API for this method is not final - I'll see what is suitable after porting all widgets
        pass
Last modified 9 years ago Last modified on 01/12/2009 12:36:14 PM

1.3.15 © 2008-2016 Agilo Software all rights reserved (this page was served in: 0.15179 sec.)