Package svnmailer :: Package settings :: Module _accessors :: Class HumanBooleanMember
[show private | hide private]
[frames | no frames]

Class HumanBooleanMember

object --+        
         |        
    Member --+    
             |    
    BaseMember --+
                 |
                HumanBooleanMember


Boolean storage with translater from human readable booleans
Method Summary
  doTransform(self, value)
Turns into boolean
  init(self)
Custom initialization
    Inherited from BaseMember
any doPostmap(self, value)
abstract method
any doPremap(self, value)
abstract method
any doSubstitute(self, value, subst)
abstract method
  postmap(self, value)
Postmap the value if it's activated
  premap(self, value)
Premap the value if it's activated
  substitute(self, value, subst)
Substitute the value if it's activated
  transform(self, value)
Transform if value is not None
    Inherited from Member
  __init__(self, mapper, arg, param)
Initialization
    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...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __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
dict _human: The dictionary containing true and false keys
    Inherited from Member
any arg: The custom initialization argument
Struct instance: The owner instance
callable mapper: The associated mapper function (or None)
any param: The descriptor parameter

Class Variable Summary
tuple _FALSE: The false words (('word', ...))
tuple _TRUE: The true words (('word', ...))

Method Details

doTransform(self, value)

Turns into boolean
Raises:
ValueError - The supplied value was not recognized as human boolean
Overrides:
svnmailer.settings._base.BaseMember.doTransform

init(self)

Custom initialization
Overrides:
svnmailer.settings._base.BaseMember.init

Instance Variable Details

_human

The dictionary containing true and false keys
Type:
dict

Class Variable Details

_FALSE

The false words (('word', ...))
Type:
tuple
Value:
('', '0', 'no', 'off', 'false', 'none')                                

_TRUE

The true words (('word', ...))
Type:
tuple
Value:
('1', 'yes', 'on', 'true')                                             

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