Changes between Version 14 and Version 15 of BluePrintRESTImplementation


Ignore:
Timestamp:
01/01/09 05:30:38 (16 years ago)
Author:
Fran Boon
Comment:

Make display/id redirect to /id (DRY)

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintRESTImplementation

    v14 v15  
    4141                    t2.redirect('login',vars={'_destination':'shelter/create'})
    4242            elif method=="display":
    43                 item=t2.display(table)
    44                 response.view='display.html'
    45                 title=T('Shelter Details')
    46                 edit=A(T("Edit"),_href=t2.action('shelter',['update',t2.id]))
    47                 list=A(T("List Shelters"),_href=t2.action('shelter'))
    48                 return dict(module_name=module_name,modules=modules,options=options,item=item,title=title,edit=edit,list=list)
     43                t2.redirect('shelter',args=t2.id)
    4944            elif method=="update":
    5045                if t2.logged_in: