Hi,

lets say I have 3 functions

def a():
    # some code
    if form.accepts(request.vars, session):
        redirect(URL('b'))
    return dict(form=form)

def b():
    # some code
    if form.accepts(request.vars, session):
        redirect(URL('c'))
    return dict(form=form)

def c():
    return "**** c *****"

a, b and c have their own views. I do not want to allow any user to start at
function b or c. Everybody has to start at a.
I think, this problem could be solved using a decorator, but I could not
find how.

Regards, Martin

Reply via email to