'Integer value of revision property.'

@property
def revision_number(self):

    revision = self.revision
    if (revision is None):
        return 0
    revision_str = revision.text
    try:
        revision = int(revision_str)
    except ValueError:
        revision = 0
    if (revision < 0):
        revision = 0
    return revision
