ajack 2004/01/19 14:41:14 Modified: python/gump/document forrest.py Log: Attempting to make the unit test workspace also a live one (for quick tests) Revision Changes Path 1.54 +19 -14 jakarta-gump/python/gump/document/forrest.py Index: forrest.py =================================================================== RCS file: /home/cvs/jakarta-gump/python/gump/document/forrest.py,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- forrest.py 16 Jan 2004 23:11:24 -0000 1.53 +++ forrest.py 19 Jan 2004 22:41:14 -0000 1.54 @@ -1660,17 +1660,22 @@ self.resolver.getFile(xref,'repo_module.xml')) repoMap=xref.getRepositoryToModuleMap() - for repo in createOrderedList(repoMap.keys()): - moduleList=createOrderedList(repoMap.get(repo)) - repoSection=document.createSection(repo.getName()) - self.insertLink( repo, xref, \ - repoSection.createParagraph('Repository Definition: ')) - - moduleRepoTable=repoSection.createTable(['Modules']) - for module in moduleList: - if not gumpSet.inModules(module): continue - moduleRepoRow=moduleRepoTable.createRow() - self.insertLink( module, xref, moduleRepoRow.createData()) + repoList=createOrderedList(repoMap.keys()) + if repoList: + for repo in repoList: + moduleList=createOrderedList(repoMap.get(repo)) + repoSection=document.createSection(repo.getName()) + self.insertLink( repo, xref, \ + repoSection.createParagraph('Repository Definition: ')) + + moduleRepoTable=repoSection.createTable(['Modules']) + for module in moduleList: + if not gumpSet.inModules(module): continue + moduleRepoRow=moduleRepoTable.createRow() + self.insertLink( module, xref, moduleRepoRow.createData()) + + else: + document.createParagraph('No repositories') document.serialize()
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]