[PATCH 4/7] add PuSH link to atom.xml

Matt Domsch Matt_Domsch at dell.com
Wed Jun 16 03:52:58 EST 2010


>From b7156712bb6cbee66ab6dd3059a0b9b16ab4730a Mon Sep 17 00:00:00 2001
From: Matt Domsch <Matt_Domsch at dell.com>
Date: Tue, 15 Jun 2010 12:26:15 -0500
Subject: [PATCH 4/7] add PuSH link to atom.xml

---
 planet/splice.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/planet/splice.py b/planet/splice.py
index 77a6908..b399eca 100644
--- a/planet/splice.py
+++ b/planet/splice.py
@@ -44,6 +44,12 @@ def splice():
             link.setAttribute('type', "application/%s+xml" % config.feedtype())
         feed.appendChild(link)
 
+    if config.pubsubhubbub_hub():
+        hub = doc.createElement('link')
+        hub.setAttribute('rel', 'hub')
+        hub.setAttribute('href', config.pubsubhubbub_hub())
+        feed.appendChild(hub)
+
     if config.link():
         link = doc.createElement('link')
         link.setAttribute('rel', 'alternate')
-- 
1.7.0.1



More information about the devel mailing list