Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFDefault.browser.utils Namespace Reference

Classes

class  MacroView
class  ViewBase

Functions

def decode
def memoize

Variables

 __memo__

Function Documentation

Definition at line 30 of file utils.py.

00030 
00031 def decode(meth):
00032     def decoded_meth(self, *args, **kw):
00033         return toUnicode(meth(self, *args, **kw), self._getDefaultCharset())
00034     return decoded_meth

Here is the call graph for this function:

Definition at line 35 of file utils.py.

00035 
00036 def memoize(meth):
00037     def memoized_meth(self, *args):
00038         if not hasattr(self, '__memo__'):
00039             self.__memo__ = {}
00040         sig = (meth, args)
00041         if sig not in self.__memo__:
00042             self.__memo__[sig] = meth(self, *args)
00043         return self.__memo__[sig]
00044     return memoized_meth
00045 


Variable Documentation

Definition at line 38 of file utils.py.