[Zope] Am I doing right?

Paul Winkler pw_lists@slinkp.com
Fri, 13 Dec 2002 12:32:25 -0800


On Fri, Dec 13, 2002 at 08:19:56PM +0100, Jerome Alet wrote:
> I wanted to keep all but the last one, of course, so this
> is probably something more like this one :
> 
>   return '.'.join(context.getId().split('.')[:-1])

... which does in one line what I did in 4.
TMTOWTDI lives :)

--PW

-- 

Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"