/usr/lib/python2.6/site-packages/openstackclient/api
NameSizeModeActions
api.py99690644editdlrm
api.pyc95710644editdlrm
auth.py88550644editdlrm
auth.pyc64350644editdlrm
auth_plugin.py37330644editdlrm
auth_plugin.pyc38670644editdlrm
image_v1.py26450644editdlrm
image_v1.pyc26130644editdlrm
image_v2.py22980644editdlrm
image_v2.pyc20950644editdlrm
network_v2.py17360644editdlrm
network_v2.pyc19290644editdlrm
object_store_v1.py111760644editdlrm
object_store_v1.pyc97020644editdlrm
utils.py31240644editdlrm
utils.pyc20540644editdlrm
__init__.py00644editdlrm
__init__.pyc1630644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/api/utils.pyc (2054B)
Ñò ;vVc@sdZddddd„ZdS(sAPI Utilities LibrarycCsö| p| p |djo|SxÍt|ƒD]¿}||jo||}n_|oQ||joDt||ƒtjo-|||jo|||}q®d}nd}| p ||jo+y|i|ƒWqîtj oqîXq/q/W|S(sÓFilter a list of dicts :param list data: The list to be filtered. The list is modified in-place and will be changed if any filtering occurs. :param string attr: The name of the attribute to filter. If attr does not exist no match will succeed and no rows will be retrurned. If attr is None no filtering will be performed and all rows will be returned. :param sring value: The value to filter. None is considered to be a 'no filter' value. '' matches agains a Python empty string. :param string property_field: The name of the data field containing a property dict to filter. If property_field is None, attr is a field name. If property_field is not None, attr is a property key name inside the named property field. :returns: Returns the filtered list :rtype list: This simple filter (one attribute, one exact-match value) searches a list of dicts to select items. It first searches the item dict for a matching ``attr`` then does an exact-match on the ``value``. If ``property_field`` is given, it will look inside that field (if it exists and is a dict) for a matching ``value``. N(tNonetreversedttypetdicttremovet ValueError(tdatatattrtvaluetproperty_fieldtdt search_value((sI/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/utils.pyt simple_filters$$    N(t__doc__RR (((sI/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/utils.pyts