[Zope] Having problems with python script
Dan Fairs
monster at spiderplant.net
Fri Sep 17 16:27:49 EDT 2004
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
More information about the Zope
mailing list