Re: View with "stages"

2009-09-16 Thread Haroldo Stenger
2009/9/16 Haroldo Stenger > I imagine mayself a special callable, a custom class f.i., that holds the > abstract structure of the whole dinamic management of buttons to show, and > stages to manage. The class would avoid some repeating code, namely, the > names of the buttons, and the tree (or gr

View with "stages"

2009-09-16 Thread Haroldo Stenger
In my django programming, very often I find myself writing a view that has "stages", that is, the view manages several distinct situations that are identified by checking if a given dictionary key is present or not (that is, if a given button was pressed or was another one). The list of buttons th