Package buildbot :: Package changes :: Module changes :: Class Change
[frames] | no frames]

Class Change

source code

I represent a single change to the source tree. This may involve several files, but they are all changed by the same person, and there is a change comment for the group as a whole.

Instance Methods
 
__init__(self, who, files, comments, isdir=0, links=None, revision=None, when=None, branch=None, category=None, revlink='', properties={}, repository='', project='', _fromChdict=False) source code
 
__setstate__(self, dict) source code
 
__str__(self) source code
 
asText(self) source code
 
asDict(self)
returns a dictonary with suitable info for html/mail rendering
source code
 
getShortAuthor(self) source code
 
getTime(self) source code
 
getTimes(self) source code
 
getText(self) source code
 
getLogs(self) source code
 
getFileContents(self) source code
 
getProperties(self) source code
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class __provides__
Class Methods
 
fromChdict(cls, master, chdict)
Class method to create a Change from a dictionary as returned by ChangesConnectorComponent.getChange.
source code
Class Variables
  number = None
hash(x)
  branch = None
hash(x)
  category = None
hash(x)
  revision = None
hash(x)
  __implemented__ = <implementedBy buildbot.changes.changes.Change>
Method Details

fromChdict(cls, master, chdict)
Class Method

source code 

Class method to create a Change from a dictionary as returned by ChangesConnectorComponent.getChange.

Parameters:
  • master - build master instance
  • ssdict - change dictionary
Returns:
Change via Deferred

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']