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

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

src/p/r/Products.LinguaPlone-4.1.3/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
    def isTranslation(self):
        """Tells whether this object is used in a i18n context."""
        return bool(self.getReferenceImpl(RELATIONSHIP) or \
                    self.getBackReferenceImpl(RELATIONSHIP) \
                    and self.Language() or False)
                return self
        # Short-cut for self
        lang = self.Language()
        if lang == language:
            return self
        if _is_canonical:
            result = {}
            lang = self.Language()
            state = None
            workflow_tool = getToolByName(self, 'portal_workflow', None)
    def getLanguage(self):
        """Returns the language code."""
        return self.Language()
 
    security.declareProtected(permissions.ModifyPortalContent, 'setLanguage')
    def _isIDAutoGenerated(self, id):
        if not self.isCanonical():
            canonical_id = self.getCanonical().getId()
            language = self.Language()
            return isInitialTranslationId(id, canonical_id, language)

src/p/r/Products.LinguaPlone-HEAD/Products/LinguaPlone/I18NBaseObject.py   Products.LinguaPlone(Download)
    def isTranslation(self):
        """Tells whether this object is used in a i18n context."""
        return bool(self.getReferenceImpl(RELATIONSHIP) or \
                    self.getBackReferenceImpl(RELATIONSHIP) \
                    and self.Language() or False)
                return self
        # Short-cut for self
        lang = self.Language()
        if lang == language:
            return self
        if _is_canonical:
            result = {}
            lang = self.Language()
            state = None
            workflow_tool = getToolByName(self, 'portal_workflow', None)
    def getLanguage(self):
        """Returns the language code."""
        return self.Language()
 
    security.declareProtected(permissions.ModifyPortalContent, 'setLanguage')
    def _isIDAutoGenerated(self, id):
        if not self.isCanonical():
            canonical_id = self.getCanonical().getId()
            language = self.Language()
            return isInitialTranslationId(id, canonical_id, language)