When you upgrade, you also have to upgrade the web2py.js file (and possibly 
the web2py_ajax.html and appadmin files as well). Those files are in the 
app folder but are part of the framework.

Anthony

On Saturday, November 23, 2013 1:07:00 AM UTC-5, James Burke wrote:
>
> Hi,
>
> I've just upgraded to the latest release of web2py 
> 2.7.4-stable+timestamp.2013.10.14.15.16.29  . 
>
> Using a modified version of the Manage Users and Members slice found here:
>
> http://www.web2pyslices.com/slice/show/1542/manage-users-and-memebership-in-the-same-form<http://www.google.com/url?q=http%3A%2F%2Fwww.web2pyslices.com%2Fslice%2Fshow%2F1542%2Fmanage-users-and-memebership-in-the-same-form&sa=D&sntz=1&usg=AFQjCNGzjz_qlfp6MGCzcSa_jVKNiWprrQ>
>
> My LOAD helper now only shows "loading..." if ajax=True. Changing it to 
> False produces the grid but when I click on an item I'm taken to another 
> page
>
> My code:
>
> def manage_membership():
>  user_id = request.args(0)
>  db.auth_membership.user_id.default = int(user_id)
>  db.auth_membership.user_id.writable = False
>  form = SQLFORM.grid(db.auth_membership.user_id == user_id,
>    args=[user_id],
>    searchable=False,
>    deletable=False,
>    details=False,
>    selectable=False,
>    csv=False)
>  return form
>
>
>
> def list_users():
>
>  users = SQLFORM.grid(db.auth_user.email != 'm...@gmail.com <javascript:>'
> ,
>  details=False,
>  csv=False)
>
>  membership_panel = None
>  if request.args(0) == 'edit' and request.args(1) == 'auth_user':
>    user_id = request.args(2)
>    membership_panel = LOAD(request.controller,
>      'manage_membership.html',
>      args=[user_id],
>      ajax=True)
>
>  return dict(users=users, membership_panel=membership_panel)
>
>
> Is this a bug or is my code buggy?
>
> Cheers,
>
> -James
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to