Package mobi :: Package mtld :: Package da :: Module properties :: Class Properties
[frames] | no frames]

Class Properties

object --+    
         |    
      dict --+
             |
            Properties

Dictionary of string property names to Property objects. An instance of this class is returned for every get_properties() lookup that properties were found for.


Copyright: Copyright (c) Afilias Technologies Limited 2021. All Rights Reserved.

Author: Afilias Technologies Limited

Instance Methods
 
contains(self, property_name, value_to_check)
Check if a property has a specific value.
None, Object
get(self, property_name)
Get the value of the given property identified by its name.

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables

Inherited from dict: __hash__

Properties

Inherited from object: __class__

Method Details

contains(self, property_name, value_to_check)

 

Check if a property has a specific value. Returns False if the property name is invalid or the property does not exist or the value to check is invalid.

Parameters:
  • property_name - The property to check its value.
  • value_to_check - The value to be checked against property's value.
Returns:
True, if a value to check matches the property's value; False, otherwise.

get(self, property_name)

 

Get the value of the given property identified by its name.

Parameters:
  • property_name - The property to get its value.
Returns: None, Object
The property value or None if the property does not exist.
Overrides: dict.get