[Zope] Getting an Error that I don't understand

Laura McCord Laura.McCord at doucet-austin.com
Wed Apr 28 12:38:14 EDT 2004


Well this is what I was trying to do:

I am passing a userid value from a list. For example,

userid username    useremail      
 1       jack    jack at blah.com    [edit]

[edit] is a link that will direct the user to an edit form. The link is
created like this with a variable userid to differentiate between users
such as, 
userEdit_Form?userid=1

<td><span><a tal:attributes="href python: 'userEdit_Form?userid=' +
str(userid)">[edit]</a></span></td>

So when I go to the edit form the fields will be pre-populated with the
user information from what user was select which is identified by the
userid. Then you can edit any field you want and leave any fields
unchanged and click on submit and the user information will be updated.

Thanks, 
 Laura


-----Original Message-----
From: Andreas Heckel [mailto:andreas at easyleading.org] 
Sent: Wednesday, April 28, 2004 11:28 AM
To: Laura McCord
Cc: zope at zope.org
Subject: Re: [Zope] Getting an Error that I don't understand


Laura McCord wrote:
> Could someone tell me what this means and what is the resolution.
> 
> Compilation failed
> TAL.TALDefs.TALError: empty HTML tags cannot use tal:content: 'input',

> at line 7, column 1

The error message is pretty clear. You used thomething like:

<input tal:content="whatever" />

With tal:content you can modify the content between the start and end
tag.

<b tal:content="string:hello world">dummy content</b> will render:

<b>hello world</b>

But <input></input> is no valid XHTML ...

Andreas Heckel
http://www.easyleading.org





More information about the Zope mailing list