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