Pass arguments to form parts as it is mean to

This commit is contained in:
Sunil Mohan Adapa 2014-03-23 18:56:51 +05:30
parent 288e4bb6ca
commit 7ebeb44b22

View File

@ -140,7 +140,7 @@ class FormPlugin():
"""If the user has tried to fill in the form, process it, otherwise, just display a default form."""
if kwargs:
kwargs['message'] = self.process_form(**kwargs)
parts = get_parts(self)
parts = get_parts(self, **kwargs)
return self.fill_template(**parts)
def process_form(self, **kwargs):