Allow name to be specified as the first parameter but with an explict name.

This commit is contained in:
Armin Ronacher 2011-06-06 10:10:10 +02:00
parent c9cd6084c2
commit b4ffa4d9ac
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@ from flask import Flask, Module
mod = Module(__name__)
mod2 = Module(__name__, 'testmod2')
mod3 = Module(__name__, name='somemod', subdomain='meh')
app = Flask(__name__)
app.register_module(mod)