Package turbogears :: Package i18n :: Module tg_gettext :: Class lazystring

Class lazystring

source code

object --+
         |
        lazystring

Has a number of lazily evaluated functions replicating a string.

Just override the eval() method to produce the actual value.

Instance Methods
 
__init__(self, func, *args, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
eval(self) source code
 
__unicode__(self) source code
 
__str__(self)
str(x)
source code
 
__mod__(self, other) source code
 
__cmp__(self, other) source code
 
__eq__(self, other) source code
 
__deepcopy__(self, memo) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, func, *args, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)