RE: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-18 Thread Gerry Kirk
OTECTED] > Sent: December 17, 2003 7:05 PM > To: Casey Duncan; Gerry Kirk > Cc: [EMAIL PROTECTED] > 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: > &g

Re: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Terry Hancock
On Wednesday 17 December 2003 02:44 pm, Casey Duncan wrote: > On Wed, 17 Dec 2003 15:30:50 -0500 > Gerry Kirk <[EMAIL PROTECTED]> wrote: > > try this in a script in zope 2.7b3 (maybe others, too) if you want to go > > crazy: > > > > dd = ('dd', 'diocese', 'Parish.2003-12-16.8636751973', 'bob', >

Re: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Paul Winkler
On Wed, Dec 17, 2003 at 09:51:37PM -, gabrielg_laburando wrote: > But this is a well documented behavior of ZPublisher. And I think it?s > used internally by Zope. > See http://zope.org/Documentation/Books/ZDG/current/ObjectPublishing. > stx#5-20 > The tuple magic is in HTTPResponse.setBody().

Re: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Paul Winkler
On Wed, Dec 17, 2003 at 03:30:50PM -0500, Gerry Kirk wrote: > try this in a script in zope 2.7b3 (maybe others, too) if you want to go > crazy: > > dd = ('dd', 'diocese', 'Parish.2003-12-16.8636751973', 'bob', > 'Workspace.2003-12-17.8140751750','gerry.2003-12-17.8140751750') > > return dd[4:]

Re: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Casey Duncan
On Wed, 17 Dec 2003 15:30:50 -0500 Gerry Kirk <[EMAIL PROTECTED]> wrote: > try this in a script in zope 2.7b3 (maybe others, too) if you want to go > crazy: > > dd = ('dd', 'diocese', 'Parish.2003-12-16.8636751973', 'bob', > 'Workspace.2003-12-17.8140751750','gerry.2003-12-17.8140751750') > >

[Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Gerry Kirk
try this in a script in zope 2.7b3 (maybe others, too) if you want to go crazy: dd = ('dd', 'diocese', 'Parish.2003-12-16.8636751973', 'bob', 'Workspace.2003-12-17.8140751750','gerry.2003-12-17.8140751750') return dd[4:] you should get the last two items from the tuple, but I get the last ite