/[gnue]/gnue-common/src/definitions/GObjects.py
ViewVC logotype

Diff of /gnue-common/src/definitions/GObjects.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.60 by jcater, Mon Jun 9 15:54:32 2003 UTC revision 1.61 by jcater, Thu Jul 10 23:15:26 2003 UTC
# Line 262  class GObj(GTriggerCore, ParserObj): Line 262  class GObj(GTriggerCore, ParserObj):
262            if type(val) == types.StringType:            if type(val) == types.StringType:
263              addl = ' %s="%s"' % (attribute.replace('__',':'), saxutils.escape('%s' % unicode(val,gConfig('textEncoding'))))              addl = ' %s="%s"' % (attribute.replace('__',':'), saxutils.escape('%s' % unicode(val,gConfig('textEncoding'))))
264            else:            else:
265                try:
266                  if val == int(val):
267                    val = int(val)
268                except:
269                  pass
270              addl = ' %s="%s"' % (attribute.replace('__',':'), saxutils.escape('%s' % val))              addl = ' %s="%s"' % (attribute.replace('__',':'), saxutils.escape('%s' % val))
271            if len(addl) + pos > 78:            if len(addl) + pos > 78:
272              xmlString += "\n" + " " * indent + addl              xmlString += "\n" + " " * indent + addl

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26