Did I find the right examples for you? yes no

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

src/p/r/Products.qPloneDropDownMenu-3.0/Products/qPloneDropDownMenu/utils.py   Products.qPloneDropDownMenu(Download)
from Products.CMFCore.Expression import Expression, createExprContext
 
from config import PROPERTY_FIELD, PROPERTY_SHEET
 
 
                                     'name': toUnicode(tab['name'], enc)}
 
    if not hasattr(portal_props.aq_base, PROPERTY_SHEET):
        portal_props.addPropertySheet(PROPERTY_SHEET,
                                      'DropDown Menu Properties')
    ap = getattr(portal_props.aq_base, PROPERTY_SHEET)

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
 
 
    # skip adding property if it already exists
    prop_sheet = getattr(portal_props.aq_base, PROPERTY_SHEET, None)
    if prop_sheet is not None:
        prop_field = getattr(prop_sheet.aq_base, PROPERTY_FIELD, None)