Did I find the right examples for you? yes no

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

src/p/r/Products.qPloneDropDownMenu-3.0/Products/qPloneDropDownMenu/setuphandlers.py   Products.qPloneDropDownMenu(Download)
from Products.CMFCore.utils import getToolByName
 
from utils import updateMenu
from config import PROPERTY_SHEET, PROPERTY_FIELD
 
            return
 
    updateMenu(site)
 

src/p/r/Products.qPloneDropDownMenu-3.0/Products/qPloneDropDownMenu/DropDownMenuTool.py   Products.qPloneDropDownMenu(Download)
from Products.CMFCore.utils import UniqueObject, getToolByName
 
from utils import updateMenu
from config import MANAGE_PERMISSION, PROJECT_NAME, UNIQUE_ID
 
    def regenerateMenu(self):
        portal = getToolByName(self, 'portal_url').getPortalObject()
        updateMenu(portal)
 
InitializeClass(DropDownMenuTool)