zabgrab.model.answers¶
What the user answered at prompts during a fetch.
Used to show the equivalent command (“Next time: zabgrab fetch …”) and to save
the fetch as a template with --save-template.
Functions
|
Convert a setting's value to the form it takes in a config file. |
Classes
|
Answers given at prompts, in the form the command line or a template takes. |
- class zabgrab.model.answers.Answers(template=None, settings=<factory>, server=None, items=<factory>, all_items=False)[source]¶
Bases:
objectAnswers given at prompts, in the form the command line or a template takes.
- Parameters:
- settings¶
Settings by config key, e.g.
{"from": "24 hours ago", "format": ["mat"]}.- Type:
dict of str to Any
- items¶
Request label to the items chosen, replacing the request’s own.