Quote:
Originally Posted by Starson17
I'll look for some when I get home. Just think of "url" as a string that you use Python string manipulation functions to modify before it gets returned.
|
Here's a simple way to do it:
Code:
def print_version(self, url):
parts = url.rsplit('?')
print_url = parts[0] + '?Print=Yes'
return print_url
It splits at the '?' and adds your '?Print=Yes' to the first half.