Ejemplo n.º 1
0
            'rsr:static': [],
            'rsr:static2': ['rsr:static'],
        }
    def rsr_static(self):
        print 'rsr:static'

    def rsr_static2(self):
        """
        Runs an extension target.
        """
        print 'rsr:static2'
        yield 'rsr:addon'


lib.namespaces.update((Core.namespace,))
Target.register(Core)


class Addon(object):

    """
    Inserts a dependency for an existing target.
    """

    namespace = 'rsr', 'http://name.wtwta.nl/#/rsr'

    handlers = [
            'rsr:addon'
        ]
    depends = {
            'rsr:addon': ['rsr:static'],