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

All Samples(16)  |  Call(11)  |  Derive(2)  |  Import(3)

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/browser/standalone.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.browser.views import ExportPDFView
from ftw.pdfgenerator.interfaces import IBuilderFactory
from ftw.pdfgenerator.layout.makolayout import MakoLayoutBase
from ftw.pdfgenerator.view import MakoLaTeXView
from zope.component import getUtility
 
 
class BaseStandalonePDFView(ExportPDFView, MakoLayoutBase, MakoLaTeXView):

src/f/t/ftw.book-2.2.20/ftw/book/browser/export_pdf.py   ftw.book(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from ftw.pdfgenerator.browser.views import ExportPDFView
from ftw.pdfgenerator.utils import provide_request_layer
from ftw.book.interfaces import IAddRemarkLayer
 
 
class ExportBookPDFView(ExportPDFView):

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_export.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator import interfaces
from ftw.pdfgenerator.browser.views import ExportPDFView
from ftw.pdfgenerator.interfaces import DEBUG_MODE_SESSION_KEY
from ftw.pdfgenerator.testing import PDFGENERATOR_ZCML_LAYER
from ftw.testing import MockTestCase
    def test_get_build_arguments(self):
        context = object()
        request = object()
        aspdf = ExportPDFView(context, request)
        self.assertEqual(aspdf.get_build_arguments(), {'request': request})
        self.replay()
 
        aspdf = ExportPDFView(context, request)
        self.assertEqual(aspdf.export(output='pdf'), request)
 
        self.replay()
 
        aspdf = ExportPDFView(context, request)
        self.assertEqual(aspdf.export(output='latex'), request)
 
        self.replay()
 
        aspdf = ExportPDFView(context, request)
        self.assertEqual(aspdf.export(output='zip'), request)