[Zope-dev] bizarre slicing behaviour in Zope

Gerry Kirk gerry at faithonline.com
Thu Dec 18 08:29:14 EST 2003


Well, at least I know it's only a Zpublisher thing, and not an issue
with the underlying data. That's all that matters to me.

Gerry

Gerry Kirk
Project Manager
www.faithonline.com 
www.dioceseonline.com


> -----Original Message-----
> From: Terry Hancock [mailto:hancock at anansispaceworks.com] 
> Sent: December 17, 2003 7:05 PM
> To: Casey Duncan; Gerry Kirk
> Cc: zope-dev at zope.org
> Subject: Re: [Zope-dev] bizarre slicing behaviour in Zope
> 
> 
> Perhaps more constructively, I think you can solve this by 
> either adding a dummy element to the tuple:
> 
> return dd[4:] + (None,)
> 
> or making it a list instead of a tuple:
> 
> return list(dd[4:])
> 
> Cheers,
> Terry
> 
> --
> Terry Hancock ( hancock at anansispaceworks.com )
> Anansi Spaceworks  http://www.anansispaceworks.com
> 




More information about the Zope-Dev mailing list