ajack       2004/01/16 09:37:16

  Modified:    python/gump/syndication rss.py syndicator.py
  Log:
  Runtime bug in syndication code, called 'module' which was not a variable at that 
time.
  
  Revision  Changes    Path
  1.15      +2 -2      jakarta-gump/python/gump/syndication/rss.py
  
  Index: rss.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/syndication/rss.py,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- rss.py    9 Jan 2004 19:57:20 -0000       1.14
  +++ rss.py    16 Jan 2004 17:37:16 -0000      1.15
  @@ -310,7 +310,7 @@
           #
           #
           #
  -        item=Item(('%s %s %s') % 
(module.getName(),module.getStateDescription(),datestr), \
  +        item=Item(('%s %s') % (module.getName(),module.getStateDescription()), \
                     moduleUrl, \
                     content, \
                     module.getName(), \
  @@ -353,7 +353,7 @@
                           
           #
           #
  -        item=Item(('%s %s %s') % 
(project.getName(),project.getStateDescription(),datestr), \
  +        item=Item(('%s %s') % (project.getName(),project.getStateDescription()), \
                     projectUrl, \
                     content, \
                     project.getModule().getName() + ":" + project.getName(), \
  
  
  
  1.16      +5 -5      jakarta-gump/python/gump/syndication/syndicator.py
  
  Index: syndicator.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/syndication/syndicator.py,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- syndicator.py     15 Jan 2004 22:57:13 -0000      1.15
  +++ syndicator.py     16 Jan 2004 17:37:16 -0000      1.16
  @@ -109,12 +109,12 @@
       
           content += '</p>'
           
  -        if project.hasDescription or module.hasDescription():
  +        if project.hasDescription or project.getModule().hasDescription():
               content+='<p>'           
               if project.hasDescription(): 
                   content+=project.getDescription()
               else:
  -                content+=module.getDescription()
  +                content+=project.getModule().getDescription()
               content+='<p>'
               
           content += self.getSundries(project)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to