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/11/05 21:29:57 UTC

cvs commit: jakarta-gump/python/gump xmlutils.py document.py

ajack       2003/11/05 12:29:57

  Modified:    template/forrest/src/documentation/content/xdocs site.xml
               python/gump xmlutils.py document.py
  Log:
  1) Allow Named XML entities (like Project) to __cmp__ via name
  2) Tweaked menu labels
  
  Revision  Changes    Path
  1.7       +2 -2      jakarta-gump/template/forrest/src/documentation/content/xdocs/site.xml
  
  Index: site.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/template/forrest/src/documentation/content/xdocs/site.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- site.xml	5 Nov 2003 19:09:22 -0000	1.6
  +++ site.xml	5 Nov 2003 20:29:57 -0000	1.7
  @@ -7,8 +7,8 @@
   <site label="Gump" href="" xmlns="http://apache.org/forrest/linkmap/1.0">
   
     <work label="Gump">
  -    <index label="Index" href="index.html"/>
  -    <index label="Log" href="buildLog.html"/>
  +    <index label="Workspace" href="index.html"/>
  +    <index label="Build Log" href="buildLog.html"/>
       <index label="Modules" href="modules.html"/>
       <index label="Module TODOs" href="module_todos.html"/>
       <index label="Projects" href="projects.html"/>
  
  
  
  1.6       +3 -0      jakarta-gump/python/gump/xmlutils.py
  
  Index: xmlutils.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/xmlutils.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- xmlutils.py	17 Oct 2003 18:33:12 -0000	1.5
  +++ xmlutils.py	5 Nov 2003 20:29:57 -0000	1.6
  @@ -225,6 +225,9 @@
         if name: cls.list[name]=element
       return element
   
  +    def __cmp__(self,other):
  +        return self.name < other.name
  +        
   class Single(object,GumpXMLObject):
     """Properties which are only ever expected to hold a single value."""
   
  
  
  
  1.109     +2 -2      jakarta-gump/python/gump/document.py
  
  Index: document.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/document.py,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- document.py	5 Nov 2003 19:09:22 -0000	1.108
  +++ document.py	5 Nov 2003 20:29:57 -0000	1.109
  @@ -344,7 +344,7 @@
       
       documentSummary(x,context.getProjectSummary())
       
  -    startSectionXDoc(x,'Project in Build Order')
  +    startSectionXDoc(x,'Projects (in Build Order)')
       startTableXDoc(x)
       x.write('     <tr>')        
       x.write('      <th>Name</th><th>Project State</th><th>Elapsed Time</th>')
  @@ -380,7 +380,7 @@
       
       documentSummary(x,context.getProjectSummary())
       
  -    startSectionXDoc(x,'Project in Build Order')
  +    startSectionXDoc(x,'Projects')
       startTableXDoc(x)
       x.write('     <tr>')        
       x.write('      <th>Name</th><th>Project State</th><th>Elapsed Time</th>')