Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.

This commit is contained in:
Armin Ronacher 2011-06-16 23:55:49 +02:00
parent 59a92ebd71
commit abe1378cae
6 changed files with 50 additions and 54 deletions

View file

@ -56,9 +56,9 @@ class Blueprint(_PackageBoundObject):
_got_registered_once = False
def __init__(self, name, import_name, static_folder=None,
static_url_path=None, url_prefix=None,
subdomain=None):
_PackageBoundObject.__init__(self, import_name)
static_url_path=None, template_folder=None,
url_prefix=None, subdomain=None):
_PackageBoundObject.__init__(self, import_name, template_folder)
self.name = name
self.url_prefix = url_prefix
self.subdomain = subdomain