Revision ac13568a lib/query.py
b/lib/query.py | ||
---|---|---|
2535 | 2535 |
"""Builds list of fields for network queries. |
2536 | 2536 |
|
2537 | 2537 |
""" |
2538 |
# Add simple fields |
|
2539 | 2538 |
fields = [ |
2539 |
(_MakeField("tags", "Tags", QFT_OTHER, "Tags"), IQ_CONFIG, 0, |
|
2540 |
lambda ctx, inst: list(inst.GetTags())), |
|
2541 |
] |
|
2542 |
|
|
2543 |
# Add simple fields |
|
2544 |
fields.extend([ |
|
2540 | 2545 |
(_MakeField(name, title, kind, doc), |
2541 | 2546 |
NETQ_CONFIG, 0, _GetItemAttr(name)) |
2542 | 2547 |
for (name, (title, kind, _, doc)) in _NETWORK_SIMPLE_FIELDS.items() |
Also available in: Unified diff