Package svnmailer :: Module struct_accessors :: Class HumanBooleanDescriptor
[show private | hide private]
[frames | no frames]

Type HumanBooleanDescriptor

      object --+        
               |        
MemberDescriptor --+    
                   |    
      BaseDescriptor --+
                       |
                      HumanBooleanDescriptor


Boolean storage with translater from human readable booleans
Method Summary
  __init__(self, name, private, param)
Initialization
  doTransform(self, value, arg)
Turns into boolean
    Inherited from BaseDescriptor
  doPostmap(self, value, mapper, arg)
abstract method
  doPremap(self, value, mapper, arg)
abstract method
any doSubstitute(self, value, subst, arg)
abstract method
  getCharset(self, arg)
Returns the charset
  getFileCharset(self, arg)
Returns the file system charset
  postmap(self, value, mapper, arg)
Postmap the value if it's activated
  premap(self, value, mapper, arg)
Premap the value if it's activated
  substitute(self, value, subst, arg)
Substitute the value if it's activated
  transform(self, value, arg)
Transform if value is not None
    Inherited from MemberDescriptor
  __delete__(self, instance)
Raises an AttributeError
  __get__(self, instance, owner)
Gets the member value
  __set__(self, instance, value)
Sets the members value
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __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)...

Instance Variable Summary
dict HUMAN: The dictionary containing true and false keys
    Inherited from MemberDescriptor
str name: The name of the member
any param: The descriptor parameter
StructPrivate __private: The reference to the private container

Class Variable Summary
tuple FALSE: The false words (tuple of str)
tuple TRUE: The true words (tuple of str)

Method Details

__init__(self, name, private, param=None)
(Constructor)

Initialization
Overrides:
svnmailer.struct_accessors.BaseDescriptor.__init__

doTransform(self, value, arg)

Turns into boolean
Raises:
ValueError - The supplied value was not recognized as human boolean
Overrides:
svnmailer.struct_accessors.BaseDescriptor.doTransform

Instance Variable Details

HUMAN

The dictionary containing true and false keys
Type:
dict

Class Variable Details

FALSE

The false words (tuple of str)
Type:
tuple
Value:
('', '0', 'no', 'off', 'false', 'none')                                

TRUE

The true words (tuple of str)
Type:
tuple
Value:
('1', 'yes', 'on', 'true')                                             

Generated by Epydoc 2.1 on Mon Apr 17 12:39:11 2006 http://epydoc.sf.net