Hi, here's the code which sits as a link/button on a grid: A(T('Profile >'), _class='', _target='_blank', _href=URL('visuals', 'supporter_profile', args=[row.entity_External_Key,])))]
The URL generated looks a bit like this: http://127.0.0.1:8000/visuals/supporter_profile/003U000000XXLrgIAE But the controller sees 'images' instead of '003U000000XXLrgIAE' On Monday, January 26, 2015 at 10:21:40 AM UTC+11, Ian Ryder wrote: > > Hi there, first post after a couple of months using web2py - really > enjoying it. > > I have a strange one though - I have a page where an ID is passed to the > controller through request.arg(0) > > 80% of the time there's no issue, then seemingly randomly the value the > controller gets becomes 'images'. I've experimented with it and just > changing one character in the ID lets it come through OK so seems to be a > bug. > > I don't want to post the actual IDs here as they relate to real records in > a real externally visible system but happy to email off-list. > > Something anyone's seen before? Nothing special in my code I don't think: > entity_id = request.args(0) > if entity_id is None or entity_id == 'images': > response.flash = entity_id > return dict(timeline_events=[], supporter=None, staging_res=None, > source_data_server=None, journey_chart=None) > > Thanks > Ian > -- 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/d/optout.