Duh! This code <dtml-call "manage_addFile(rep.this(),'newid',file)"> maps id=rep.this() file='newid' title=file *self* is passed implicitly. I hate it when I waste two days on such stupid mistakes. Zope is great. I am unworthy.