Changeset 3211 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
07/23/07 21:48:30 (17 years ago)
Author:
jerome
Message:

Added missing ordering field for CGI data dumper...

Files:
1 modified

Legend:

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

    r3170 r3211  
    137137        print self.htmlFilterInput(" ".join(self.arguments)) 
    138138        print "<br />" 
     139        print self.htmlOrderbyInput(self.options.get("orderby", "")) 
     140        print "<br />" 
    139141        print self.htmlSumCheckbox(self.options.get("sum", "")) 
    140142        print footer % (_("Dump"), version.__doc__, version.__years__, version.__author__, version.__gplblurb__) 
     
    165167        """Input the optional dump filter.""" 
    166168        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 "")) 
     169         
     170    def htmlOrderbyInput(self, value="") :     
     171        """Input the optional ordering.""" 
     172        return _("Ordering") + (' : <input type="text" name="orderby" size="40" value="%s" /> <em>e.g. <strong>+username,-printername</strong></em>' % (value or "")) 
    167173         
    168174    def htmlSumCheckbox(self, checked="") :     
     
    187193                    if self.form.has_key("sum") :     
    188194                        self.options["sum"] = self.form["sum"].value 
     195                    if self.form.has_key("orderby") :     
     196                        self.options["orderby"] = self.form["orderby"].value 
    189197                    # when no authentication is done, or when the remote username     
    190198                    # is 'root' (even if not run as root of course), then unrestricted