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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
Raised when trying to run actions (such as add_file) on a closed
builder.

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/builder.py   ftw.pdfgenerator(Download)
from StringIO import StringIO
from ftw.pdfgenerator.exceptions import BuildTerminated, PDFBuildFailed
from ftw.pdfgenerator.interfaces import IBuilder, IConfig
from zipfile import ZipFile
from zope.component import getUtility
    def add_file(self, filename, data):
        if self._terminated:
            raise BuildTerminated('The build is already terminated.')
 
        path = os.path.join(self.build_directory, filename)
    def build(self, latex):
        if self._terminated:
            raise BuildTerminated('The build is already terminated.')
 
        try:
    def build_zip(self, latex):
        if self._terminated:
            raise BuildTerminated('The build is already terminated.')
 
        try:

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_builder.py   ftw.pdfgenerator(Download)
 
from ftw.pdfgenerator.builder import Builder
from ftw.pdfgenerator.exceptions import BuildTerminated, PDFBuildFailed
from ftw.pdfgenerator.interfaces import IBuilder, IBuilderFactory
from ftw.pdfgenerator.testing import PREDEFINED_BUILD_DIRECTORY_LAYER