Package svnmailer :: Module struct_accessors :: Class StdinDescriptor
[hide private]

Class StdinDescriptor

source code

                  object --+        
                           |        
typedstruct.MemberDescriptor --+    
                               |    
                  BaseDescriptor --+
                                   |
                                  StdinDescriptor

Stdin storage

Instance Methods [hide private]
any
substitute(self, value, subst, arg)
Read stdin once and return it as string
source code

Inherited from BaseDescriptor: __init__, doPostmap, doPremap, doSubstitute, doTransform, getCharset, getFileCharset, postmap, premap, transform

Inherited from typedstruct.MemberDescriptor: __delete__, __get__, __set__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _stdin = None
hash(x)
Instance Variables [hide private]

Inherited from typedstruct.MemberDescriptor: name, param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

substitute(self, value, subst, arg)

source code 

Read stdin once and return it as string

Parameters:
  • value - The value to substitute
  • subst - The substitution dictionary
  • arg - The argument used for struct initialization
Returns: any
The substituted value
Overrides: typedstruct.MemberDescriptor.substitute