gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 37225 - in gump/live: psp python/gump/build python/gump/document/xdocs python/gump/rdf python/gump/run python/gump/runner python/gump/syndication python/gump/test
Date Mon, 30 Aug 2004 23:57:51 GMT
Author: ajack
Date: Mon Aug 30 16:57:49 2004
New Revision: 37225

Added:
   gump/live/psp/
      - copied from rev 37210, gump/trunk/psp/
   gump/live/psp/index.html
      - copied unchanged from rev 37210, gump/trunk/psp/index.html
   gump/live/psp/test.psp
      - copied unchanged from rev 37210, gump/trunk/psp/test.psp
   gump/live/python/gump/rdf/   (props changed)
      - copied from rev 37210, gump/trunk/python/gump/rdf/
   gump/live/python/gump/rdf/__init__.py
      - copied unchanged from rev 37210, gump/trunk/python/gump/rdf/__init__.py
   gump/live/python/gump/rdf/describer.py
      - copied unchanged from rev 37210, gump/trunk/python/gump/rdf/describer.py
   gump/live/python/gump/test/describer.py
      - copied unchanged from rev 37210, gump/trunk/python/gump/test/describer.py
Modified:
   gump/live/python/gump/build/builder.py
   gump/live/python/gump/document/xdocs/documenter.py
   gump/live/python/gump/run/options.py
   gump/live/python/gump/runner/runner.py
   gump/live/python/gump/syndication/atom.py
   gump/live/python/gump/syndication/rss.py
   gump/live/python/gump/test/pyunit.py
Log:
Fixing stats updating for live.


Modified: gump/live/python/gump/build/builder.py
==============================================================================
--- gump/live/python/gump/build/builder.py	(original)
+++ gump/live/python/gump/build/builder.py	Mon Aug 30 16:57:49 2004
@@ -115,6 +115,9 @@
             if project.okToPerformWork():        
                 log.debug('Performing Build Upon: [' + `project.getPosition()` + '] ' + project.getName())
 
+                if project.isPrereqFailed():
+                    project.addWarning('Building despite certain prerequisite failures [repository
build].')
+                    
                 # Turn on --verbose or --debug if failing ...
                 #if stats:
                 #    if (not STATE_SUCCESS == stats.currentState) and \

Modified: gump/live/python/gump/document/xdocs/documenter.py
==============================================================================
--- gump/live/python/gump/document/xdocs/documenter.py	(original)
+++ gump/live/python/gump/document/xdocs/documenter.py	Mon Aug 30 16:57:49 2004
@@ -293,6 +293,14 @@
         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')
         
+        rdfSyndRow=definitionTable.createRow()
+        rdfSyndRow.createData().createStrong('Metadata')
+        rdfArea=rdfSyndRow.createData()
+        rdfArea.createFork('gump.rdf','RDF')
+        #rdfUrl=self.resolver.getUrl(self.workspace,'gump','.rdf')
+        #rdfArea.createFork('http://www.feedvalidator.org/check.cgi?url=' + rdfUrl) \
+        #        .createIcon(self.resolver.getImageUrl('valid-rdf.png'), alt='[Valid Atom]')
#, title='Validate my Atom feed', width='88', height='31')
+        
         self.documentSummary(document,self.workspace.getProjectSummary())     
         
         dtSection=definitionSection.createSection('Dates/Times')            

Modified: gump/live/python/gump/run/options.py
==============================================================================
--- gump/live/python/gump/run/options.py	(original)
+++ gump/live/python/gump/run/options.py	Mon Aug 30 16:57:49 2004
@@ -62,13 +62,14 @@
 FEATURE_NOTIFY=0x04
 FEATURE_DIAGRAM=0x08
 FEATURE_SYNDICATE=0x10
-FEATURE_PUBLISH=0x20
-FEATURE_DOCUMENT=0x40
+FEATURE_DESCRIBE=0x20
+FEATURE_PUBLISH=0x40
+FEATURE_DOCUMENT=0x80
 
-FEATURE_DEFAULT=FEATURE_SYNDICATE|FEATURE_DOCUMENT|FEATURE_NOTIFY
+FEATURE_DEFAULT=FEATURE_STATISTICS|FEATURE_SYNDICATE|FEATURE_DESCRIBE|FEATURE_DOCUMENT|FEATURE_NOTIFY
             
 FEATURE_ALL=FEATURE_STATISTICS|FEATURE_RESULTS|FEATURE_NOTIFY|FEATURE_DIAGRAM|    \
-                FEATURE_SYNDICATE|FEATURE_PUBLISH|FEATURE_DOCUMENT
+                FEATURE_SYNDICATE|FEATURE_DESCRIBE|FEATURE_PUBLISH|FEATURE_DOCUMENT
             
 FEATURE_OFFICIAL=FEATURE_ALL
             
@@ -286,6 +287,12 @@
         Is syndication (RSS|Atom) to be performed for this run?
         """
         return self._testFeatureIsSet(FEATURE_SYNDICATE)
+
+    def isDescribe(self):
+        """
+        Is describer (RDF) to be performed for this run?
+        """
+        return self._testFeatureIsSet(FEATURE_DESCRIBE)
 
     def isPublish(self):
         """

Modified: gump/live/python/gump/runner/runner.py
==============================================================================
--- gump/live/python/gump/runner/runner.py	(original)
+++ gump/live/python/gump/runner/runner.py	Mon Aug 30 16:57:49 2004
@@ -157,6 +157,15 @@
         if self.run.getOptions().isSyndicate():
             self.run.registerActor(Syndicator(self.run))   
             
+        # Describe [once documented]
+        if self.run.getOptions().isDescribe():
+            try:
+                import gump.rdf.describer
+                self.run.registerActor(gump.rdf.describer.RDFDescriber(self.run))   
+            except Exception, details:
+                log.warning('Unable to register RDF Describer :  %s ' % details,
+                            exc_info=1)
+            
         # Publish artifacts
         if self.run.getOptions().isPublish():
             self.run.registerActor(RepositoryPublisher(self.run))   

Modified: gump/live/python/gump/syndication/atom.py
==============================================================================
--- gump/live/python/gump/syndication/atom.py	(original)
+++ gump/live/python/gump/syndication/atom.py	Mon Aug 30 16:57:49 2004
@@ -111,7 +111,7 @@
 """)
                 
     def serialize(self):
-        log.info("Atom News Feed to : " + self.file);         
+        #log.info("Atom News Feed to : " + self.file);         
         stream = open(self.file,'w')
         
         modified=time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())

Modified: gump/live/python/gump/syndication/rss.py
==============================================================================
--- gump/live/python/gump/syndication/rss.py	(original)
+++ gump/live/python/gump/syndication/rss.py	Mon Aug 30 16:57:49 2004
@@ -193,10 +193,10 @@
     def endRSS(self):                    
         # complete the rss feed
         self.rssStream.write('</rss>\n')                
-        log.info("RSS Newsfeed written to : " + self.rssFile);          
+        #log.info("RSS Newsfeed written to : " + self.rssFile);          
         
     def serialize(self):
-        log.info("RSS Newsfeed to : " + self.rssFile);         
+        #log.info("RSS Newsfeed to : " + self.rssFile);         
         self.rssStream = open(self.rssFile,'w')
         
         self.startRSS()

Modified: gump/live/python/gump/test/pyunit.py
==============================================================================
--- gump/live/python/gump/test/pyunit.py	(original)
+++ gump/live/python/gump/test/pyunit.py	Mon Aug 30 16:57:49 2004
@@ -380,6 +380,9 @@
     from gump.test.language import LanguageTestSuite  
     runner.addSuite(LanguageTestSuite())
  
+    from gump.test.describer import RDFDescriberTestSuite  
+    runner.addSuite(RDFDescriberTestSuite())
+ 
     
     # Any args are pattern matches
     patterns=list(sys.argv)

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


Mime
View raw message