示例#1
0
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.app.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)

    test.globs['plone'].portal_transforms = MockPortalTransforms()

    provideUtility(PrettyPrinter,
        name=u'collective.transmogrifier.sections.tests.pprinter')
    provideUtility(WebCrawler,
        name=u'transmogrify.htmltesting.webcrawler')
    provideUtility(TreeSerializer,
        name=u'transmogrify.htmltesting.treeserializer')
    provideUtility(TypeRecognitor,
        name=u'transmogrify.htmltesting.typerecognitor')
    provideUtility(TemplateFinder,
        name=u'transmogrify.htmltesting.templatefinder')
    provideUtility(urlnormalizer)
    provideUtility(Relinker,
        name=u'transmogrify.htmltesting.relinker')
    provideUtility(SimpleXPath,
        name=u'transmogrify.htmltesting.simplexpath')
    provideUtility(SafePortalTransforms,
        name=u'transmogrify.htmltesting.safeportaltransforms')
    from backlinkstitle import BacklinksTitle
    provideUtility(BacklinksTitle,
        name=u'transmogrify.htmltesting.backlinkstitle')
    from isindex import IsIndex
    provideUtility(IsIndex,
        name=u'transmogrify.htmltesting.isindex')
    from pathmover import PathMover
    provideUtility(PathMover,
        name=u'transmogrify.htmltesting.pathmover')
    from safeatschemaupdater import SafeATSchemaUpdaterSection
    provideUtility(SafeATSchemaUpdaterSection,
        name=u'transmogrify.htmltesting.safeatschemaupdater')
    from constructor import SafeConstructorSection
    provideUtility(SafeConstructorSection,
        name=u'transmogrify.htmltesting.constructor')
    from makeattachments import MakeAttachments
    provideUtility(MakeAttachments,
        name=u'transmogrify.htmltesting.makeattachments')
    from debugsection import DebugSection
    provideUtility(DebugSection,
        name=u'transmogrify.htmltesting.debugsection')
    from staticcreator import StaticCreatorSection
    provideUtility(StaticCreatorSection,
        name=u'transmogrify.htmltesting.staticcreator')

    provideUtility(HTMLSource,
        name=u'transmogrify.htmltesting.test.htmlsource')
    provideUtility(HTMLBacklinkSource,
        name=u'transmogrify.htmltesting.test.htmlbacklinksource')
def setUp(test):
    baseSetUp(test)
        
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    provideUtility(urlnormalizer)
    provideUtility(Wikipedia, name=u'collective.blueprint.wikipedia')
    provideUtility(PrettyPrinter, name=u'collective.transmogrifier.pprinter')
    provideUtility(Wikipedia, name=u'collective.blueprint.wikipedia')
示例#3
0
def setUp(test):
    baseSetUp(test)
    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    zcml.load_config("meta.zcml", zope.security)
    zcml.load_config("meta.zcml", zope.component)
    zcml.load_config("meta.zcml", collective.transmogrifier)
    zcml.load_config("configure.zcml", collective.transmogrifier)
    zcml.load_config("configure.zcml", gu.transmogrifier)
    zcml.load_config('testing.zcml', gu.transmogrifier.tests)
    zcml.load_config('configure.zcml', org.bccvl.compute)
示例#4
0
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.app.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)

    test.globs['plone'].portal_transforms = MockPortalTransforms()

    provideUtility(PrettyPrinter,
                   name=u'collective.transmogrifier.sections.tests.pprinter')
    provideUtility(WebCrawler, name=u'transmogrify.htmltesting.webcrawler')
    provideUtility(TreeSerializer,
                   name=u'transmogrify.htmltesting.treeserializer')
    provideUtility(TypeRecognitor,
                   name=u'transmogrify.htmltesting.typerecognitor')
    provideUtility(TemplateFinder,
                   name=u'transmogrify.htmltesting.templatefinder')
    provideUtility(urlnormalizer)
    provideUtility(Relinker, name=u'transmogrify.htmltesting.relinker')
    provideUtility(SimpleXPath, name=u'transmogrify.htmltesting.simplexpath')
    provideUtility(SafePortalTransforms,
                   name=u'transmogrify.htmltesting.safeportaltransforms')
    from backlinkstitle import BacklinksTitle
    provideUtility(BacklinksTitle,
                   name=u'transmogrify.htmltesting.backlinkstitle')
    from isindex import IsIndex
    provideUtility(IsIndex, name=u'transmogrify.htmltesting.isindex')
    from pathmover import PathMover
    provideUtility(PathMover, name=u'transmogrify.htmltesting.pathmover')
    from safeatschemaupdater import SafeATSchemaUpdaterSection
    provideUtility(SafeATSchemaUpdaterSection,
                   name=u'transmogrify.htmltesting.safeatschemaupdater')
    from constructor import SafeConstructorSection
    provideUtility(SafeConstructorSection,
                   name=u'transmogrify.htmltesting.constructor')
    from makeattachments import MakeAttachments
    provideUtility(MakeAttachments,
                   name=u'transmogrify.htmltesting.makeattachments')
    from debugsection import DebugSection
    provideUtility(DebugSection, name=u'transmogrify.htmltesting.debugsection')
    from staticcreator import StaticCreatorSection
    provideUtility(StaticCreatorSection,
                   name=u'transmogrify.htmltesting.staticcreator')

    provideUtility(HTMLSource,
                   name=u'transmogrify.htmltesting.test.htmlsource')
    provideUtility(HTMLBacklinkSource,
                   name=u'transmogrify.htmltesting.test.htmlbacklinksource')
示例#5
0
def setUp(test):
    baseSetUp(test)
    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    zcml.load_config("meta.zcml", zope.security)
    zcml.load_config("meta.zcml", zope.component)
    zcml.load_config("meta.zcml", collective.transmogrifier)
    zcml.load_config("configure.zcml", collective.transmogrifier)
    zcml.load_config("configure.zcml", gu.transmogrifier)
    zcml.load_config('testing.zcml', gu.transmogrifier.tests)
    zcml.load_config('configure.zcml', org.bccvl.compute)
示例#6
0
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.app.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)
    zcml.load_config('configure.zcml', transmogrify.webcrawler)

    provideUtility(PrettyPrinter,
                   name=u'collective.transmogrifier.sections.tests.pprinter')
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.app.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)
    zcml.load_config('configure.zcml', transmogrify.webcrawler)


    provideUtility(PrettyPrinter,
        name=u'collective.transmogrifier.sections.tests.pprinter')
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)

    test.globs['plone'].portal_transforms = MockPortalTransforms()

    provideUtility(PrettyPrinter,
        name=u'collective.transmogrifier.sections.tests.pprinter')
    #provideUtility(WebCrawler,
        #name=u'transmogrify.webcrawler.webcrawler')
    provideUtility(urlnormalizer)
    #provideUtility(Relinker,
        #name=u'transmogrify.webcrawler.relinker')
    #provideUtility(SafePortalTransforms,
        #name=u'transmogrify.webcrawler.safeportaltransforms')
    #from backlinkstitle import BacklinksTitle
    #provideUtility(BacklinksTitle,
        #name=u'transmogrify.webcrawler.backlinkstitle')
    from isindex import IsIndex
    provideUtility(IsIndex,
        name=u'transmogrify.webcrawler.isindex')
    #from makeattachments import MakeAttachments
    #provideUtility(MakeAttachments,
        #name=u'transmogrify.webcrawler.makeattachments')
    #from debugsection import DebugSection
    #provideUtility(DebugSection,
        #name=u'transmogrify.webcrawler.debugsection')

    provideUtility(HTMLSource,
        name=u'transmogrify.webcrawler.test.htmlsource')
    provideUtility(HTMLBacklinkSource,
        name=u'transmogrify.webcrawler.test.htmlbacklinksource')
示例#9
0
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)

    test.globs['plone'].portal_transforms = MockPortalTransforms()

    provideUtility(PrettyPrinter,
                   name=u'collective.transmogrifier.sections.tests.pprinter')
    #provideUtility(WebCrawler,
    #name=u'transmogrify.webcrawler.webcrawler')
    provideUtility(urlnormalizer)
    #provideUtility(Relinker,
    #name=u'transmogrify.webcrawler.relinker')
    #provideUtility(SafePortalTransforms,
    #name=u'transmogrify.webcrawler.safeportaltransforms')
    #from backlinkstitle import BacklinksTitle
    #provideUtility(BacklinksTitle,
    #name=u'transmogrify.webcrawler.backlinkstitle')
    from isindex import IsIndex
    provideUtility(IsIndex, name=u'transmogrify.webcrawler.isindex')
    #from makeattachments import MakeAttachments
    #provideUtility(MakeAttachments,
    #name=u'transmogrify.webcrawler.makeattachments')
    #from debugsection import DebugSection
    #provideUtility(DebugSection,
    #name=u'transmogrify.webcrawler.debugsection')

    provideUtility(HTMLSource, name=u'transmogrify.webcrawler.test.htmlsource')
    provideUtility(HTMLBacklinkSource,
                   name=u'transmogrify.webcrawler.test.htmlbacklinksource')
def setUp(test):
    baseSetUp(test)

    from collective.transmogrifier.transmogrifier import Transmogrifier
    from collective.transmogrifier.tests import registerConfig
    test.globs['transmogrifier'] = Transmogrifier(test.globs['plone'])
    test.globs['registerConfig'] = registerConfig
    test.globs.update(globs)

    import zope.component
    import collective.transmogrifier.sections
    zcml.load_config('meta.zcml', zope.app.component)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections)
    zcml.load_config('configure.zcml', collective.transmogrifier.sections.tests)
    logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)



    provideUtility(PrettyPrinter,
        name=u'collective.transmogrifier.sections.tests.pprinter')
    provideUtility(TemplateFinder,
        name=u'transmogrify.htmlcontentextractor')
    provideUtility(HTMLSource,
        name=u'transmogrify.htmlcontentextractor.test.htmlsource')