def content_by_language(self, language):
        """
        Return a list of latest published
        :class:`Content <pages.models.Content>`
        for a particluar language.

        :param language: wanted language,
        """
        placeholders = get_placeholders(self.get_template())
        content_list = []
        for ctype in [p.name for p in placeholders]:
            try:
                content = Content.objects.get_content_object(self,
                    language, ctype)
                content_list.append(content)
            except Content.DoesNotExist:
                pass
        return content_list
def content_by_language ( self , language ) : placeholders = get_placeholders ( self . get_template ( ) ) content_list = [ ] for ctype in [ p . name for p in placeholders ] : try : content = Content . objects . get_content_object ( self , language , ctype ) content_list . append ( content ) except Content . DoesNotExist : pass return content_list
Return a list of latest published
        :class:`Content <pages.models.Content>`
        for a particluar language.

        :param language: wanted language,