[Zope-dev] exec in zope?

Jason Spisak 444@hiretechs.com
Tue, 23 May 2000 17:26:23 GMT


Andrew Edmondson writes:

> 
> I'm trying to pass a keyword argument to a function (in this case Catalog), but
> to generate it from variables.
> 

Try:
(untested)
> The following doesn't work, but it illustrates my idea:
> 	<dtml-in "Catalog(_.getitem(search_in, 1)   =   _.getitem(search_for, 1))">
> 


> The obvious way to do this in python would be to use the 'exec' command - but
> that doesn't seem to work in zope.
> 
> Is there any way to do this in zope?
> 
> -Ed
> 
> 
> 
> -- 
> Andrew Edmondson
> 

All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.