Skip to content

Commit

Permalink
Add self.options so options can be retrived from within the blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
gillestasse committed Sep 11, 2013
1 parent 5d20501 commit 71c3a26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,11 @@ def register_blueprint(self, blueprint, **options):
.. 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 ' \
Expand Down

0 comments on commit 71c3a26

Please sign in to comment.