def add_model_for_resource(resource, model):
 _RESOURCE_TO_MODEL_MAP[resource] = model

def add_model_for_resource ( resource , model ) : _RESOURCE_TO_MODEL_MAP [ resource ] = model
adds a mapping between a callback resource and a db model .