[Zope-dev] Object to string

Jason Spisak webmaster@mtear.com
Tue, 30 Mar 1999 11:28:44 -0500


Shaw,

We're close, but the id string doesn't update.
It stays 'unique_id' instead of becoming the counter string.  
I used this code:

<!--# call "manage_addFolder('unique_id','unique_id',0,0,REQUEST)"-->
<!--# call "PARENTS[0].manage_changeProperties(counter=counter+1)"-->
<!--# call "manage_changeProperties(id=_.str(counter))"-->

Thanks again for all your help, time, and extra brain cycles!

Shaw, Howard wrote:
> 
> Nope. Nothing wrong here. Just wrap the two instances of unique_id in
> quotes. Sorry for not catching that in Pavlos' code.
> 
> like so:
> > <!--# call "manage_addFolder('unique_id','unique_id',0,0,REQUEST)"-->
> the fields are id and title, and both take a string. The traceback was
> telling you that it could not find the object unique_id which it was
> trying to evaluate to generate a string to pass.
> 
> Howard C. Shaw III
> Programmer/SysAdmin
> St. Thomas High School


-- 
Jason Spisak
webmaster@mtear.com