# METHODS SUBCLASSES MIGHT OVERRIDE IF APPROPRIATE ########################
defprefix_for_step(self,step):
"Given the step, returns a Form prefix to use."
returnstr(step)
defrender_hash_failure(self,request,step):
"""
Hook for rendering a template if a hash check failed.
step is the step that failed. Any previous step is guaranteed to be
valid.
This default implementation simply renders the form for the given step,
but subclasses may want to display an error message, etc.
"""
returnself.render(self.get_form(step),request,step,context={'wizard_error':_('We apologize, but your form has expired. Please continue filling out the form from this page.')})