* Changed type from xml to html in the ATOM feed, added a link rel="self" default tip
authorthib
Mon Oct 27 07:12:09 2008 +0000 (2008-10-27)
changeset 7cb6a37da1390
parent 6 9de85bfd9d30
* Changed type from xml to html in the ATOM feed, added a link rel="self"
PyThiBloG/modules/atom.py
templates/atom.tpl
templates/atom_comment.tpl
templates/atom_entry.tpl
     1.1 --- a/PyThiBloG/modules/atom.py	Fri Oct 17 16:34:51 2008 +0000
     1.2 +++ b/PyThiBloG/modules/atom.py	Mon Oct 27 07:12:09 2008 +0000
     1.3 @@ -48,6 +48,7 @@
     1.4          atom.content_type = 'application/xml'
     1.5  
     1.6          atom.content['uri'] = req.base_url
     1.7 +        atom.content['location'] = req.uri
     1.8          atom.content['name'] = config.owner['nick']
     1.9          atom.content['date'] = ''
    1.10  
     2.1 --- a/templates/atom.tpl	Fri Oct 17 16:34:51 2008 +0000
     2.2 +++ b/templates/atom.tpl	Mon Oct 27 07:12:09 2008 +0000
     2.3 @@ -2,6 +2,7 @@
     2.4  <feed xmlns="http://www.w3.org/2005/Atom">
     2.5    <title>{TITLE}</title>
     2.6    <link rel="alternate" href="{URI}"/>
     2.7 +  <link rel="self" href="{LOCATION}"/>
     2.8    <id>{URI}</id>
     2.9    <subtitle>{DESCRIPTION}</subtitle>
    2.10    <generator>PyThiBloG</generator>
     3.1 --- a/templates/atom_comment.tpl	Fri Oct 17 16:34:51 2008 +0000
     3.2 +++ b/templates/atom_comment.tpl	Mon Oct 27 07:12:09 2008 +0000
     3.3 @@ -9,7 +9,7 @@
     3.4        <name>{AUTHOR}</name>
     3.5      </author>
     3.6      
     3.7 -    <content type="xhtml" xml:base="{URI}/posts/">
     3.8 +    <content type="html" xml:base="{URI}/posts/">
     3.9        {CONTENT}
    3.10      </content>
    3.11    </entry>
     4.1 --- a/templates/atom_entry.tpl	Fri Oct 17 16:34:51 2008 +0000
     4.2 +++ b/templates/atom_entry.tpl	Mon Oct 27 07:12:09 2008 +0000
     4.3 @@ -6,7 +6,7 @@
     4.4      <!--<comments>{URI}/posts/{ID}#comments</comments>-->
     4.5      <published>{DATE}</published>
     4.6      <updated>{DATE}</updated>
     4.7 -    <content type="xhtml" xml:base="{URI}/posts/">
     4.8 +    <content type="html" xml:base="{URI}/posts/">
     4.9        {CONTENT}
    4.10      </content>
    4.11    </entry>