netcmd: models: Add a repr method to Query for help in the shell
authorRob van der Linde <rob@catalyst.net.nz>
Tue, 27 Feb 2024 01:09:32 +0000 (14:09 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 04:45:36 +0000 (04:45 +0000)
commit7a4dc035210eea3fd890f3688c23303af234ac59
treee299ead85864682a0aa1cba595baa6293dfe9a27
parent3d3670790811600a06348ce48abce4e7f05c444c
netcmd: models: Add a repr method to Query for help in the shell

This means in the shell you can just do User.query(samdb) without having to wrap it in list() all the time.

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/domain/models/query.py