Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/t/statusboard-HEAD/statusboard/core/tasks.py   statusboard(Download)
def plugin_ticks(frequency):
    log = plugin_ticks.get_logger()
    for name, plugin in plugin_registry.iteritems():
        if hasattr(plugin['instance'], 'tick_%s'%frequency):
            log.debug('Queueing tick_%s task for plugin %s', frequency, name)

src/s/t/statusboard-HEAD/statusboard/core/views.py   statusboard(Download)
    css_files = set()
    js_files = set()
    for name, plugin in sorted(plugin_registry.iteritems()):
        for css in plugin['instance'].css():
            css_files.add(LinkData(name=plugin['name'], path=plugin['namespace'] + '/' + css))

src/s/t/statusboard-HEAD/statusboard/plugins/urls.py   statusboard(Download)
 
urlpatterns = patterns('')
for name, data in plugin_registry.iteritems():
    if data['urls']:
        urlpatterns.append(url(name+'/', include(data['urls'])))