Source code for vinstall.core.controller
#-*- coding: utf-8 -*-
"""Provides a base class for controllers.
"""
[docs]class Controller(object):
"""Base class for defining the controller interface, there is no real need
for subclassing this.
"""
[docs] def render(self):
"""This method returns a Render object."""
[docs] def process(self, *args):
"""Callback executed with the form values as arguments."""
[docs] def next(self):
"""Return the class implementing the next stage."""
[docs] def previous(self):
"""Return the class implementing the previous stage."""