Skip to content

Commit 5609b92

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent e67be5f commit 5609b92

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ are given with the most recent entry first.
44
2004-??-?? 0.8.0b2
55
Fixed:
66
- note about how to run roundup demo in Windows
7+
- fix API for templating utils extensions - remove "utils" arg
78

89

910
2004-12-08 0.8.0b1

doc/installation.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ For The Really Impatient
9797

9898
.. note::
9999
The ``demo.py`` script is packaged in Roundup's source distribution -
100-
users of the Windows installer, other binary distributions or
101-
pre-installed Roundup will need to download the source to use it.
100+
users of the Windows installer may use the ``roundup-demo`` program.
101+
Users of other binary distributions or pre-installed Roundup will need
102+
to download the source to use it.
102103

103104
If you just want to give Roundup a whirl Right Now, then simply run
104105
``python demo.py``. This will set up a simple demo tracker on your

roundup/cgi/templating.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,14 +2219,6 @@ def next(self):
22192219
return Batch(self.client, self._sequence, self._size,
22202220
self.end - self.overlap, 0, self.orphan, self.overlap)
22212221

2222-
class TemplatingUtil:
2223-
def __init__(self, utils, callable):
2224-
self.utils = utils
2225-
self.callable = callable
2226-
def __call__(self, *args, **kw):
2227-
args = (self.utils,)+args
2228-
return self.callable(*args, **kw)
2229-
22302222
class TemplatingUtils:
22312223
''' Utilities for templating
22322224
'''
@@ -2251,6 +2243,6 @@ def __getattr__(self, name):
22512243
raise AttributeError, name
22522244
if not self.client.instance.templating_utils.has_key(name):
22532245
raise AttributeError, name
2254-
return TemplatingUtil(self, self.client.instance.templating_utils[name])
2246+
return self.client.instance.templating_utils[name]
22552247

22562248
# vim: set et sts=4 sw=4 :

0 commit comments

Comments
 (0)