Changes between Version 47 and Version 48 of BluePrintREST


Ignore:
Timestamp:
08/11/09 01:31:32 (16 years ago)
Author:
Fran Boon
Comment:

Some updates to reflect current status

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintREST

    v47 v48  
    1313   * jquery.ajax supports username/password: http://docs.jquery.com/Ajax/jQuery.ajax#options
    1414   * Cross-domains using JSONP: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/
    15  * RSS
    16   * {{{import gluon.contrib.rss2 as rss2}}} (see T3/controllers/default.py)
    1715 * GeoRSS, KML, GPX, GML, WKT ([wiki:BluePrintGISImportExport BluePrintGISImportExport])
    1816 * GeoJSON: http://trac.gispython.org/lab/wiki/GeoJSON
    1917 * 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()}}}
    2518
    2619Also can add extra methods to the controller, such as:
     
    7265 * Simplified ability to create .represent widgets:
    7366{{{
    74 def shn_list_item(table,resource,action,display='table.name',extra=None):
     67def shn_list_item(table, resource, action, display='table.name', extra=None):
    7568    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))))
    7770    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])))
    7972    return DIV(*items)
    8073}}}
     
    8982}}}
    9083
    91 NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).[[BR]]
     84NB Web2Py now supports HTTP PUT as well as GET/POST (DELETE also visible but testing with Auth giving issues).[[BR]]
    9285This 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
    9386
     
    9891 * http://www.wellbehavedsystems.co.uk/web2py/examples/rest_alt1.html
    9992 * 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
    10195
    10296=== Web Services ===