Survey application with TurboGears and CatWalk
Part Two
Using CatWalk to create our first survey
Let's take a look a the CatWalk interface:
- Here catwalk will list the objects defined in model.py
- When you select an object, it's structure definition is shown in the main content area
- From the menu on top you can browse existing instances
- Or you can add a new instance
We start by adding a Survey
Now we want to create some questions...
By default a foreignKey will show the id number of the referred object. When you have 10 surveys it will be difficult to remember which survey your question belongs to.
CatWalk let you define which column to use as a label for your foreignKey. In this case I will use the survey name
This will be a radio question...
I proceed to add some options to my questions, and again I change the ForeignKey column to be used as label.
CatWalk let you view your related joins in context, so if we choose our question, we can se by default how many options it have, and if we can list them if we want to.