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

Class Tokens

object --+
         |
        Tokens


Generic token container

The purpose of the container is to avoid typos when using literal constants and nasty hidden bugs because of them. If we mistype <instance>.<token> we get an AttributeError. When using plain literals we may just get misbehaviour instead.

Additionally valid_tokens provides the set of valid tokens for checks.


Method Summary
  __init__(self, *args)
Initialization
  __repr__(self)
Returns a string representation of the instance
    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
tuple valid_tokens: The valid tokens (('t1', 't2', ...))

Method Details

__init__(self, *args)
(Constructor)

Initialization
Parameters:
args - The tokens to provide
Raises:
UnicodeError - A token could not be encoded as ascii
Overrides:
__builtin__.object.__init__

__repr__(self)
(Representation operator)

Returns a string representation of the instance
Overrides:
__builtin__.object.__repr__

Instance Variable Details

valid_tokens

The valid tokens (('t1', 't2', ...))
Type:
tuple
Value:
()                                                                     

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