[Fwd: Re: [Zope] clipboard pb]

Paul Winkler pw_lists at slinkp.com
Thu Jan 22 12:34:10 EST 2004


On Thu, Jan 22, 2004 at 04:45:16PM +0100, francois wrote:
> thanx for your reply, 
> your reply made me test my script again .
> 
> then, I realized I got problem when i used 'return' command.
> i test this script which outlines this problem  :
> script: 
> 
> homeFolder = context
> for n in names_containers:
>     h = str(context.ZopeTime().strftime('%S'))
>     rep = '%s-new-%s' % (n,h)
>     if not hasattr(homeFolder, rep):
>         homeFolder.invokeFactory(type_name='Folder container', id=rep, 
> title=n)
> return printed

You never invoked print or otherwise assigned to the 'printed' variable.
You should get an empty string (in some browsers, this will
appear to do nothing - you'll see whatever page you were already on).

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's UNDER-GAL KUPO!
(random hero from isometric.spaceninja.com)



More information about the Zope mailing list