Top-rated recipes tagged "model_view_controller"http://code.activestate.com/recipes/tags/model_view_controller/top/2010-01-15T18:11:28-08:00ActiveState Code RecipesProfile Manager 2.1 (Python) 2010-01-15T18:11:28-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577008-profile-manager-21/ <p style="color: grey"> Python recipe 577008 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/model_view_controller/">model_view_controller</a>, <a href="/recipes/tags/python_2_5/">python_2_5</a>). </p> <p>This is a demonstration of the "cmd.Cmd" class in Python. The recipe demonstrates limited model-view-controller design. The "Profile_Manager" class acts as the model, the "Interface" class is the view, and the basic "cmd.Cmd" class takes the role of controller. It is the "Interface" that handles the boundary between the application's user and the logic of the program. On the other hand, the "Profile_Manager" sits in the place between the interface and the file system (the database holding the data). It is the part that takes care of all the implemented program logic.</p>