Changeset 1762 for pykota/trunk
- Timestamp:
- 10/02/04 15:33:13 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r1761 r1762 22 22 # 23 23 # $Log$ 24 # Revision 1.49 2004/10/02 13:33:13 jalet 25 # Some work done of user's charset handling in database dumps. 26 # 24 27 # Revision 1.48 2004/10/02 05:48:56 jalet 25 28 # Should now correctly deal with charsets both when storing into databases and when … … 78 81 # 79 82 83 from types import StringType 80 84 from pykota.storage import PyKotaStorageError,BaseStorage,StorageObject,StorageUser,StorageGroup,StoragePrinter,StorageJob,StorageLastJob,StorageUserPQuota,StorageGroupPQuota 81 85 … … 86 90 entries = [result.listfields()] 87 91 entries.extend(result.getresult()) 92 #nbfields = len(entries[0]) 93 #for i in range(1, len(entries)) : 94 # fields = list(entries[i]) 95 # for j in range(nbfields) : 96 # field = fields[j] 97 # if type(field) == StringType : 98 # try : 99 # fields[j] = field.decode("UTF-8").encode(self.tool.getCharset()) 100 # except UnicodeEncodeError : # takes care of old jobs in history not stored as UTF-8 101 # pass 102 # entries[i] = tuple(fields) 88 103 return entries 89 104