ooici/coi-services — pull request #316 by lukecampbell (2012-10-19 15:21:57+00:00)
Title: Parameter Dictionary Changes

# Parameter Dictionary Changes #

- Most of this pull request has to do with shifting everyone's usage of the old `get_param_dict` to use the `DatasetManagementService` framework in place.

- The next change is that parameter dictionaries defined in `res/config/param_dict_defs.yml` will elect a temporal domain parameter by appending a `*` to the end of a the parameter name.

## How to create a proper data product ##

```python

from ion.services.dm.utility.granule_utils import time_series_domain

pdict_id self.dataset_management.read_parameter_dictionary_by_name('ctd_parsed_param_dict', id_only=True)
stream_def_id = self.pubsub_management.create_stream_definition('ctd stream def', parameter_dictionary_id=pdict_id)

tdom, sdom = time_series_domain()

dp_obj = DataProduct(name='ctd data product1', temporal_domain=tdom.dump(), spatial_domain=sdom.dump())

dp_obj_id = self.data_product_management.create_data_product(dp_obj, stream_def_id)
```