summaryrefslogtreecommitdiffstats
path: root/command_context.py
Commit message (Collapse)AuthorAgeFilesLines
* Mass change: import logging -> from logging import getLoggerJan Pokorný2015-01-091-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: make filter failback up to "root" contextJan Pokorný2014-10-081-1/+1
| | | | | | | | ...during item lookup. This is necessary so that 'system' and 'system_extra' do not require special treatment (copying to intermediate lookup level shared amongst filters). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: attribute access first tries wrapped dict accessJan Pokorný2014-10-081-4/+9
| | | | | | | | ...this is so as to make started interpolation-in-file-specs a bit more aesthetic (dot-access instead of index access that is less neat in that string formatting context) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Solve a "read-only dict as API" question once foreverJan Pokorný2014-09-041-92/+25
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: prevent unexpected tainting of mutablesJan Pokorný2014-06-171-2/+48
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: teach CommandContextBase to `repr` itselfJan Pokorný2014-06-171-0/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: restore common dict semantics + allow "bypass"Jan Pokorný2014-06-171-14/+38
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: avoid early-closure trap, defer to ad-hocJan Pokorný2014-05-221-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Relicence GPLv2 -> GPLv2+Jan Pokorný2014-04-251-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: introduce filters-global keyword-based configJan Pokorný2014-04-031-14/+27
| | | | | | It's up to command implementer to keep possible collisions away. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: fix discovered issues in the proxyingJan Pokorný2014-02-131-2/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: s/add_filter/ensure_filter (now also returns)Jan Pokorný2014-02-131-8/+11
| | | | | | (similar semantics to dict.setdefault) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/command context: filters get passed their portion + no selfJan Pokorný2014-02-111-3/+73
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Move base exceptions and exit codes to separate error.pyJan Pokorný2014-01-271-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters: introduce command context (e.g., previous tasks inspection)Jan Pokorný2014-01-171-0/+21
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>