[Zope] getUser Argument in ZPT

Jens Vagelpohl jens at zope.com
Wed Jan 7 10:15:11 EST 2004


> This is explained in the PageTemplates documentation. Inside the 
> template you have the bound variable "user" that is bound to the 
> current logged-in user. So if you need the username you would do 
> here/reports/getReportsByUser_sql(user/getUserName)

Answered too fast, this is obviously completely wrong syntax. You need

python: here.reports.getReportsByUser_sql(user.getUserName())

jens

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2355 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20040107/b40d2ee8/smime.bin


More information about the Zope mailing list