- Timestamp:
- 04/19/10 13:28:06 (15 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/dumper.py
r3489 r3533 248 248 try : 249 249 strvalue = '"%s"' % value.encode(self.charset, \ 250 "replace").replace(separator, "\\%s" % separator).replace('"', '\\"') 250 "replace").replace(separator, 251 "\\%s" % separator).replace('"', '\\"') 251 252 except AttributeError : 252 253 if value is None : … … 331 332 # with older releases of PyKota. 332 333 # The XML dump will contain UTF-8 encoded strings, 333 # �not unicode strings anyway.334 # not unicode strings anyway. 334 335 x.attribute(strvalue, \ 335 336 type=type(value).__name__.replace("unicode", "str"), \ -
pykota/trunk/pykota/storages/sqlitestorage.py
r3531 r3533 127 127 if result : 128 128 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) 138 130 return entries 139 131 -
pykota/trunk/pykota/version.py
r3531 r3533 24 24 import time 25 25 26 __version__ = "1.27alpha 9_unofficial"26 __version__ = "1.27alpha10_unofficial" 27 27 28 28 __doc__ = "PyKota : a complete Printing Quota Solution for CUPS."