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

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

src/p/r/Products.LinguaPlone-4.1.3/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
        if new_parent != parent:
            try:
                info = parent.manage_cutObjects([self.getId()])
                new_parent.manage_pasteObjects(info)
            except CopyError:
 
                if ISelectableBrowserDefault.providedBy(parent):
                    parent.setDefaultPage(self.getId())
 
        if shasattr(self, '_lp_outdated'):

src/p/r/Products.LinguaPlone-HEAD/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
        if new_parent != parent:
            try:
                info = parent.manage_cutObjects([self.getId()])
                new_parent.manage_pasteObjects(info)
            except CopyError:
 
                if ISelectableBrowserDefault.providedBy(parent):
                    parent.setDefaultPage(self.getId())
 
        if shasattr(self, '_lp_outdated'):

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/DuplicatesCriteria.py   Products.CMFBibliographyAT(Download)
    def allCriteria(self, bib_type=None):
 
        # migrate CMFBAT v0.8 duplicates engine, mending a linguistic fault-pas
        if shasattr(self, '_criterias'):
            print 'CMFBibliographyAT: performing duplicates engine property update - v0.8 -> v0.9 (allCriteria of %s)' % '/'.join(self.getId())
    def getSelectedCriteria(self, bib_type = None):
 
        # migrate CMFBAT v0.8 duplicates engine, mending a linguistic fault-pas
        if shasattr(self, 'imp_criterias'):
            print 'CMFBibliographyAT: performing duplicates engine property update - v0.8 -> v0.9 (getSelectedCriteria of %s)' % '/'.join(self.getId())
        if not shasattr(self, 'duplicates_criteria') or not self.duplicates_criteria:
 
            if self.getId() == bib_tool.getId():
                for reference_type in bib_tool.getReferenceTypes():
                    self.duplicates_criteria[reference_type] = PersistentList(self._default_duplicates_criteria)

src/p/r/Products.SilvaExternalSources-3.0.3/Products/SilvaExternalSources/ExternalSource.py   Products.SilvaExternalSources(Download)
    def get_title (self):
        return self.title or self.getId()
 
    security.declareProtected(
        permissions.AccessContentsInformation, 'get_icon')