Django

Code

Changeset 7263

Show
Ignore:
Timestamp:
03/17/08 10:53:01 (6 months ago)
Author:
adrian
Message:

Added parse_params() hook to FormWizard?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/formtools/wizard.py

    r7236 r7263  
    5050            self.extra_context.update(kwargs['extra_context']) 
    5151        current_step = self.determine_step(request, *args, **kwargs) 
     52        self.parse_params(request, *args, **kwargs) 
    5253 
    5354        # Sanity check. 
     
    168169        return step 
    169170 
     171    def parse_params(self, request, *args, **kwargs): 
     172        """ 
     173        Hook for setting some state, given the request object and whatever 
     174        *args and **kwargs were passed to __call__(), sets some state. 
     175 
     176        This is called at the beginning of __call__(). 
     177        """ 
     178        pass 
     179 
    170180    def get_template(self, step): 
    171181        """