View Single Post
Old 05-24-2010, 04:05 AM   #1977
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by TouchToneTommy View Post
Code:
http://www.sanluisobispo.com/2010/05/22/1150793/mixed-martial-arts-comes-to-poly.html
and

Code:
http://www.sanluisobispo.com/2010/05/22/v-print/1150793/mixed-martial-arts-comes-to-poly.html
You can see the "/v-print/ is inserted between the date and the article name.
Is there the option of using wildcards when subbing out for the print version?

Something like this

Code:
    def print_version(self, url):
        return url.replace('http://www.sanluisobispo.com/*/*/*/', 'http://www.sanluisobispo.com/*/*/*/v-print/')
That's my guess.

Good Luck

Last edited by DoctorOhh; 05-24-2010 at 04:30 AM.
DoctorOhh is offline