- Timestamp:
- 09/18/05 00:19:35 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2459 r2460 34 34 import time 35 35 import md5 36 import base64 36 37 from mx import DateTime 37 38 … … 389 390 description = "" 390 391 else : 391 description = self.databaseToUserCharset( description)392 description = self.databaseToUserCharset(base64.decodestring(description)) 392 393 user.Payments.append((date, float(amount), description)) 393 394 user.Exists = 1 … … 976 977 for payment in user.Payments : 977 978 payments.append("%s # %s # %s" % (payment[0], str(payment[1]), payment[2])) 978 payments.append("%s # %s # %s" % (str(DateTime.now()), str(amount), self.userCharsetToDatabase(comment)))979 payments.append("%s # %s # %s" % (str(DateTime.now()), str(amount), base64.encodestring(self.userCharsetToDatabase(comment)).strip())) 979 980 fields = { 980 981 "pykotaPayments" : payments,