Changeset 2880 for pykota/trunk/pykota
- Timestamp:
- 05/04/06 09:30:47 (18 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r2804 r2880 250 250 def setDateLimit(self, datelimit) : 251 251 """Sets the date limit for this quota.""" 252 datelimit = DateTime.ISO.ParseDateTime(str(datelimit)) 252 253 date = "%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, datelimit.month, datelimit.day, datelimit.hour, datelimit.minute, datelimit.second) 253 254 self.parent.writeUserPQuotaDateLimit(self, date) … … 374 375 def setDateLimit(self, datelimit) : 375 376 """Sets the date limit for this quota.""" 377 datelimit = DateTime.ISO.ParseDateTime(str(datelimit)) 376 378 date = "%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, \ 377 379 datelimit.month, \ -
pykota/trunk/pykota/storages/ldapstorage.py
r2830 r2880 1144 1144 """Sets the date limit permanently for a user print quota.""" 1145 1145 fields = { 1146 "pykotaDateLimit" : datelimit,1146 "pykotaDateLimit" : str(datelimit), 1147 1147 } 1148 1148 return self.doModify(userpquota.ident, fields) … … 1151 1151 """Sets the date limit permanently for a group print quota.""" 1152 1152 fields = { 1153 "pykotaDateLimit" : datelimit,1153 "pykotaDateLimit" : str(datelimit), 1154 1154 } 1155 1155 return self.doModify(grouppquota.ident, fields)