Changes between Version 8 and Version 9 of BluePrintRESTImplementation


Ignore:
Timestamp:
01/01/09 02:21:33 (14 years ago)
Author:
Fran Boon
Comment:

Now get back to where you were after login :)

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintRESTImplementation

    v8 v9  
    2828                    return dict(module_name=module_name,modules=modules,options=options,form=form,title=title,list=list)
    2929                else:
    30                     t2.redirect('login')
     30                    t2.redirect('login',vars={'_destination':'organisation/create'})
    3131            elif method=="display":
    3232                item=t2.display(table)
     
    4545                    return dict(module_name=module_name,modules=modules,options=options,form=form,title=title,list=list)
    4646                else:
    47                     t2.redirect('login')
     47                    t2.redirect('login',vars={'_destination':'organisation/update/%i' % t2.id})
    4848            elif method=="delete":
    4949                if t2.logged_in:
     
    5252                    return
    5353                else:
    54                     t2.redirect('login')
     54                    t2.redirect('login',vars={'_destination':'organisation/delete/%i' % t2.id})
    5555            else:
    5656                # Invalid!
     
    6464        subtitle=T('Organisations')
    6565        if t2.logged_in:
    66             form=t2.create(db.gis_feature)
     66            form=t2.create(table)
    6767            response.view='list_create.html'
    6868            return dict(module_name=module_name,modules=modules,options=options,list=list,form=form,title=title,subtitle=subtitle)