Logo Search packages:      
Sourcecode: zeitgeist version File versions

def zeitgeist::dbusutils::EventDict::check_missing_items (   event_dict  ) 

Method to check for required items.

In case one or more required items are missing a KeyError is raised,
otherwise an EventDict is returned

Definition at line 132 of file dbusutils.py.

00132                                          :
            """ Method to check for required items.
            
            In case one or more required items are missing a KeyError is raised,
            otherwise an EventDict is returned
            """
            missing = EventDict._REQUIRED_ITEMS - set(event_dict.keys())
            if missing:
                  raise KeyError(("Some keys are missing in order to add "
                        "this item properly: %s" % ", ".join(missing)))
            return EventDict.check_dict(event_dict)
      
      @classmethod
      def check_dict(cls, event_dict):


Generated by  Doxygen 1.6.0   Back to index