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

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

src/p/r/Products.BibfolderFlexibleView-0.4.2/Products/BibfolderFlexibleView/tool/flexview_tool.py   Products.BibfolderFlexibleView(Download)
from Products.CMFCore.utils import getToolByName
from OFS.Folder import Folder
from Products.BibfolderFlexibleView.config import MASKS
from Products.BibfolderFlexibleView.config import CATEGORIES
from AccessControl import Unauthorized
    def __post_init__(self):    
        bibtool = getToolByName(self, 'portal_bibliography')
        reftypes = bibtool.getReferenceTypes()
        self.add_ref_type_mask_properties(self, reftypes)
        for m in MASKS:
            self.add_mask(self, mask=m, reftypes=MASKS[m])