[Zope] quoting id values

Ross J. Reedstrom reedstrm@wallace.ece.rice.edu
Fri, 14 May 1999 14:19:24 -0500 (CDT)


Oh, that wrapped _really_ ugly. Let me clean it up:

<!--#if "REQUEST['id'] in objectIds()"-->
<H4>Sorry! That name exists, try again</H4>
<!--#else-->

<!--#call "manage_addFile(id=REQUEST['id'],
           title=REQUEST['title'],file=REQUEST['file'])"-->

<!--#call "_.getitem(REQUEST['id']).manage_addProperty(
                   'addedby',REQUEST['AUTHENTICATED_USER'],
		   'string')"-->
<H3>File Added</H3>
<!--#/if-->

and let me clarify a little:
it looks like REQUEST['id'] works fine if it's part of an expression after
an equals sign, but not alone? Hmm.

Ross

> Hey Zopists:
> I'm making a little tiny File Upload/Exchange site with Zope, and I've
> run into a liitle problem. I'd like to keep track of who uploads what,
> so I'm trying to set
> a property on each file equivalent to the AUTHENTICATED_USER. So,
> stealing from the 'Creating Folders' example, I've got this code:

-- 
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005