{"action":"opened","issue":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/1315","labels_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1315/labels{/name}","comments_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1315/comments","events_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1315/events","html_url":"https://github.com/tornadoweb/tornado/issues/1315","id":55584516,"number":1315,"title":"Something error in namespace.update(self.ui)","user":{"login":"blackshirt","id":1082669,"avatar_url":"https://avatars.githubusercontent.com/u/1082669?v=3","gravatar_id":"","url":"https://api.github.com/users/blackshirt","html_url":"https://github.com/blackshirt","followers_url":"https://api.github.com/users/blackshirt/followers","following_url":"https://api.github.com/users/blackshirt/following{/other_user}","gists_url":"https://api.github.com/users/blackshirt/gists{/gist_id}","starred_url":"https://api.github.com/users/blackshirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackshirt/subscriptions","organizations_url":"https://api.github.com/users/blackshirt/orgs","repos_url":"https://api.github.com/users/blackshirt/repos","events_url":"https://api.github.com/users/blackshirt/events{/privacy}","received_events_url":"https://api.github.com/users/blackshirt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-27T07:25:55Z","updated_at":"2015-01-27T07:25:55Z","closed_at":null,"body":"i have some try with tornado, and render login.html page...even its works, but it printing some traceback on console ..\r\nhere the traceback: \r\n\r\n Traceback (most recent call last):\r\n      File \"C:\\Python34\\lib\\site-packages\\tornado\\web.py\", line 1332, in _execute\r\n        result = method(*self.path_args, **self.path_kwargs)\r\n      File \"C:\\Users\\black\\dompetku\\dompetku\\handler\\login.py\", line 37, in post\r\n        self.render('login.html', form=form)\r\n      File \"C:\\Python34\\lib\\site-packages\\tornado\\web.py\", line 665, in render\r\n        html = self.render_string(template_name, **kwargs)\r\n      File \"C:\\Python34\\lib\\site-packages\\tornado\\web.py\", line 770, in render_string\r\n        namespace = self.get_template_namespace()\r\n      File \"C:\\Python34\\lib\\site-packages\\tornado\\web.py\", line 793, in get_template_namespace\r\n        namespace.update(self.ui)\r\n    TypeError: 'NoneType' object is not iterable\r\n\r\n\r\nHere the login handler. Form was intances form from with wtforms-tornado\r\n\r\nclass LoginHandler(basehandler.BaseHandler):\r\n    \"\"\" Class untuk menghandle login process \"\"\"\r\n\r\n    def get(self):\r\n        form = LoginForm()\r\n        self.render('login.html', form=form)\r\n\r\n    def post(self):\r\n        \"\"\" Check login process \"\"\"\r\n        # username = self.get_argument(\"name\", \"\")\r\n        # password = self.get_argument(\"password\", \"\")\r\n        form = LoginForm(self.request.arguments)\r\n\r\n        if form.validate():\r\n            username = form.data['name']\r\n            password = form.data['password']\r\n            auth = self._authenticate(username, password)\r\n            if auth:\r\n                self.set_secure_cookie(\"user\", username)\r\n                self.redirect('/trans')\r\n            else:\r\n                self.clear_cookie('user')\r\n\r\n        self.render('login.html', form=form)\r\n\r\nwhats going wrong with traceback ?? i can't see any hint for this "}}