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

All Samples(9)  |  Call(8)  |  Derive(0)  |  Import(1)

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/tests/test_product.py   archetypes.referencebrowserwidget(Download)
    IReferenceBrowserHelperView,
)
from archetypes.referencebrowserwidget.browser.view import (
    ReferenceBrowserHelperView
)
    def test_portalpath(self):
        helper = ReferenceBrowserHelperView(self.folder, self.app.REQUEST)
        self.assertEqual(helper.getPortalPath(), '/plone')
 
    def test_startupdirectory(self):
 
        field = context.getField('multiRef5')
        helper = ReferenceBrowserHelperView(context, request)
 
        # no query
        context = self.folder.doc1
        request = TestRequest()
        helper = ReferenceBrowserHelperView(context, request)
        field = context.getField('relatedItems')
 
        request = TestRequest()
        field = context.getField('singleRef')
        helper = ReferenceBrowserHelperView(context, request)
 
        # no relations