ajack       2003/09/25 10:38:28

  Modified:    python/gump document.py
  Log:
  Display the module URL in the module documentation, next to description.
  
  Allow Gump to asssit folks in "advertizing" their product, 
  and eventually have the stats show how many dependencies they have,
  etc .... i.e. stuff to be proud of.
  
  
  Revision  Changes    Path
  1.37      +8 -3      jakarta-gump/python/gump/document.py
  
  Index: document.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/document.py,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- document.py       25 Sep 2003 17:04:52 -0000      1.36
  +++ document.py       25 Sep 2003 17:38:27 -0000      1.37
  @@ -379,11 +379,15 @@
       x=startXDoc(getModuleDocument(workspace,modulename,mdir))
       headerXDoc(x,'Module : ' + modulename)
       
  -    if module.description:
  +    if module.description or module.url:
           startSectionXDoc(x,'Description')     
  -        paragraphXDoc(x,module.description)
  +        if module.description
  +            paragraphXDoc(x,module.description)
  +        if module.url
  +            paragraphXDoc(x,getLink(module.url))
           endSectionXDoc(x)
       
  +        
       documentAnnotations(x,modulecontext.annotations)
       
       startSectionXDoc(x,'Projects')
  @@ -990,7 +994,8 @@
           i += 1
       return url
              
  -def getLink(href,name):
  +def getLink(href,name=None):
  +    if not name: name = fref
       link='<link href=\'%s\'>%s</link>' % (href,name)
       return link
              
  
  
  

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

Reply via email to