[Buildbot-devel] How does isFileImportant work?, was Re: Some Questions

Axel Hecht l10n.moz at googlemail.com
Fri Jun 20 16:58:03 UTC 2008


You could try this

from twisted.python import log
def importQuickFiles(*args):
  log.msg(', '.join(map(lambda a: str(a), args)))

That should catch 'em all, I guess.

Axel

2008/6/20 Dennis Schridde <devurandom at gmx.net>:
> Am Freitag, 20. Juni 2008 16:50:05 schrieb Dennis Schridde:
>> Am Freitag, 20. Juni 2008 12:10:15 schrieb Axel Hecht:
>> > AFAICT, fileIsImportant is called with two arguments, the scheduler
>> > and the change. I'm not dead-on sure that the scheduler is passed, but
>> > I think so.
>> >
>> > so you'd do something like
>> >
>> > def importQuickFiles(sched, change):
>> >   for f in change.getFiles():
>> >     if ....:
>> >       return True
>> >   return False
>>
>> Thanks, trying that now. Will tell you whether it worked as expected.
> Seems it does not work. And this is also the cause for "[Buildbot-devel]
> AttributeError exception: Normal?, was Re: Some questions".
>
> I now get this exception instead:
> <class 'twisted.spread.jelly.InsecureJelly'>: Type not allowed for object:
> <type 'type'> <type 'exceptions.TypeError'>
>
> Is there a way to introspect whatever arguments I get? Or some way to output
> debug info to twistd.log? It seems my "print type(change)" does not end up
> there.
>
> --Dennis
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>




More information about the devel mailing list