These are my early thoughts on how to structure DataTable in 3.5.0. Feedback is welcome in the comments. Test
new Y.DataTable({...});
new Y.DataTable.Base({...});
| """ | |
| For Pylons 0.97, optionally with asplake's Routes fork with {.format} parameter support | |
| 1) fill_render(), a render() that encodes repeating groups properly | |
| 2) A refactored @validate with | |
| a) JSON support | |
| b) cleaned-up form_errors that render properly in the presence of repeating groups | |
| c) some possibility of extensibility | |
| 3) JSON-related helpers: sent_json(), accepts_json(), render_json() | |
| 4) formatted_url(), a url() that remembers any format extension on the request | |
| 5) BaseSchema, a formencode.Schema with sensible defaults |
| #!/usr/bin/python | |
| # Equivalent of "tail -f" as a webpage using websocket | |
| # Usage: webtail.py PORT FILENAME | |
| # Tested with tornado 2.1 | |
| # Thanks to Thomas Pelletier for it's great introduction to tornado+websocket | |
| # http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ | |
| import tornado.httpserver |
| @view_config(route_name='my-route') | |
| def my_view(request): | |
| # here i want to know if path-1 or path-2 was taken, preferably via a var n matchdict? | |
| if request.view_name = 'my-route2': | |
| # do extra work | |
| config.add_route('my-route', '/path-1/view') | |
| config.add_route('my-route2', '/path-2/view') |
I succesfully managed to setup a local development environment for Bookie in my Mac OSX machine and I'd like to share a few notes. The required changes are just small details and I guess it would be easy to edit the Makefile in order to make it work with Mac OSX, but actually I'm not an expert on it...
OS: Mac OSX 10.8.5
Xcode: 4.6.3