Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-14 Thread Charlie Clark
Am 13.06.2007 um 22:25 schrieb Charlie Clark: Thanks. Again. For some reason Tres method doesn't work, I get an empty module method. throws up errors for everything so I guess I've got some investigating as to why this is happening. So fixed my errors, written run tests including some

[Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Charlie Clark
Hi, since my patch to support ReST for Documents ( Newsitems - thanks to Jens for this), I've gone back to looking at what was my original problem: STX choking with non-ascii text. From my tests this afternoon this looks surprisingly easy to fix. This is a sample method from

Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Jun 2007, at 16:22, Charlie Clark wrote: It seems simply adding the re.UNICODE flag and using \w rather than string.letters + string.digits is sufficient. However, given my relative inexperience with regexes this could simply be naïvety on

Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Charlie Clark
Am 13.06.2007 um 16:44 schrieb Jens Vagelpohl: The zope.structuredtext package is a Zope 3 package, so without looking closely I would assume no patches would be needed for Zope 2.x, since it just uses the Zope 3 package. Okay, I'll make a submission to the Zope 3 collector and see what

Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Charlie Clark
Am 13.06.2007 um 17:45 schrieb Jens Vagelpohl: If your goal is to attach a patch to the issue you're about to file, please do *not* mix up changes that affect the problem at hand with unrelated cosmetic cleanups. That will just serve to confuse the reader. Do the cleanup separately, if

Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Jun 2007, at 18:39, Charlie Clark wrote: Am 13.06.2007 um 17:45 schrieb Jens Vagelpohl: If your goal is to attach a patch to the issue you're about to file, please do *not* mix up changes that affect the problem at hand with

Re: [Zope-CMF] Fixing STX for non-ascii

2007-06-13 Thread Charlie Clark
Am 13.06.2007 um 18:47 schrieb Jens Vagelpohl: If I need to run tests for packages that are not part of my instance home I go to the root of my software home and use test.py manually: $ /usr/local/bin/python2.4 test.py -szope.structuredtext Thanks. Again. For some reason Tres method