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

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

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/content/folder.py   Products.CMFBibliographyAT(Download)
from Products.CMFBibliographyAT.DuplicatesCriteria import DuplicatesCriteriaManager
from Products.CMFBibliographyAT.config import CMFBAT_USES_LINGUAPLONE
from Products.CMFBibliographyAT.config import PROJECTNAME, FOLDER_TYPES
from Products.CMFBibliographyAT.interface import IBibliographyFolder
from Products.CMFBibliographyAT.interface import ILargeBibliographyFolder
            acquired_objects = []
            portal_catalog = getToolByName(self, 'portal_catalog')
            all_folders = portal_catalog(meta_type=FOLDER_TYPES)
            for each_result in all_folders:
                obj = each_result.getObject()
            result = ofs_result
 
        if self.portal_type in FOLDER_TYPES:
            # duplicate checking only if we are not yet in the duplicates 
            # folder (or wherever)

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/tool/bibliography.py   Products.CMFBibliographyAT(Download)
     DuplicatesCriteriaManager
from Products.CMFBibliographyAT.config import REFERENCE_TYPES
from Products.CMFBibliographyAT.config import FOLDER_TYPES as BIBFOLDER_TYPES
from Products.CMFBibliographyAT.config import ZOPE_TEXTINDEXES
from Products.CMFBibliographyAT import permissions
        currently registered bibfolder types
        """
        return BIBFOLDER_TYPES
 
    security.declareProtected(permissions.ManageReferenceTypes,

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/migrations/cmfbib08to09.py   Products.CMFBibliographyAT(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFBibliographyAT.config import REFERENCE_TYPES
from Products.CMFBibliographyAT.config import FOLDER_TYPES as BIBFOLDER_TYPES
 
from bibliograph.core.utils import _encode, _decode
 
        count = 0
        brains = ct(portal_type=BIBFOLDER_TYPES, Language='all')
        for brain in brains[:5]:
            bibfolder = brain.getObject()
    def migrateCriteriasManagerReferenceType(self):
 
        ct = getToolByName(self.site, 'portal_catalog')
        bibtool = getToolByName(self.site, 'portal_bibliography')
        brains = ct(portal_type=BIBFOLDER_TYPES, Language='all')
        ct = getToolByName(self.site, 'portal_catalog')
        bib_tool = getToolByName(self.site, 'portal_bibliography')
        brains = ct(portal_type=BIBFOLDER_TYPES, Language='all')
 
        # needs schema upgrade for authors field
 
        print >> self.out, u'    Bibliography Folder needs duplication engine upgrade ...'
        brains = ct(portal_type=BIBFOLDER_TYPES, Language='all')
        for brain in brains:
            bibfolder = brain.getObject()