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

Chapter 24. Developing New Skins > Step 9: Replying to Messages

Step 9: Replying to Messages

Can you really create another Add view? Yes, of course. The Reply to Message Add view is a bit special, though, because it should contain dynamic default values. For example, if the original message had a title called My Title, the suggested title for the new reply message should be Re: My Title. Similarly, every text line of the original message body should be prefixed with >.

The best place to insert the dynamic default values is in the private _setUpWidgets() methods, which creates a data dictionary that is passed to the widget instantiater. The code for the entire Add view class looks like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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