Changes between Version 47 and Version 48 of BluePrintREST
- Timestamp:
- 08/11/09 01:31:32 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintREST
v47 v48 13 13 * jquery.ajax supports username/password: http://docs.jquery.com/Ajax/jQuery.ajax#options 14 14 * Cross-domains using JSONP: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ 15 * RSS16 * {{{import gluon.contrib.rss2 as rss2}}} (see T3/controllers/default.py)17 15 * GeoRSS, KML, GPX, GML, WKT ([wiki:BluePrintGISImportExport BluePrintGISImportExport]) 18 16 * GeoJSON: http://trac.gispython.org/lab/wiki/GeoJSON 19 17 * RTF (native to Web2Py) 20 * PDF ([wiki:BluePrintGISPrinting BluePrintGISPrinting])21 22 We need to add support for [wiki:BluePrintAuthenticationAccess AAA] beyond just {{{t2.logged_in}}}:23 * {{{t2.have_membership()}}}24 * {{{t2.have_access()}}}25 18 26 19 Also can add extra methods to the controller, such as: … … 72 65 * Simplified ability to create .represent widgets: 73 66 {{{ 74 def shn_list_item(table, resource,action,display='table.name',extra=None):67 def shn_list_item(table, resource, action, display='table.name', extra=None): 75 68 if extra: 76 items =DIV(TR(TD(A(eval(display),_href=t2.action(resource,[action,table.id]))),TD(eval(extra))))69 items = DIV(TR(TD(A(eval(display), _href=t2.action(resource, [action, table.id]))), TD(eval(extra)))) 77 70 else: 78 items =DIV(A(eval(display),_href=t2.action(resource,[action,table.id])))71 items = DIV(A(eval(display), _href=t2.action(resource, [action, table.id]))) 79 72 return DIV(*items) 80 73 }}} … … 89 82 }}} 90 83 91 NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).[[BR]]84 NB Web2Py now supports HTTP PUT as well as GET/POST (DELETE also visible but testing with Auth giving issues).[[BR]] 92 85 This means a little work in clients but isn't too bad if we maintain consistency: no variations between add/create, view/display, edit/update, etc 93 86 … … 98 91 * http://www.wellbehavedsystems.co.uk/web2py/examples/rest_alt1.html 99 92 * http://groups.google.com/group/web2py/browse_thread/thread/b46ff6f35e82f047 100 * http://groups.google.com/group/web2py/browse_thread/thread/613d4ac6f87ad413/ 93 * http://groups.google.com/group/web2py/browse_thread/thread/613d4ac6f87ad413 94 * PUT implemented: http://groups.google.com/group/web2py/browse_thread/thread/4b1af88db82df261 101 95 102 96 === Web Services ===