コード例 #1
0
ファイル: inventory.py プロジェクト: troelsarvin/checkmk
 def display(self, value: FilterHTTPVariables) -> None:
     html.text_input(self._varprefix + "name")
     html.br()
     display_filter_radiobuttons(
         varname=self._varprefix + "match",
         options=[
             ("exact", _("exact match")),
             ("regex", _("regular expression, substring match")),
         ],
         default="exact",
         value=value,
     )
     html.br()
     html.open_span(class_="min_max_row")
     html.write_text(_("Min. Version: "))
     html.text_input(
         self._varprefix + "version_from",
         default_value=value.get(self._varprefix + "version_from", ""),
         size=9,
     )
     html.write_text("   ")
     html.write_text(_("Max. Vers.: "))
     html.text_input(
         self._varprefix + "version_to",
         default_value=value.get(self._varprefix + "version_from", ""),
         size=9,
     )
     html.close_span()
     html.br()
     html.checkbox(
         self._varprefix + "negate",
         False,
         label=_("Negate: find hosts <b>not</b> having this package"),
     )
コード例 #2
0
 def display(self, value: FilterHTTPVariables) -> None:
     display_filter_radiobuttons(varname=self.ident,
                                 options=[
                                     ("no", _("used")),
                                     ("yes", _("free")),
                                     ("", _("(ignore)")),
                                 ],
                                 default="",
                                 value=value)
コード例 #3
0
 def display(self, value: FilterHTTPVariables) -> None:
     display_filter_radiobuttons(varname=self.ident,
                                 options=[
                                     ("1", _("up")),
                                     ("2", _("down")),
                                     ("-1", _("(ignore)")),
                                 ],
                                 default="-1",
                                 value=value)