[Buildbot-devel] IEmailLookup asserton error

Roth, Pierre pierre.roth at covidien.com
Fri Apr 16 09:08:34 UTC 2010


Hi all,

New with buildbot, I'm trying to implement an IEmailLookup class and
have an assertion error.

Setup:
 - Windows 2003
 - Python 2.5.4
 - Buildbot 0.7.12
 - Twisted: 10.0.0

Code:
from buildbot import interfaces, util

class MyEmailLookup():
	
    __implements__  = interfaces.IEmailLookup
	
    def __init__(self):
        pass
 	
    def getAdress(self, user):
        result = 'me at mydomain.com'
        if user == 'pierre':
            result = 'pierre.lastname at mydomain.com
        if user == 'manuel':
            result = 'manuel.hislastname at mydomain.com'
        return result

email_lookup = MyEmailLookup()

c['status'].append(mail.MailNotifier(fromaddr="buildbot at mydomain.com",
relayhost="smtp.mydomain.com", lookup = email_lookup))


Traceback (most recent call last):
  File
"D:\Python25\lib\site-packages\buildbot-0.7.12-py2.5.egg\buildbot\script
s
\runner.py", line 990, in doCheckConfig
    ConfigLoader(configFileName=configFileName)
  File
"D:\Python25\lib\site-packages\buildbot-0.7.12-py2.5.egg\buildbot\script
s
\checkconfig.py", line 32, in __init__
    self.loadConfig(configFile)
  File
"D:\Python25\lib\site-packages\buildbot-0.7.12-py2.5.egg\buildbot\master
.
py", line 506, in loadConfig
    exec f in localDict
  File "E:\serv\buildbots\pb5XX\master\master.cfg", line 274, in
<module>
 
c['status'].append(mail.MailNotifier(fromaddr="buildbot-airox at covidien.c
om",
 relayhost="mailemea.thcg.net", lookup = email_lookup))
  File
"D:\Python25\lib\site-packages\buildbot-0.7.12-py2.5.egg\buildbot\status
\
mail.py", line 187, in __init__
    assert interfaces.IEmailLookup.providedBy(lookup)
AssertionError


Thanks a lot for your support,

Pierre




More information about the devel mailing list