(self, summary=None, type=None)
return self.__atom_summary
Get or set the summary element of an entry which conveys a short
        summary, abstract, or excerpt of the entry. Summary is an ATOM only
        element and should be provided if there either is no content provided
        for the entry, or that content is not inline (i.e., contains a src
        attribute), or if the content is encoded in base64.  This method will
        also set the rss:description field if it wasn't previously set or
        contains the old value of summary.

        :param summary: Summary of the entries contents.
        :returns: Summary of the entries contents.
Get or set the summary element of an entry which conveys a short
        summary, abstract, or excerpt of the entry. Summary is an ATOM only
        element and should be provided if there either is no content provided
        for the entry, or that content is not inline (i.e., contains a src
        attribute), or if the content is encoded in base64.  This method will
        also set the rss:description field if it wasn't previously set or
        contains the old value of summary.
Get or set the summary element of an entry which conveys a short summary abstract or excerpt of the entry . Summary is an ATOM only element and should be provided if there either is no content provided for the entry or that content is not inline ( i . e . contains a src attribute ) or if the content is encoded in base64 . This method will also set the rss : description field if it wasn t previously set or contains the old value of summary .
def summary(self, summary=None, type=None):
        '''Get or set the summary element of an entry which conveys a short
        summary, abstract, or excerpt of the entry. Summary is an ATOM only
        element and should be provided if there either is no content provided
        for the entry, or that content is not inline (i.e., contains a src
        attribute), or if the content is encoded in base64.  This method will
        also set the rss:description field if it wasn't previously set or
        contains the old value of summary.

        :param summary: Summary of the entries contents.
        :returns: Summary of the entries contents.
        '''
        if summary is not None:
            # Replace the RSS description with the summary if it was the
            # summary before. Not if it is the description.
            if not self.__rss_description or (
                self.__atom_summary and
                self.__rss_description == self.__atom_summary.get("summary")
            ):
                self.__rss_description = summary

            self.__atom_summary = {'summary': summary}
            if type is not None:
                self.__atom_summary['type'] = type
        return self.__atom_summary
def summary ( self , summary = None , type = None ) : if summary is not None : # Replace the RSS description with the summary if it was the # summary before. Not if it is the description. if not self . __rss_description or ( self . __atom_summary and self . __rss_description == self . __atom_summary . get ( "summary" ) ) : self . __rss_description = summary self . __atom_summary = { 'summary' : summary } if type is not None : self . __atom_summary [ 'type' ] = type return self . __atom_summary