Thread
:
Is it possible to pull the print version
View Single Post
01-31-2011, 01:59 PM
#
7
Starson17
Wizard
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
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
View Public Profile
Find More Posts by Starson17
Track Posts by Starson17 via RSS