| Home | Trees | Index | Help |
|---|
| Package svnmailer :: Module typedstruct :: Class MemberDescriptor |
|
object --+
|
MemberDescriptor
BaseDescriptor| Method Summary | |
|---|---|
Initialization | |
Raises an AttributeError | |
Gets the member value | |
Sets the members value | |
Postmapper - passes through by default | |
Premapper - passes through by default | |
| any |
Substituter - passes through by default |
| any |
Transformer - passes through by default |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Instance Variable Summary | |
|---|---|
str |
name: The name of the member |
| any | param: The descriptor parameter |
StructPrivate |
__private: The reference to the private container |
| Method Details |
|---|
__init__(self,
name,
private,
param=None)
Initialization
|
__delete__(self, instance)Raises an AttributeError |
__get__(self, instance, owner)Gets the member value |
__set__(self, instance, value)Sets the members value |
postmap(self, value, mapper, arg)Postmapper - passes through by default The postmapper is called before the value is finally returned to the caller (after being substituted).
|
premap(self, value, mapper, arg)Premapper - passes through by default The premapper is called if the value is set before doing anything else.
|
substitute(self, value, subst, arg)Substituter - passes through by default Use this method to do any dynamic processing on the retrieved value before it's beingpostmapped.
|
transform(self, value, arg)Transformer - passes through by default Override this method in order to do any value transformation, e.g. compile the input string as regex or split it into a list. Thetransform method is called with the value returned
from the premap method. The result is stored as
final member value.
|
| Instance Variable Details |
|---|
nameThe name of the member
|
paramThe descriptor parameter
|
__privateThe reference to the private container
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Mon Apr 17 12:39:11 2006 | http://epydoc.sf.net |