Changeset 19 for sitemap-plugin/trunk/sitemap/api.py
- Timestamp:
- 11/09/06 14:38:50 (6 years ago)
- File:
-
- 1 edited
-
sitemap-plugin/trunk/sitemap/api.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sitemap-plugin/trunk/sitemap/api.py
r18 r19 79 79 path = '/sitemap.xml' 80 80 81 ns = "http://www.google.com/schemas/sitemap/0.84" 82 81 83 def get_descriptions(self): 82 84 """Return an array of sitemap contributions""" … … 108 110 doc = Document() 109 111 urlset = doc.createElement("urlset") 110 doc.appendChild(urlset) 112 a = doc.createAttribute('xmlns') 113 a.value = self.ns 114 urlset.setAttributeNode(a) 111 115 for c in self.contributors: 112 116 for ressource_data in c.get_data(req): 113 117 urlset.appendChild(ressource_data.to_node(doc)) 114 118 119 doc.appendChild(urlset) 115 120 req.send_response(200) 116 121 req.send_header('Content-Type', 'text/xml;charset=UTF-8')
Note: See TracChangeset
for help on using the changeset viewer.
