@@ -1486,6 +1486,22 @@ def __add__(self, other):
1486
1486
)
1487
1487
return CombinedNamedObject ([self , other ])
1488
1488
1489
+ def list (self ):
1490
+ """Print the object names."""
1491
+ return self ._root .list (object_path = self .path )
1492
+
1493
+ def list_properties (self , object_name ):
1494
+ """Print the properties of the given object name.
1495
+
1496
+ Parameters
1497
+ ----------
1498
+ object_name : str
1499
+ Name of the object whose properties are to be listed.
1500
+ """
1501
+ return self ._root .list_properties (
1502
+ object_path = self .path , object_name = object_name
1503
+ )
1504
+
1489
1505
1490
1506
class CombinedNamedObject :
1491
1507
"""A ``CombinedNamedObject`` contains the concatenated named-objects."""
@@ -2218,6 +2234,11 @@ def _process_cls_names(info_dict, names, write_doc=False):
2218
2234
commands .pop ("exit" , None )
2219
2235
if commands and not user_creatable :
2220
2236
commands .pop ("create" , None )
2237
+ # Temporary code for testing
2238
+ if commands and parent is not None and version == "261" :
2239
+ for cmd in ["list" , "list-properties" ]:
2240
+ if cmd in commands :
2241
+ commands .pop (cmd , None )
2221
2242
if commands :
2222
2243
cls .command_names = []
2223
2244
_process_cls_names (commands , cls .command_names )
0 commit comments