You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2003/09/10 01:00:26 UTC

cvs commit: jakarta-gump/python/gump rss.py

ajack       2003/09/09 16:00:26

  Modified:    python/gump rss.py
  Log:
  Do RRS for all, just for testing...
  
  Revision  Changes    Path
  1.4       +15 -10    jakarta-gump/python/gump/rss.py
  
  Index: rss.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/rss.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- rss.py	9 Sep 2003 19:37:07 -0000	1.3
  +++ rss.py	9 Sep 2003 23:00:26 -0000	1.4
  @@ -98,7 +98,7 @@
       <link>http://jakarta.apache.org/gump/</link>
       <description>Life is like a box of chocolates</description>
   
  -    <admin:generatorAgent rdf:resource="http://cvs.apache.org/viewcvs/jakarta-gump/python/gumprss.py"/>
  +    <admin:generatorAgent rdf:resource="http://cvs.apache.org/viewcvs/jakarta-gump/python/gump/rss.py"/>
       <admin:errorReportsTo rdf:resource="mailto:gump@jakarta.apache.org"/>
   
       <sy:updateFrequency>1</sy:updateFrequency>
  @@ -113,9 +113,11 @@
                       s=db.getProjectStats(pctxt.name)
                       
                       # State changes that are newsworthy...
  -                    if not s.currentState == s.previousState \
  -                      and not s.currentState == STATUS_PREREQ_FAILURE \
  -                      and not s.currentState == STATUS_COMPLETE :
  +                    # :TODO: Remove 1, this is for testing...
  +                    #if not s.currentState == s.previousState \
  +                    #  and not s.currentState == STATUS_PREREQ_FAILURE \
  +                    #  and not s.currentState == STATUS_COMPLETE :
  +                    if 1
                           project=pctxt.project
                               
                           log.info("RSS written for " + pctxt.name); 
  @@ -124,7 +126,7 @@
                           datestr=time.strftime('%Y-%m-%d')
                           timestr=time.strftime('%H%M')
                       
  -                        content='Testing....'
  +                        content='Project ' + pctxt.name + ' : ' + stateName(pctxt.status)
                       
                           # write out the item to the rss feed
                           gumprss.write("""
  @@ -135,7 +137,10 @@
                                 <dc:subject>%s</dc:subject>
                                 <dc:date>%sT%s%s</dc:date>
                               </item>""" % \
  -                          (pctxt.name,stateName(pctxt.status),datestr, link, content, module[project], datestr,timestr,TZ))
  +                          (pctxt.name,stateName(pctxt.status),datestr, link, \
  +                               content, \
  +                               module[project], \
  +                               datestr,timestr,TZ))
                           
       # complete the rss feed
       gumprss.write("""
  @@ -144,7 +149,7 @@
       """)
       gumprss.close()                                 
       
  -    log.info("RSS Feed written" + rssFile);           
  +    log.info("RSS Newsfeed written" + rssFile);           
       
                
   
  
  
  

Re: rubix status

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
Sam wrote:

> Rubix has all prereqs installed (gump check runs clean) is doing builds,
> but for some reason isn't uploading them.  It also fails to produce rss
> as it can't seem to find gumpSafeName.  I'm trying to debug both problems.

On the RSS failure ... first, I didn't know traditional Gump produced RSS (I
read a comment in the Python code that said highly experimental and
incorrectly assumed, I guess) and second, I didn't know that the Python code
was used in traditional gump. That said, gumpSafeName looks like Python, so
I assume some change I made caused this...

I did *overwrite* the RSS generating Python module (because I didn't believe
it was used), so perhaps I need to restore it as a standalone tool. That
said, python gump/rss.py ought compile/run, even although only with test
data. As such, I don't know what you are running.

Sam, could you post the script you use on Rubix so I know what you do, so I
can attempt not to break things? If I need to restore/separate a module I
will.

regards

Adam


RE: rubix status

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Sam,

Any luck?

Thanks
-Vincent

> -----Original Message-----
> From: Sam Ruby [mailto:rubys@apache.org]
> Sent: 15 September 2003 14:26
> To: Gump code and data
> Subject: rubix status
> 
> Rubix has all prereqs installed (gump check runs clean) is doing
builds,
> but for some reason isn't uploading them.  It also fails to produce
rss
> as it can't seem to find gumpSafeName.  I'm trying to debug both
problems.
> 
> - Sam Ruby
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gump-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: gump-help@jakarta.apache.org



RE: rubix status

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Sam,

Any luck?

Thanks
-Vincent

> -----Original Message-----
> From: Sam Ruby [mailto:rubys@apache.org]
> Sent: 15 September 2003 14:26
> To: Gump code and data
> Subject: rubix status
> 
> Rubix has all prereqs installed (gump check runs clean) is doing
builds,
> but for some reason isn't uploading them.  It also fails to produce
rss
> as it can't seem to find gumpSafeName.  I'm trying to debug both
problems.
> 
> - Sam Ruby
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gump-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: gump-help@jakarta.apache.org



rubix status

Posted by Sam Ruby <ru...@apache.org>.
Rubix has all prereqs installed (gump check runs clean) is doing builds, 
but for some reason isn't uploading them.  It also fails to produce rss 
as it can't seem to find gumpSafeName.  I'm trying to debug both problems.

- Sam Ruby