gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 36787 - in gump/trunk/python/gump: document/xdocs syndication
Date Mon, 23 Aug 2004 21:34:29 GMT
Author: ajack
Date: Mon Aug 23 14:34:29 2004
New Revision: 36787

Modified:
   gump/trunk/python/gump/document/xdocs/documenter.py
   gump/trunk/python/gump/syndication/atom.py
   gump/trunk/python/gump/syndication/rss.py
Log:
Support RSS|Atom validation.

Modified: gump/trunk/python/gump/document/xdocs/documenter.py
==============================================================================
--- gump/trunk/python/gump/document/xdocs/documenter.py	(original)
+++ gump/trunk/python/gump/document/xdocs/documenter.py	Mon Aug 23 14:34:29 2004
@@ -279,10 +279,19 @@
         
         rssSyndRow=definitionTable.createRow()
         rssSyndRow.createData().createStrong('Syndication')
-        rssSyndRow.createData().createFork('rss.xml','RSS')
+        rssArea=rssSyndRow.createData()
+        rssArea.createFork('rss.xml','RSS')
+        rssUrl=self.resolver.getUrl(self.workspace,'rss','.xml')
+        rssArea.createFork('http://www.feedvalidator.org/check.cgi?url=' + rssUrl) \
+                .createIcon(self.resolver.getImageUrl('valid-rss.png'), alt='[Valid RSS]')
#, title='Validate my RSS feed', width='88', height='31')
+                 
         atomSyndRow=definitionTable.createRow()
         atomSyndRow.createData().createStrong('Syndication')
-        atomSyndRow.createData().createFork('atom.xml','Atom')
+        atomArea=atomSyndRow.createData()
+        atomArea.createFork('atom.xml','Atom')
+        atomUrl=self.resolver.getUrl(self.workspace,'atom','.xml')
+        atomArea.createFork('http://www.feedvalidator.org/check.cgi?url=' + atomUrl) \
+                .createIcon(self.resolver.getImageUrl('valid-atom.png'), alt='[Valid Atom]')
#, title='Validate my Atom feed', width='88', height='31')
         
         self.documentSummary(document,self.workspace.getProjectSummary())     
         

Modified: gump/trunk/python/gump/syndication/atom.py
==============================================================================
--- gump/trunk/python/gump/syndication/atom.py	(original)
+++ gump/trunk/python/gump/syndication/atom.py	Mon Aug 23 14:34:29 2004
@@ -136,7 +136,7 @@
         self.feed=AtomFeed(feedUrl,feedFile,	\
                         'workspace',	\
                        'Apache Gump',		\
-                        self.workspace.logurl,	\
+                        self.workspace.getLogUrl(),	\
                         """Life is like a box of chocolates""")
             
     def completeRun(self):

Modified: gump/trunk/python/gump/syndication/rss.py
==============================================================================
--- gump/trunk/python/gump/syndication/rss.py	(original)
+++ gump/trunk/python/gump/syndication/rss.py	Mon Aug 23 14:34:29 2004
@@ -235,7 +235,7 @@
     
         self.rss=RSS(self.rssUrl,self.rssFile,	\
             Channel('Apache Gump',		\
-                    self.workspace.logurl,	\
+                    self.workspace.getLogUrl(),	\
                     """Life is like a box of chocolates""", \
                 self.gumpImage))
        

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message