Hans,

> What version where you using before (please spicy svn or bazaar/launchpad) ?
I was using the sqlhtml file that came with the source code of web2py
version 1.65.0.

> Can you (perhpas) try what version is still working: see 
> eghttp://bazaar.launchpad.net/~mdipierro/web2py/devel/changes?filter_fi...
(bazaar launchpad) I checked all versions of the sqlhtml.py file from
1005 upward, version 1011  is the last one that works, version 1013
breaks the update function, as does version 1014.

> Can you show some simple code that we can use to reproduce this?
I wanted to update a record using the web2py's admin when I discovered
that the update function no longer works, my own update functions
call
the update function:

@auth.requires_membership('tier2_manager')
def update_openinghour():
    response.view='tier1/update.html'
    db.openingstijd.bedrijf.writable=False
    record=db.openingstijd[request.args[0]]
    if not record or not record.bedrijf==auth.user.bedrijf:
        redirect(URL(r=request,f='crud_openinghour'))
    form=update_form(db.openingstijd,record,'crud_openinghour')
    return dict(form=form)
def update_form(table,rec,nxt):
    form=crud.update(table,rec,next=(URL(r=request,f=nxt)))
    form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick='javascript:history.go
(-1)'))
    return form


Kind regards,

Annet.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to