Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3006:50b0f8e98247
fix API for templating utils extensions - remove "utils" arg
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 14 Dec 2004 23:06:57 +0000 |
| parents | 29e7a2ff6434 |
| children | 14322134dcef |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Dec 14 23:04:30 2004 +0000 +++ b/roundup/cgi/templating.py Tue Dec 14 23:06:57 2004 +0000 @@ -2219,14 +2219,6 @@ return Batch(self.client, self._sequence, self._size, self.end - self.overlap, 0, self.orphan, self.overlap) -class TemplatingUtil: - def __init__(self, utils, callable): - self.utils = utils - self.callable = callable - def __call__(self, *args, **kw): - args = (self.utils,)+args - return self.callable(*args, **kw) - class TemplatingUtils: ''' Utilities for templating ''' @@ -2251,6 +2243,6 @@ raise AttributeError, name if not self.client.instance.templating_utils.has_key(name): raise AttributeError, name - return TemplatingUtil(self, self.client.instance.templating_utils[name]) + return self.client.instance.templating_utils[name] # vim: set et sts=4 sw=4 :
