[Zope] DTML Doc property from DTML Method in tag
Martijn Faassen
M.Faassen@vet.uu.nl
Mon, 15 Feb 1999 16:06:58 +0100
Richard Wackerbarth wrote:
>
> I don't think so.
> Which "title" are you referencing?
The title of sequence-item (provided it has one). If outside an #in,
'title' would refer to the title of the folder (if any), I think.
> I have a very similar problem.
>
> In a form, I generate a list of 'ids' (just like the manage screens).
> When processing that form, I call "manage_delObjects" just fine.
> However, before doing so, I would like to generate a report.
> That report needs to list not the 'id', but the 'common_name' of the
> item.
>
> -- -- snip -- --
>
> <!--#in ids-->
> <P><!-- This gets the ID --> <!--#var sequence-item-->
> <!-- But this gives a key error --> <!--#var common_name-->
> <!--#/in-->
> <!-- This is fine if I don't make the above error -->
> <!--#call "manage_delObjects(REQUEST=REQUEST, ids=ids)"-->
Is common_name an attribute of an id object? I think if it is, <!#--#var
common_name--> ought to work in the #in. At least that is how it appears
to work for me. But I admit I'm muddled about this too. Figure 2 on page
21 of the Zope Document Template Markup Language User's Guide (what a
title!) seems to confirm it, though.
Regards,
Martijn