fiorix/cyclone — pull request #46 by olibook (2012-02-20 16:09:15+00:00)
Title: websocket handler regression on self._transforms

web socket connections fails with an 'Unhandled Error'

File "/Library/Python/2.7/site-packages/cyclone-1.0_rc4-py2.7.egg/cyclone/web.py", line 578, in flush
for transform in self._transforms:
exceptions.TypeError: 'NoneType' object is not iterable

RequestHandler constructor says

self._transforms = None # will be set in _execute

WebSocketHandler _execute method don't set the self._transforms variable.

proposed fix is to set the self._transform ivar in the WebSocketHandler's _execute method