Re: [Zope3-Users] zopectl debug and deleting objects

2007-12-13 Thread Justin Fletcher
On Thu, 2007-12-13 at 07:06 -0500, Stephan Richter wrote: On Thursday 13 December 2007, Justin Fletcher wrote: for i in root['mysite'].keys(): del(root['mysite'][i]) keys() produces an iterator that assumes the data structure is not changed; Use list(root['mysite'].keys()) instead

[Zope3-Users] TAL expression and ascii

2007-12-13 Thread Justin Fletcher
Hello all, I am trying to migrate some data into the ZODB. I am storing this data in a string, and later presenting the data in a ZPT similar to this: span tal:replace=context/content / This works fine for text that does not have any characters outside of the ascii range, but for text that

Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Justin Fletcher
at 14:12 +0100, Justin Fletcher wrote: On Fri, 2007-12-14 at 12:23 +0200, Marius Gedminas wrote: On Fri, Dec 14, 2007 at 01:20:52AM +0100, Justin Fletcher wrote: snip There's no magic. Zope 3 strings are Unicode is a convention, and Zope makes it easy to follow by decoding all HTTP

Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Justin Fletcher
On Fri, 2007-12-14 at 12:23 +0200, Marius Gedminas wrote: On Fri, Dec 14, 2007 at 01:20:52AM +0100, Justin Fletcher wrote: snip There's no magic. Zope 3 strings are Unicode is a convention, and Zope makes it easy to follow by decoding all HTTP request strings into Unicode objects