Changeset 3211 for pykota/trunk/cgi-bin
- Timestamp:
- 07/23/07 21:48:30 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/dumpykota.cgi
r3170 r3211 137 137 print self.htmlFilterInput(" ".join(self.arguments)) 138 138 print "<br />" 139 print self.htmlOrderbyInput(self.options.get("orderby", "")) 140 print "<br />" 139 141 print self.htmlSumCheckbox(self.options.get("sum", "")) 140 142 print footer % (_("Dump"), version.__doc__, version.__years__, version.__author__, version.__gplblurb__) … … 165 167 """Input the optional dump filter.""" 166 168 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 "")) 167 173 168 174 def htmlSumCheckbox(self, checked="") : … … 187 193 if self.form.has_key("sum") : 188 194 self.options["sum"] = self.form["sum"].value 195 if self.form.has_key("orderby") : 196 self.options["orderby"] = self.form["orderby"].value 189 197 # when no authentication is done, or when the remote username 190 198 # is 'root' (even if not run as root of course), then unrestricted