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

Chapter 20. Approval Workflow for Messag... > Step 5: Creating a Review Messages V...

Step 5: Creating a Review Messages View for Message Boards

Now that you have a basic workflow working, you can look at an example of how you can make use of the workflow mechanism. The first task is to provide the editor with a nice overview of all pending messages in the message board.

You basically need a view class that recursively walks through the tree and picks out the pending messages. To accomplish this task, it is extremely helpful to write a convenience function that simply checks whether a message has a certain status. The implementation could be something like the following, which you simply place in browser/messageboard.py:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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