qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Robie (JIRA)" <j...@apache.org>
Subject [jira] Created: (QPID-2990) dir() does not show property or statistic members on QMF objects
Date Wed, 05 Jan 2011 17:02:46 GMT
dir() does not show property or statistic members on QMF objects
----------------------------------------------------------------

                 Key: QPID-2990
                 URL: https://issues.apache.org/jira/browse/QPID-2990
             Project: Qpid
          Issue Type: Bug
          Components: Qpid Managment Framework
            Reporter: Jonathan Robie


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']


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message