Ejemplo n.º 1
0
def includeme(config):
    """Registers a new modul for ringo.

    :config: Dictionary with configuration of the new modul

    """
    modul = register_modul(config, modul_config)
    Log._modul_id = modul.get_value("id")
    translators.append(TranslationStringFactory('ringo_log'))
    config.add_translation_dirs('ringo_log:locale/')
Ejemplo n.º 2
0
def includeme(config):
    """Registers a new modul for ringo.

    :config: Dictionary with configuration of the new modul

    """
    modul = register_modul(config, modul_config)
    add_renderers({"comment": CommentRenderer})
    Comment._modul_id = modul.get_value("id")
    translators.append(TranslationStringFactory('ringo_comment'))
    config.add_translation_dirs('ringo_comment:locale/')
Ejemplo n.º 3
0
def includeme(config):
    """Registers a new modul for ringo.

    :config: Dictionary with configuration of the new modul

    """
    modul = register_modul(config, modul_config)
    if modul:
        Printtemplate._modul_id = modul.get_value("id")
        translators.append(TranslationStringFactory('ringo_printtemplate'))
        config.add_translation_dirs('ringo_printtemplate:locale/')
        config.add_route('printtemplates-print', '/printtemplates/print/{id}')
        config.include('ringo_printtemplate.odfconv.setup')
        config.scan()
Ejemplo n.º 4
0
def includeme(config):
    """Registers a new modul for ringo.

    :config: Dictionary with configuration of the new modul

    """
    modul = register_modul(config, modul_config)
    News._modul_id = modul.get_value("id")
    translators.append(TranslationStringFactory('ringo_news'))
    config.add_translation_dirs('ringo_news:locale/')

    config.add_route(get_action_routename(News, 'markasread', prefix="rest"),
                     'rest/news/{id}/markasread',
                     factory=get_resource_factory(News))
    config.scan()