Browse Source

Add self.options so options can be retrived from within the blueprint

pull/970/head
gillestasse 12 years ago
parent
commit
71c3a26dfe
  1. 5
      flask/app.py

5
flask/app.py

@ -878,6 +878,11 @@ class Flask(_PackageBoundObject):
.. versionadded:: 0.7
"""
first_registration = False
#Added by Gilles. Allows to pass options to a blue print
#And retrieve it within the blueprint
self.options_blueprints=options
if blueprint.name in self.blueprints:
assert self.blueprints[blueprint.name] is blueprint, \
'A blueprint\'s name collision occurred between %r and ' \

Loading…
Cancel
Save