SAAVY / magpie

http://projectmagpie.github.io
MIT License
7 stars 0 forks source link

Factory implementation for large if statement #68

Closed AliceYuan closed 8 years ago

AliceYuan commented 9 years ago

create_metadata_object in api_handler.py if statement is becoming larger and larger.

Ideally we would like to separate out the code such that the developer knows exactly where to go to extend the codebase. Consider a factory implementation to solve this issue