Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)
For documententation see ``ILayoutCustomization``.
When subclassing, inherit and run the testcase
``ftw.pdfgenerator.tests.test_customization.TestLayoutCustomization``.

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/example.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.customization import LayoutCustomization
from ftw.pdfgenerator.layout.customizable import CustomizableLayout
import os.path
 
 
class ExampleCustomization(LayoutCustomization):
    template_directories = [templates_bar]
    template_name = 'example_customization.tex'
 

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_customization.py   ftw.pdfgenerator(Download)
# pylint: disable=W0212, W0201
# W0212: Access to a protected member of a client class
# W0201: Attribute defined outside __init__
 
from ftw.pdfgenerator.customization import LayoutCustomization

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_customizable_layout.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.customization import LayoutCustomization
from ftw.pdfgenerator.interfaces import ICustomizableLayout
from ftw.pdfgenerator.interfaces import ILayoutCustomization
from ftw.pdfgenerator.layout.customizable import CustomizableLayout
from ftw.pdfgenerator.testing import PDFGENERATOR_ZCML_LAYER
        class Customization(LayoutCustomization):
            template_directories = [templates_bar]
            template_name = 'example_customization.tex'
 
        self.mock_adapter(Customization, ILayoutCustomization,
        class Customization(LayoutCustomization):
            template_directories = [templates_bar]
            template_name = None
 
            def before_render_hook(self):