Package svnmailer :: Class _Version
[show private | hide private]
[frames | no frames]

Class _Version

object --+
         |
        _Version


Represents the svnmailer version
Method Summary
  __init__(self, injected, version, is_dev)
Initialization
  __repr__(self)
Returns a string representation
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
bool is_dev: Is it a development version?
int major: The major version number
int minor: The minor version number
int patch: The patch level number
str string: Full version string

Method Details

__init__(self, injected, version, is_dev)
(Constructor)

Initialization
Parameters:
injected - A version string injected by the release build system for dev releases. If it contains the string @VERSION@ and is_dev is True, it's assumed, that no string was injected and the final version string is just version + "-dev"
           (type=str)
version - The numbered version string (like "1.1.0") It has to contain exactly three numbers; dot separated
           (type=str)
is_dev - Is it a development version?
           (type=bool)
Overrides:
__builtin__.object.__init__

__repr__(self)
(Representation operator)

Returns a string representation
Overrides:
__builtin__.object.__repr__

Instance Variable Details

is_dev

Is it a development version?
Type:
bool

major

The major version number
Type:
int

minor

The minor version number
Type:
int

patch

The patch level number
Type:
int

string

Full version string
Type:
str

Generated by Epydoc 2.0 on Sun Sep 25 20:49:16 2005 http://epydoc.sf.net