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

All Samples(12)  |  Call(5)  |  Derive(3)  |  Import(4)
A recursive LaTeX view, which also renders the content of the child
objects.

src/f/t/ftw.meeting-1.4.9/ftw/meeting/latex/views.py   ftw.meeting(Download)
from ftw.pdfgenerator.interfaces import ILaTeXLayout
from ftw.pdfgenerator.view import MakoLaTeXView
from ftw.pdfgenerator.view import RecursiveLaTeXView
from zope.component import adapts
from zope.i18n import translate
class MeetingView(RecursiveLaTeXView):
    adapts(IMeeting, Interface, ILaTeXLayout)
 
    template_directories = ['templates']
    template_name = 'meeting.tex'

src/f/t/ftw.book-2.2.20/ftw/book/latex/chapter.py   ftw.book(Download)
from ftw.book.helpers import BookHelper
from ftw.book.interfaces import IChapter
from ftw.book.latex import utils
from ftw.pdfgenerator.view import RecursiveLaTeXView
from zope.component import adapts
from zope.interface import Interface
 
 
class ChapterLaTeXView(RecursiveLaTeXView):

src/f/t/ftw.book-2.2.20/ftw/book/latex/book.py   ftw.book(Download)
from ftw.book.interfaces import IBook
from ftw.pdfgenerator.view import RecursiveLaTeXView
from zope.component import adapts
from zope.interface import Interface
 
 
class BookLaTeXView(RecursiveLaTeXView):

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_view.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.interfaces import ILaTeXView, IRecursiveLaTeXView
from ftw.pdfgenerator.layout.baselayout import BaseLayout
from ftw.pdfgenerator.view import MakoLaTeXView, RecursiveLaTeXView
from ftw.testing import MockTestCase
from zope.interface import Interface
        layout = object()
 
        obj = RecursiveLaTeXView(context, request, layout)
        self.assertEquals(obj.context, context)
        self.assertEquals(obj.request, request)
        self.replay()
 
        view = RecursiveLaTeXView(context, request, layout)
        self.assertEqual(view.render_children(),
                         'object one latex\nobject two latex')
        self.replay()
 
        view = RecursiveLaTeXView(context, request, layout)
        self.assertEqual(
            view.render_children(),
    def test_get_render_arguments_contains_latex_content(self):
        context = request = layout = object()
        view = self.mocker.patch(RecursiveLaTeXView(
                context, request, layout))