Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
None
-
None
-
None
Description
dir() does not show property or statistic members on QMF objects. These members are made available using a custom _getattr, but there is no corresponding __dir_().
Hence, they can be used in the API:
>>> q[0].name
u'reply-localhost.localdomain.3389.1'
>>> q[0].bindingCountHigh
2
>>> q[0].consumerCount
1
>>> q[0].autoDelete
True
But they are not reported by dir():
>>> dir (q[0])
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_agent', '_broker', '_createTime', '_currentTime', '_deleteTime', '_encodeUnmanaged', '_invoke', '_objectId', '_parsePresenceMasks', '_properties', '_schema', '_sendMethodRequest', '_session', '_statistics', 'getAgent', 'getBroker', 'getClassKey', 'getIndex', 'getMethods', 'getObjectId', 'getProperties', 'getSchema', 'getStatistics', 'getTimestamps', 'getV2RoutingKey', 'isDeleted', 'isManaged', 'mergeUpdate', 'update', 'v2Init']