Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30360
| Date | 2012-09-28 15:41 +1000 |
|---|---|
| Subject | REST code-golf: How concisely can you expose and consume services? |
| From | Alec Taylor <alec.taylor6@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1539.1348810894.27098.python-list@python.org> (permalink) |
web2py (7 lines): https://gist.github.com/3798093 Includes creation of models, validator, controllers and urls. Rules: - Must have [at least] the same functionality as my 7-line example - Imports are allowed and not taken into line count, on the condition that everything remains generic. I.e.: one can change model and controller names &etc without modifying imported libraries - Can't import/take the code from web2py (e.g.: https://github.com/web2py/web2py/blob/master/gluon/tools.py#L4098) (feel free to write them in reply to this email and/or as gist comments =]) Good luck!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
REST code-golf: How concisely can you expose and consume services? Alec Taylor <alec.taylor6@gmail.com> - 2012-09-28 15:41 +1000
csiph-web