Changeset 2010 for pykota/trunk

Show
Ignore:
Timestamp:
01/07/05 13:40:53 (20 years ago)
Author:
jalet
Message:

Fixed field type's name in XML dumps.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/dumpykota

    r1991 r2010  
    2424# 
    2525# $Log$ 
     26# Revision 1.18  2005/01/07 12:40:53  jalet 
     27# Fixed field type's name in XML dumps. 
     28# 
    2629# Revision 1.17  2004/12/21 15:50:00  jalet 
    2730# The dumpykota command now supports extended filtering capabilities with 
     
    294297            for i in range(len(entry)) : 
    295298                value = str(entry[i]) 
     299                typval = type(entry[i]).__name__ 
    296300                try : 
    297301                    value = unicode(value, self.getCharset()).encode("UTF-8") 
    298302                except UnicodeError :     
    299303                    pass 
    300                 x.attribute(value, type=type(value).__name__, name=headers[i]) 
     304                x.attribute(value, type=typval, name=headers[i]) 
    301305            x._pop()     
    302306        x._output(self.outfile) 
  • pykota/trunk/NEWS

    r2006 r2010  
    2424    - 1.21alpha17 : 
    2525      
     26        - Fixed field type's name in XML dumps. 
     27         
    2628        - Now drops priviledges to user 'pykota' when launched as root 
    2729          (directly or as a CUPS backend), if such an user exists.