Changeset 2880 for pykota/trunk/pykota

Show
Ignore:
Timestamp:
05/04/06 09:30:47 (18 years ago)
Author:
jerome
Message:

Double checked that all DateTime? objects are correctly handled in
all cases.

Location:
pykota/trunk/pykota
Files:
2 modified

Legend:

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

    r2804 r2880  
    250250    def setDateLimit(self, datelimit) :     
    251251        """Sets the date limit for this quota.""" 
     252        datelimit = DateTime.ISO.ParseDateTime(str(datelimit)) 
    252253        date = "%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, datelimit.month, datelimit.day, datelimit.hour, datelimit.minute, datelimit.second) 
    253254        self.parent.writeUserPQuotaDateLimit(self, date) 
     
    374375    def setDateLimit(self, datelimit) :     
    375376        """Sets the date limit for this quota.""" 
     377        datelimit = DateTime.ISO.ParseDateTime(str(datelimit)) 
    376378        date = "%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, \ 
    377379                                                  datelimit.month, \ 
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2830 r2880  
    11441144        """Sets the date limit permanently for a user print quota.""" 
    11451145        fields = { 
    1146                    "pykotaDateLimit" : datelimit, 
     1146                   "pykotaDateLimit" : str(datelimit), 
    11471147                 } 
    11481148        return self.doModify(userpquota.ident, fields) 
     
    11511151        """Sets the date limit permanently for a group print quota.""" 
    11521152        fields = { 
    1153                    "pykotaDateLimit" : datelimit, 
     1153                   "pykotaDateLimit" : str(datelimit), 
    11541154                 } 
    11551155        return self.doModify(grouppquota.ident, fields)