A simple question I have a variable that is returned from an sql query as <dtml-var id> I wish to include this in a python expression to create a photofolder or photoimage. When used as <dtml-call expr="manage_addProduct['Photo'].manage_addPhotoFolder(id='12345', title='')"> this works. but if used within <dtml-in createfolder size=50 start=query_start> <dtml-call expr="manage_addProduct['Photo'].manage_addPhotoFolder(id = '<dtml-var id>', title= '' )"> </dtml-in> I get Error Type: AttributeError Error Value: _setObject File C:\Program Files\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 230, in eval (Object: manage_addProduct['Photo'].manage_addPhotoFolder(id = '<dtml-var id>', title= '' )) (Info: manage_addProduct) File <string>, line 2, in f (Object: guarded_getitem) What is the correct way to do this? Thanks for any help