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 2004/02/10 22:25:43 UTC

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

ajack       2004/02/10 13:25:43

  Modified:    python/gump/document xdoc.py
  Log:
  Hopefully removing an infinite loop...
  
  Revision  Changes    Path
  1.12      +7 -7      jakarta-gump/python/gump/document/xdoc.py
  
  Index: xdoc.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/document/xdoc.py,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- xdoc.py	10 Feb 2004 20:18:40 -0000	1.11
  +++ xdoc.py	10 Feb 2004 21:25:43 -0000	1.12
  @@ -180,10 +180,10 @@
           self.emptyOk=0        
           
       def __repr__(self):
  -        return str(self.__class__)
  +        return self.__class__.__name__
           
       def __str__(self):
  -        return str(self.__class__)
  +        return self.__class__.__name__
           
       def createSubContext(self,transient=0):
           #
  @@ -257,10 +257,10 @@
           self.title=title
           
       def __repr__(self):
  -        return str(self.__class__) + ':' + self.title
  +        return self.__class__.__name__ + ':' + self.title
           
       def __str__(self):
  -        return str(self.__class__) + ':' + self.title
  +        return self.__class__.__name__ + ':' + self.title
           
       def start(self):
           self.context.writeLineIndented('<section><title>%s</title>' % (self.title))