I try to use CRUD. Below my code sample.
if request.args(1) == None:
    form=crud.create(db[request.args(0)])
else:
    form=crud.update(db[request.args(0)],request.args(1))

return dict(form=form)


I whant to test my code, but everytime I get next:

Failed example:
    try:
        edit()
    except HTTP, http: print http.headers
Expected nothing
Got:
    {'Location': '/lyc/default/user/login?_next=/lyc/default/index/
news/None'}

I understand I need to set flag which says that I've already
authorised. But I don't know where I need do it.

Reply via email to