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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/r/Products.CMFContentPanels-2.6b2/Products/CMFContentPanels/Extensions/Install.py   Products.CMFContentPanels(Download)
def addViewMethods(portal, out):
    portal_types = getToolByName(portal, 'portal_types')
 
    for portal_type, view_methods in NEW_VIEW_METHODS.items():
        ti = portal_types.getTypeInfo(portal_type)

src/p/r/Products.CMFContentPanels-HEAD/Products/CMFContentPanels/Extensions/Install.py   Products.CMFContentPanels(Download)
def addViewMethods(portal, out):
    portal_types = getToolByName(portal, 'portal_types')
 
    for portal_type, view_methods in NEW_VIEW_METHODS.items():
        ti = portal_types.getTypeInfo(portal_type)