It's from the svn trunk:
web2py Version 1.61.1 (2009-04-18 10:09:25)
web2py is up to date <http://www.web2py.com/>


Controller, user_admin.py:
FORM_ACCEPT=T('record inserted')
FORM_ERROR=T('form errors')

#####
auth.settings.on_failed_authorization=URL(r=request,f='error')
def user(): return dict(form=auth())
def data(): return dict(form=crud())
def download(): return response.download(request,db)
def error(): return dict(message = T("not authorized"))
#####

@auth.requires_membership('Admin')
def index():
    user_table=SQLTABLE(db(db.auth_user.id>0).select(db.auth_user.id
,db.auth_user.first_name,db.auth_user.last_name,db.auth_user.email),headers={'
auth_user.id':T('Id'),'auth_user.first_name':T('First
Name'),'auth_user.last_name':T('Last Name'),'auth_user.email' :
T('Email')},_border=1, linkto=URL(r=request,f='data/update'))
    form_user = SQLFORM(db.auth_user)
    if form_user.accepts(request.vars, session):
        session.flash=FORM_ACCEPT
        redirect(URL(r=request,f='admin'))
    elif form_user.errors:
        response.flash=FORM_ERROR
    membership=SQLTABLE(db((db.auth_membership.user_id==db.auth_user.id
)&(db.auth_membership.group_id==db.auth_group.id)).select(
db.auth_membership.id
,db.auth_user.email,db.auth_group.role,orderby=db.auth_group.role),headers={'
auth_membership.id' : 'Id','auth_user.email' : 'Email', 'auth_group.role' :
T('Group')},_border=1, linkto=URL(r=request,f='data/update'))
    form_membership = SQLFORM(db.auth_membership)
    if form_membership.accepts(request.vars, session):
        session.flash=FORM_ACCEPT
        redirect(URL(r=request,f='admin'))
    elif form_membership.errors:
        response.flash=FORM_ERROR
    group=SQLTABLE(db(db.auth_group.id>0).select(db.auth_group.id
,db.auth_group.role),headers={'auth_group.id': 'Id','auth_group.role' :
T('Role')},_border=1, linkto=URL(r=request,f='data/update'))
    form_group = SQLFORM(db.auth_group)
    if form_group.accepts(request.vars, session):
        session.flash=FORM_ACCEPT
        redirect(URL(r=request,f='admin'))
    elif form_group.errors:
        response.flash=FORM_ERROR
    return
dict(user_table=user_table,form_user=form_user,form_membership=form_membership,membership=membership,group=group,form_group=form_group)

Just that...

When I click on a group id, for example, to edit, it goes to the edit screen
but the submit button doesn't work.

Thanks in advance!

Tito Garrido

On Sun, Apr 19, 2009 at 12:15 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> Can you post a piece of code to reproduce it? What is the date on the
> version? Is this the stable from the web page or the development
> version from the trunk?
>
> Massimo
>
> On Apr 19, 7:06 am, Tito Garrido <titogarr...@gmail.com> wrote:
> > Hi,
> >
> > I'm using SQLTABLE with linkto=URL(r=request,f='data/update'), but when I
> > try to update/delete nothing happens...
> >
> > I'm using web2py 1.61.1
> >
> > Am I doing something wrong?
> >
> > Thanks,
> >
> > Tito
> >
> > --
> > Linux User #387870
> > .........____
> > .... _/_õ|__|
> > ..º[ .-.___.-._| . . . .
> > .__( o)__( o).:_______
> >
>


-- 
Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

--~--~---------~--~----~------------~-------~--~----~
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