Logo Search packages:      
Sourcecode: zeitgeist version File versions

def zeitgeist::dbusutils::EventDict::check_dict (   cls,
  event_dict 
)

Method to check the type of the items in an event dict.

It automatically changes the type of all values to the expected on.
If a value is not given an item with a default value is added

Definition at line 145 of file dbusutils.py.

00145                                      :
            """ Method to check the type of the items in an event dict.
            
            It automatically changes the type of all values to the expected on.
            If a value is not given an item with a default value is added
            """
            return cls((key, type(event_dict.get(key, type()))) \
                                    for key, (type, required) \
                                    in EventDict._ITEM_TYPE_MAP.iteritems()
            )
            
      @classmethod
      def convert_result_to_dict(cls, result_tuple):


Generated by  Doxygen 1.6.0   Back to index