Module Expr Str Assign NameStore Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr UnaryOpNot NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd NameLoad CompareIsNot Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpSub NameLoad Num If CompareLtE NameLoad Num body Raise Call NameLoad Str If CompareIn Call NameLoad NameLoad ListLoad NameLoad NameLoad body For NameStore NameLoad body Assign NameStore NameLoad If CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call NameLoad NameLoad If CompareIs Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad orelse If CompareIs Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad NameLoad orelse If CompareIs Call NameLoad NameLoad Call NameLoad NameLoad body Return orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list
N/A N/A Tools to allow the verification of the YAML configuration for Definate. N/A __author__ msu@google.com (Martin Suess) Error N/A Exception N/A N/A Base error class. N/A DefinateConfigError N/A Error N/A N/A Exception to use when Definate fails reading the configuration. N/A YamlValidator N/A object N/A N/A Class to verify the sanity of a YAML configuration. CheckConfigurationItem N/A N/A self dictionary item typ N/A None N/A N/A Checks for the presence of an item in a dictionary.

    Args:
      dictionary: Configuration part that should be checked.
      item: Name of the key to check as string.
      typ: Type of the value to check. Default is to not check the type.

    Raises:
      DefinateConfigError: The configuration is not sane.
     N/A N/A N/A dictionary N/A item dictionary N/A N/A N/A DefinateConfigError N/A "%s" is not defined in config: %s N/A item dictionary N/A N/A typ N/A N/A type N/A dictionary N/A item typ N/A N/A N/A DefinateConfigError N/A Type of "%s" is %s, expected %s. N/A item N/A str N/A type N/A dictionary N/A item N/A str typ N/A CheckConfiguration N/A N/A self config structure max_recursion_depth N/A 30 N/A N/A Recursively checks the sanity and structure of the configuration.

    This method checks the sanity of the configuration structure for Definate
    and raises a DefinateConfigError if the configuration is not sane.

    Args:
      config: Dictionary generated from the YAML configuration file which should
        be checked.
      structure: Structure of the configuration against which should be checked.
      max_recursion_depth: Defines the maximum amount of recursion cycles before
        checking is aborted. Default is 30.

    Raises:
      DefinateConfigError: The configuration is not sane.
     N/A max_depth N/A max_recursion_depth 1 N/A N/A max_depth 0 N/A N/A N/A DefinateConfigError Maximum recursion depth reached. Please check configuration manually. N/A N/A N/A type structure N/A dict list N/A N/A item structure N/A N/A value item N/A N/A N/A type structure dict N/A N/A value N/A structure N/A item N/A N/A N/A self CheckConfigurationItem config item typ N/A type value N/A N/A N/A type value dict N/A N/A N/A N/A self CheckConfiguration N/A config N/A item value max_depth N/A N/A N/A N/A type value list N/A N/A N/A i list_value N/A enumerate value N/A N/A N/A N/A self CheckConfiguration N/A N/A config N/A item N/A i list_value max_depth N/A N/A N/A N/A type structure N/A type config N/A N/A N/A N/A N/A DefinateConfigError N/A Type of "%s" is %s, expected %s. N/A config N/A str N/A type config N/A str structure N/A N/A