Changeset 3533 for pykota

Show
Ignore:
Timestamp:
04/19/10 13:28:06 (14 years ago)
Author:
jerome
Message:

Fixes #61. References #56, #60.

Location:
pykota/trunk/pykota
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/dumper.py

    r3489 r3533  
    248248                    try : 
    249249                        strvalue = '"%s"' % value.encode(self.charset, \ 
    250                                                          "replace").replace(separator, "\\%s" % separator).replace('"', '\\"') 
     250                                                         "replace").replace(separator, 
     251                                                                            "\\%s" % separator).replace('"', '\\"') 
    251252                    except AttributeError : 
    252253                        if value is None : 
     
    331332                    # with older releases of PyKota. 
    332333                    # The XML dump will contain UTF-8 encoded strings, 
    333                     #not unicode strings anyway. 
     334                    # not unicode strings anyway. 
    334335                    x.attribute(strvalue, \ 
    335336                                type=type(value).__name__.replace("unicode", "str"), \ 
  • pykota/trunk/pykota/storages/sqlitestorage.py

    r3531 r3533  
    127127        if result : 
    128128            entries = [tuple([f[0] for f in self.cursor.description])] 
    129             for entry in result : 
    130                 row = [] 
    131                 for value in entry : 
    132                     try : 
    133                         value = value.encode("UTF-8") 
    134                     except : 
    135                         pass 
    136                     row.append(value) 
    137                 entries.append(tuple(row)) 
     129            entries.extend(result) 
    138130            return entries 
    139131 
  • pykota/trunk/pykota/version.py

    r3531 r3533  
    2424import time 
    2525 
    26 __version__ = "1.27alpha9_unofficial" 
     26__version__ = "1.27alpha10_unofficial" 
    2727 
    2828__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."