gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump document.py
Date Wed, 24 Sep 2003 22:40:23 GMT
ajack       2003/09/24 15:40:23

  Modified:    python/gump document.py
  Log:
  Replace space w/ underscore in generated state/reason icon name.
  
  Revision  Changes    Path
  1.33      +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.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- document.py	24 Sep 2003 22:35:35 -0000	1.32
  +++ document.py	24 Sep 2003 22:40:23 -0000	1.33
  @@ -67,7 +67,7 @@
   import os
   import sys
   import logging
  -from string import lower
  +from string import lower,replace
   from xml.sax.saxutils import escape
   
   from gump import log, gumpSafeName
  @@ -976,7 +976,7 @@
           uniqueName+='_'+rstring
       
       # Build the URL
  -    iconName=gumpSafeName(lower(uniqueName))
  +    iconName=gumpSafeName(lower(replace(uniqueName,' ','_'))
       url = getUp(depth)+"resources/icons/"+iconName+".png";
       
       # Build the <icon xdoc
  
  
  

Mime
View raw message