Thanks Niphlod,Anthony 
 
was written this way:

def previous_url():    
    from collections import deque
    if session.previous_url is None:
        session.previous_url = deque([request.url, request.url], maxlen=2)

    if session.previous_url[1] != request.url:
        session.previous_url.append(request.url)

    return session.previous_url[0]

-- 

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