ets-labs / python-domain-models

Domain models framework for Python projects
BSD 3-Clause "New" or "Revised" License
22 stars 4 forks source link

DomainModel.get() #22

Closed rmk135 closed 8 years ago

rmk135 commented 8 years ago

The idea is to implement model.get(field_name, default=None) method, that has similar behaviour as dict.get() method.

Note: if there is no field with such name, AttributeError exception should be raised.