

def get_current_or_first_step(self, request, *args, **kwargs):
    "\n        Given the request object and whatever *args and **kwargs were passed to\n        __call__(), returns the current step (which is zero-based).\n\n        Note that the result should not be trusted. It may even be a completely\n        invalid number. It's not the job of this method to validate it.\n        "
    if (not request.POST):
        return 0
    try:
        step = int(request.POST.get(self.step_field_name, 0))
    except ValueError:
        return 0
    return request

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/wizard/legacy.py FormWizard.get_current_or_first_step/VarMisuse@67/195 `step`->`request`