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

Class TokenlistMember

object --+            
         |            
    Member --+        
             |        
    BaseMember --+    
                 |    
 BasePostmapMember --+
                     |
                    TokenlistMember


Unicode token list storage
Method Summary
  _checkallowed(self, value)
Checks if the tokens are allowed
  doPostmap(self, value)
Maps the items
  doSubstitute(self, value, subst)
Substitutes the items
  doTransform(self, value)
Turns into a token list
  init(self)
Custom initialization
    Inherited from BasePostmapMember
  doPremap(self, value)
Passes through
    Inherited from BaseMember
  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 _allowed: List of allowed tokens (or None) - saved in a dict for faster lookup
    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

Method Details

_checkallowed(self, value)

Checks if the tokens are allowed
Parameters:
value - The token list
           (type=TokenList)
Raises:
ValueError - A token was invalid

doPostmap(self, value)

Maps the items
Overrides:
svnmailer.settings._base.BaseMember.doPostmap

doSubstitute(self, value, subst)

Substitutes the items
Overrides:
svnmailer.settings._base.BaseMember.doSubstitute

doTransform(self, value)

Turns into a token list
Raises:
UnicodeError - The supplied value was a str and could not be converted to unicode
TypeError - The input value is neither str nor unicode nor a TokenList
ValueError - At least one of the tokens is not allowed
Overrides:
svnmailer.settings._base.BaseMember.doTransform

init(self)

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

Instance Variable Details

_allowed

List of allowed tokens (or None) - saved in a dict for faster lookup
Type:
dict

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