[Zope] code problem
Passin, Tom
tpassin at mitretek.org
Fri Oct 10 17:13:33 EDT 2003
[ Jianping Zhu]
> I am new to zope web application I want to creat a tab interface
> I copy following code form somebody else
>
> <html metal:use-macro="container/standard_template.pt/macros/page">
> <div metal:fill-slot="body">
> <table width="100%" cellpadding="0" cellspacing="0"
> tal:define="username user/getUserName;
> selectedTab request/tab>
> </table>
> </div>
> </html>
>
> When i test it I get
>
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: KeyError
> Error Value: tab
>
>
I would start by making your example well-formed, which it is not since
the tal:define attribute value has no closing quotation mark. After
that, I would look at how to get specific form values from the request.
Cheers,
Tom P
More information about the Zope
mailing list