Show
Ignore:
Timestamp:
02/13/08 20:33:03 (4 years ago)
Author:
trivoallan
Message:

cleverbox :

  • documentation cleanup
  • started implementation of parameter checking method
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/trunk/cleverbox/model/__init__.py

    r211 r222  
    11# -*- coding: utf-8 -*- 
    22version = '0.5dev' 
     3 
     4def check_required_parameters(names, parameters): 
     5     
     6    for required_param in names: 
     7        # This will raise a KeyError if a parameter is missing 
     8        # TODO : it could be better to raise a more specific exception 
     9        parameters[required_param]