[Buildbot-devel] Write our buildstep

Tom Prince tom.prince at ualberta.net
Fri Sep 16 12:22:36 UTC 2011


You could try something like this instead


class ChangeAttribute:
      implements(IRenderable)

      def __init__(self, attr):
          self.attr = attr

      def getRenderingFor(self, props):
          try:
                return getattr(props.getBuild().allChanges[0], self.attr)
          except:
                return ""


And then instead of using WithProperties, you use ChangeAttribute.

  Tom

P.S. The code above is untested.




More information about the devel mailing list