Commits

Kevin Chan committed c938c0a Merge

Merged with latest changes.

Comments (0)

Files changed (2)

minipy/application.py

         """
         # load web application global settings
         self._load_settings()
+
         # stuff parameters into attributes
         for k, v in kwargs.iteritems():
             if not k.startswith(u'_'):
                 setattr(self, k, v)
 
+        # initialize uri config
+        self._init_uriconf()
+
+        # initialize template engine
+        self._init_tengine()
+        
     def __call__(self, environ, start_response):
         """
         Construct environment and run app.
         """
         self.environ = environ
         self.start_response = start_response
-        self._init_tengine()
         self._init_request()
         self._init_response()
-        self.init_uriconf()
         return self.respond()
 
     def _add_path(self, *paths):
 
 setup(
     name = "minipy",
-    version = "0.3.0",
+    version = "0.3.2",
     packages = find_packages(),
     author = "Kevin Chan",
     author_email = "kefin@makedostudio.com",