Changeset 2880 for 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
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r2879 r2880  
    244244                                              (oddevenclass, \ 
    245245                                               "".join(["<td>%s</td>" % (h or "&nbsp;") \ 
    246                                                   for h in (job.JobDate[:19], \ 
     246                                                  for h in (str(job.JobDate[:19]), \ 
    247247                                                            _(job.JobAction), \ 
    248248                                                            username_url, \ 
  • pykota/trunk/NEWS

    r2877 r2880  
    2424    - 1.25alpha2 (2006-05-03) : 
    2525     
     26        - Fixed some problems with DateTime objects. 
     27         
    2628        - Added support for PySNMP v4.x in addition to 3.4.x. 
    2729         
  • 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)