BigBrotherBot v1.8.0
System Development Information for the BigBrotherBot project.

b3::update::B3version Class Reference

List of all members.

Public Member Functions

def parse
def __cmp__
def parse
def __cmp__

Public Attributes

 version
 prerelease

Static Public Attributes

tuple version_re
dictionary prerelease_order = {'dev': 0, 'a': 1, 'b': 2}

Detailed Description

Version numbering for BigBrotherBot.
Compared to version.StrictVersion this class allows version numbers such as :
    1.0dev
    1.0dev2
    1.0a
    1.0a
    1.0a34
    1.0b
    1.0b1
    1.0b3
And make sure that any 'dev' prerelease is inferior to any 'alpha' prerelease

Member Function Documentation

def b3::update::B3version::__cmp__ (   self,
  other 
)
def b3::update::B3version::__cmp__ (   self,
  other 
)
def b3::update::B3version::parse (   self,
  vstring 
)
def b3::update::B3version::parse (   self,
  vstring 
)

Member Data Documentation

dictionary b3::update::B3version::prerelease_order = {'dev': 0, 'a': 1, 'b': 2} [static]
Initial value:
re.compile(r'^(\d+) \. (\d+) (\. (\d+))? (([ab]|dev)(\d+)?)?$',
                                re.VERBOSE)

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties