@@ -56,7 +56,7 @@ def get_app(self, app_module_name, **kwargs):
5656 self ._bind_extensions ()
5757 #self._register_blueprints()
5858 self ._register_routes ()
59- # self._load_models()
59+ self ._load_models ()
6060 self ._load_views ()
6161 self ._register_context_processors ()
6262 self ._register_template_filters ()
@@ -153,7 +153,7 @@ def _register_blueprints(self):
153153 self ._bp = {}
154154 for blueprint_path in self .app .config .get ('BLUEPRINTS' , []):
155155 module , b_name = self ._get_imported_stuff_by_path (blueprint_path )
156- if hasattr (module , b_name ):
156+ if hasattr (module , b_name ):
157157 #self.app.register_blueprint(getattr(module, b_name))
158158 self ._bp [b_name ] = getattr (module ,b_name )
159159 if self .app .config .get ('VERBOSE' ,False ):
@@ -162,16 +162,16 @@ def _register_blueprints(self):
162162 raise NoBlueprintException ('No {bp_name} blueprint found' .format (bp_name = b_name ))
163163
164164 def _register_routes (self ):
165- if AppFactory ._routes_registered is None :
165+ if AppFactory ._routes_registered is None :
166166 AppFactory ._routes_registered = True
167167 if self .app .config .get ('VERBOSE' ,False ):
168168 print 'starting routing'
169169 for url_module in self .app .config .get ('URL_MODULES' ,[]):
170- if self .app .config .get ('VERBOSE' ,False ):
170+ if self .app .config .get ('VERBOSE' ,False ):
171171 pass
172172 module ,r_name = self ._get_imported_stuff_by_path (url_module )
173173 if self .app .config .get ('VERBOSE' ,False ):
174- pass
174+ pass
175175 if r_name == 'routes' and hasattr (module ,r_name ):
176176 if self .app .config .get ('VERBOSE' ,False ):
177177 print '\t setting up routing for {} with\n \t route module {}\n ' .format (module .__package__ ,module .__name__ )
@@ -182,7 +182,7 @@ def _register_routes(self):
182182 print 'Finished registering blueprints and url routes'
183183 else :
184184 if self .app .config .get ('VERBOSE' ,False ):
185- print 'skipped'
185+ print 'skipped'
186186
187187 def _check_for_registered_blueprint (self , bp ):
188188 found = False
0 commit comments