View Single Post
Old 01-31-2011, 01:59 PM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by sorcer View Post
Does anyone have any idea how to use print version in my case? If the original article is www.somesite.com/news/article, then in the print version one needs to add ?preview=print at the end of URL, so it becomes like www.somesite.com/news/article?preview=print. What code should I use in order to do that?
Use this:
Code:
    def print_version(self, url):
        return url + '?preview=print'
Starson17 is offline   Reply With Quote