[Zope] How on Earth do you mix literals and variables in Zope?

Richard Jones richard@bizarsoftware.com.au
Wed, 10 Oct 2001 16:28:33 +1000


On Wednesday 10 October 2001 16:19, Will Partridge wrote:
> I've got a problem which is driving me insane.  It's  the same type of
> problem I always run into with Zope -- the mixing of literals and
> variables.
>
> Here's what I'm trying to do:
>
> I have a form which allows users to type in documents and then select
> the folder to which their document will be added.  "folderName",
> "documentID", "documentTitle", and "documentContent" are all passed
> from this form.  "library" and "documents" are existing folder names,
> that is, static paths.
>
> On the processing page, I first tried:
>
> <dtml-with "library.documents.folderName">
>   <dtml-call "manage_addDTMLDocument(documentID, documentTitle,
> documentContent)"> </dtml-with>

Just guessing, but try:

<dtml-with "library.documents[folderName]">
 <dtml-call "manage_addDTMLDocument(documentID, documentTitle, 
documentContent)">
</dtml-with>


     Richard