Changeset 19
- Timestamp:
- 11/09/06 14:38:50 (5 years ago)
- Location:
- sitemap-plugin/trunk/sitemap
- Files:
-
- 2 edited
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') -
sitemap-plugin/trunk/sitemap/wiki.py
r18 r19 62 62 if author == 'trac': 63 63 continue 64 entry_time = datetime.datetime.utcfromtimestamp(post_time) 64 65 d.append(RessourceData( 65 66 href(req.href.wiki(pagename)), 66 datetime.datetime.utcfromtimestamp(post_time),67 entry_time.strftime("%Y-%m-%dT%H:%M:%SZ"), 67 68 self.frequency, 68 69 self.priority
Note: See TracChangeset
for help on using the changeset viewer.
