예제 #1
0
def includeme(config):
    config.scan("kotti_tinymce")
    config.add_translation_dirs('kotti_tinymce:locale/')
    try:
        # kotti >= 0.8
        from js.deform import resource_mapping
        edit_needed = resource_mapping['tinymce'].append(kotti_tinymce)
    except ImportError:  # pragma: no cover
        # kotti < 0.8
        from kotti.static import edit_needed
        edit_needed.add(kotti_tinymce)
예제 #2
0
def includeme(config):
    config.scan("kotti_tinymce")
    config.add_translation_dirs('kotti_tinymce:locale/')
    try:
        # kotti >= 0.8
        from js.deform import resource_mapping
        edit_needed = resource_mapping['tinymce'].append(kotti_tinymce)
    except ImportError:  # pragma: no cover
        # kotti < 0.8
        from kotti.static import edit_needed
        edit_needed.add(kotti_tinymce)
예제 #3
0
def includeme(config):
    config.scan("kotti_wysihtml5")
    config.scan("kotti_tinymce")
    try:
        # kotti >= 0.8
        from js.deform import resource_mapping
        edit_needed = resource_mapping['tinymce'] = \
            [kotti_wysihtml5, ]
    except ImportError:  # pragma: no cover
        # kotti < 0.8
        from kotti.static import edit_needed
        edit_needed.add(kotti_wysihtml5)
예제 #4
0
def includeme(config):
    edit_needed.add(kotti_tinymce)
    config.scan("kotti_tinymce")
    config.add_translation_dirs('kotti_tinymce:locale/')
예제 #5
0
def includeme(config):

    config.add_static_view("static-kotti_website", "kotti_website:static")

    edit_needed.add(css)
    view_needed.add(css)
예제 #6
0
def includeme(config):
    edit_needed.add(kotti_tinymce)
    config.scan("kotti_tinymce")
    config.add_translation_dirs('kotti_tinymce:locale/')
    config.add_static_view('kotti_tinycme_static', 'kotti_tinymce:static')