Hello everybody!
May it be possible, that in 'userlib.py' on lines 220 and 231 (from rev. 8522) the variables 'addr' and 'address' should match and this is an error?!?
So the code: ------------------------------------------------------------------------ def sendMailOld(self, subject = u'', text = u'', ccMe = False): addr = self.site().put_address('Special:EmailUser') predata = { "wpSubject" : subject, "wpText" : text, 'wpSend' : "Send", 'wpCCMe' : '0', } if ccMe: predata['wpCCMe'] = '1' predata['wpEditToken'] = self.site().getToken()
response, data = self.site().postForm(address, predata, sysop = False) if data: ------------------------------------------------------------------------ should be ------------------------------------------------------------------------ def sendMailOld(self, subject = u'', text = u'', ccMe = False): addr = self.site().put_address('Special:EmailUser') predata = { "wpSubject" : subject, "wpText" : text, 'wpSend' : "Send", 'wpCCMe' : '0', } if ccMe: predata['wpCCMe'] = '1' predata['wpEditToken'] = self.site().getToken()
response, data = self.site().postForm(addr, predata, sysop = False) if data: ------------------------------------------------------------------------
Thanks and greetings! Dr. Trigon
fixed in r8527. Thanks.
btw. this is old code stuff which is no longer usable with the last release of mw but for older wikis (which never used it for at least nearby one year)
greetings xqt
----- Original Nachricht ---- Von: "Dr. Trigon" dr.trigon@surfeu.ch An: pywikipedia-l@lists.wikimedia.org Datum: 11.09.2010 23:21 Betreff: [Pywikipedia-l] Question about 'userlib.py'
Hello everybody!
May it be possible, that in 'userlib.py' on lines 220 and 231 (from rev. 8522) the variables 'addr' and 'address' should match and this is an error?!?
So the code:
def sendMailOld(self, subject = u'', text = u'', ccMe = False): addr = self.site().put_address('Special:EmailUser') predata = { "wpSubject" : subject, "wpText" : text, 'wpSend' : "Send", 'wpCCMe' : '0', } if ccMe: predata['wpCCMe'] = '1' predata['wpEditToken'] = self.site().getToken() response, data = self.site().postForm(address, predata, sysop =
False) if data:
should be
def sendMailOld(self, subject = u'', text = u'', ccMe = False): addr = self.site().put_address('Special:EmailUser') predata = { "wpSubject" : subject, "wpText" : text, 'wpSend' : "Send", 'wpCCMe' : '0', } if ccMe: predata['wpCCMe'] = '1' predata['wpEditToken'] = self.site().getToken() response, data = self.site().postForm(addr, predata, sysop =
False) if data:
Thanks and greetings! Dr. Trigon
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Heute erleben, was morgen Trend wird - das kann man auf der IFA in Berlin. Oder auf arcor.de: Wir stellen Ihnen die wichtigsten News, Trends und Gadgets der IFA vor. Natürlich mit dabei: das brandneue IPTV-Angebot von Vodafone! Alles rund um die Internationale Funkausstellung in Berlin finden Sie hier: http://www.arcor.de/rd/footer.ifa2010
pywikipedia-l@lists.wikimedia.org