graphite-project/graphite-web — pull request #315 by SEJeff (2013-05-02 05:38:58+00:00)
Title: Fix missing defaults in graph templates intelligently

This fixes #314. This makes it so that the defaultGraphOptions are
always set as the default when a graphTemplates.conf exists and any
fields that the specific config overrides will trump the defaults.

It also updates the default profile in graphTemplates.conf to not
be missing keys. The lineColors were taken directly from glyph.py

This also prevents a LOT of this type of mess a few lines down:
defaults.get('foo', defaultGraphOptions['foo'))