Now I get it. You can do that now. Here is how.
create an empty model called rest.py and write in it:
def REST(form,**attributes):
for name,value in attributes.items():
form.components.append(INPUT(_type="hidden",_name=name,_value=value))
return form
place it in any app that wants to do rest, no need to import anything.
Now write a test controller like the one below
def test():
form=FORM('your name:',INPUT(_name='name'),INPUT(_type='submit'))
form=REST(form,method='PUT')
if form.accepts(request.vars,session):
if form.vars.method=='PUT':
response.flash=' you jut did a REST PUT!'
return dict(form=form)
Not sure that there is anything else (protocol-wise) in rest other than software engineering.
voltron, if this solves your problem, would you be willing to write a mini-howto?
Massimo