Return-Path: Mailing-List: contact gump-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list gump@jakarta.apache.org Received: (qmail 33416 invoked by uid 500); 25 Sep 2003 17:38:22 -0000 Received: (qmail 33391 invoked from network); 25 Sep 2003 17:38:22 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 25 Sep 2003 17:38:22 -0000 Received: (qmail 4309 invoked by uid 1728); 25 Sep 2003 17:38:28 -0000 Date: 25 Sep 2003 17:38:28 -0000 Message-ID: <20030925173828.4308.qmail@minotaur.apache.org> From: ajack@apache.org To: jakarta-gump-cvs@apache.org Subject: cvs commit: jakarta-gump/python/gump document.py X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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='%s' % (href,name) return link