Changes between Version 22 and Version 23 of BluePrintREST
- Timestamp:
- 12/31/08 19:14:09 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintREST
v22 v23 35 35 /sahana/gis/feature/id?method=delete 36 36 }}} 37 NB T3 requires ID to be the last argument, so don't want URLs like: /id/create 37 38 38 However, is there much benefit in this?[[BR]] 39 There are benefits: 40 * Simplified ability to create .represent widgets: 41 {{{ 42 def shn_list_item(table,action,display='table.name',extra=None): 43 if extra: 44 items=DIV(TR(TD(A(eval(display),_href=t2.action(action,table.id))),TD(extra))) 45 else: 46 items=DIV(A(eval(display),_href=t2.action(action,table.id))) 47 return DIV(*items) 48 }}} 49 39 50 There are downsides: 40 * We need to be authenticated for all actions (unless we patch T2) 41 * Controller functions are less readable, with more levels of indent. 42 NB T3 requires ID to be the last argument, so don't want URLs like: /id/create 51 * Controller functions are more complex: 52 * Need lots of extra indentation 53 * if method=='': 54 * if t2.logged_in: 43 55 44 56 We want to extend this to export raw data in other formats, e.g. using the optional vars: