Changeset 3030

Show
Ignore:
Timestamp:
10/10/06 21:21:22 (18 years ago)
Author:
jerome
Message:

Now accepts uppercase for filter keys.
The CGI now contains an example of a date filter.

Location:
pykota/trunk
Files:
3 modified

Legend:

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

    r2909 r3030  
    137137    def htmlFilterInput(self, value="") :     
    138138        """Input the optional dump filter.""" 
    139         return _("Filter") + (' : <input type="text" name="filter" size="40" value="%s" /> <em>e.g. <strong>username=jerome printername=HP2100</strong></em>' % (value or "")) 
     139        return _("Filter") + (' : <input type="text" name="filter" size="40" value="%s" /> <em>e.g. <strong>username=jerome printername=HP2100 start=today-30</strong></em>' % (value or "")) 
    140140         
    141141    def htmlSumCheckbox(self, checked="") :     
  • pykota/trunk/NEWS

    r3025 r3030  
    2424    - 1.25alpha13 (2006-10-04) : 
    2525      
     26        - The filter keys in dumpykota can now be specified in 
     27          lower or upper case. 
     28           
    2629        - Introduced the 'noprintingmaxdelay' directive to workaround 
    2730          some buggy printers when hardware accounting is used. 
  • pykota/trunk/pykota/dumper.py

    r2879 r3030  
    9090                    try : 
    9191                        (filterkey, filtervalue) = [part.strip() for part in filterexp.split("=")] 
     92                        filterkey = filterkey.lower() 
    9293                        if filterkey not in self.validfilterkeys : 
    9394                            raise ValueError