Skip to content

Commit b436069

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent b05ca66 commit b436069

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/cgi/templating.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,12 @@ def __init__(self, *args, **kw):
15981598

15991599
def __getattr__(self, attr):
16001600
''' return a new HTMLItem '''
1601-
#print 'Link.getattr', (self, attr, self._value)
16021601
if not self._value:
1602+
# handle a special page templates lookup
1603+
if attr == '__render_with_namespace__':
1604+
def nothing(*args, **kw):
1605+
return ''
1606+
return nothing
16031607
msg = self._('Attempt to look up %(attr)s on a missing value')
16041608
return MissingValue(msg%locals())
16051609
i = HTMLItem(self._client, self._prop.classname, self._value)

0 commit comments

Comments
 (0)