Mercurial > p > roundup > code
comparison doc/customizing.txt @ 4464:c62c0f383e41
Fix incorrect setting of template in customizing.txt example action
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 04 Nov 2010 22:52:56 +0000 |
| parents | 386200d0c929 |
| children | d9254d300d6e |
comparison
equal
deleted
inserted
replaced
| 4463:1bd86e82422b | 4464:c62c0f383e41 |
|---|---|
| 4867 ''' Verify that the user has selected a category, and then move | 4867 ''' Verify that the user has selected a category, and then move |
| 4868 on to page 2. | 4868 on to page 2. |
| 4869 ''' | 4869 ''' |
| 4870 category = self.form['category'].value | 4870 category = self.form['category'].value |
| 4871 if category == '-1': | 4871 if category == '-1': |
| 4872 self.error_message.append('You must select a category of report') | 4872 self.client.error_message.append('You must select a category of report') |
| 4873 return | 4873 return |
| 4874 # everything's ok, move on to the next page | 4874 # everything's ok, move on to the next page |
| 4875 self.template = 'add_page2' | 4875 self.client.template = 'add_page2' |
| 4876 | 4876 |
| 4877 def init(instance): | 4877 def init(instance): |
| 4878 instance.registerAction('page1_submit', Page1SubmitAction) | 4878 instance.registerAction('page1_submit', Page1SubmitAction) |
| 4879 | 4879 |
| 4880 4. Use the usual "new" action as the ``@action`` on the final page, and | 4880 4. Use the usual "new" action as the ``@action`` on the final page, and |
