17 Sep
2004
17 Sep
'04
8:27 p.m.
Hi Laura,
<div tal:define="results here/view_users; batch python:here.getBatch(results)"> . . . <div tal:repeat="result batch" <div tal:define="userName result/username"> <div tal:replace="python:here.ldapInfo(userName)"/> -----> Does not work!!!
What's the problem exactly? You don't get anything back? What happens if you put in a <pre tal:content="string:#${userName}#">user</pre> just after the div with the define? Does it contain what you expect? Look in particular for case sensitivity, unexpected whitespace padding (often happens if that username is coming out of a database field of type CHAR)? Look for funny spaces/characters before and after those hash signs. Cheers, Dan