I reread my functions, and came across this one:
def details(): id=request.args[0] club=db(db.bedrijf.id==id).select() address=db((db.adres.bedrijf==id)& (db.adres.adressoort=='vestigingsadres')).select() nfas=db((db.bedrijfnfa.bedrijf==id)& (db.bedrijfnfa.nfatype==db.nfatype.id))\ .select (db.bedrijfnfa.nfatype,db.bedrijfnfa.adres,db.nfatype.nfatype,orderby=db.bedrijfnfa.nfatype) if not len(club) and not len(address) and not len(nfas): redirect (URL(r=request,f='byplace')) return dict(club=club[0],address=address[0],nfas=nfas) Based on what you taught me above: if not len(club) and not len(address) and not len(nfas): redirect(URL (r=request,f='byplace')) could read like: if not club and not address and not nfas: redirect(URL (r=request,f='byplace')) couldn't it? 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 -~----------~----~----~----~------~----~------~--~---