• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 24. Developing New Skins > Step 6: Adding a Post to the Message Board

Step 6: Adding a Post to the Message Board

When looking at the posts screen, you might have already clicked the Create New Post link and added a new message. You will have noticed that the Add view does not bring you back to the posts overview; instead, it brings you back to a management screen. To change that, you have to create a customized Add view that specifies the return URL. The implementation in the views.py module looks like this:

01 class AddMessage:
02     """Add-Form supporting class."""
03
04     def nextURL(self):
05         return '../@@posts.html'


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint