Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
Found the problem - or at least part of it. The regex for finding $a is doing a negative look-behind so it won't match \$a. If $a occurs at the very beginning of template string this look-behind isn't working in 2.0, but is working in 2.1. This affects all the directives as well. I'll see i

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
On Wednesday 06 June 2001 13:51, Chuck Esterbrook wrote: > At 01:53 PM 6/6/2001 -0700, Tavis Rudd wrote: > >I wonder if it's a Python version problem. I'm using > > 2.1. checking yep!! it doesn't work with 2.0, but > > I have no idea why. I haven't used nested scopes and > > can't think of a

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Chuck Esterbrook
At 01:53 PM 6/6/2001 -0700, Tavis Rudd wrote: >I wonder if it's a Python version problem. I'm using 2.1. >checking yep!! it doesn't work with 2.0, but I have no >idea why. I haven't used nested scopes and can't think of >anything else that is 2.1 specific. Any suggestions for where >to look

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
> Well I installed over 0.8.1. I tried setup.py's help and > didn't see an option for un-install. Yeah that should do it. > C:\All\Packages\Python\TemplateServer-0.8.2>python > ActivePython 2.0, build 202 (ActiveState Tool Corp.) I wonder if it's a Python version problem. I'm using 2.1. checki

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Chuck Esterbrook
At 01:05 PM 6/6/2001 -0700, Tavis Rudd wrote: >On Wednesday 06 June 2001 12:28, Chuck Esterbrook wrote: > > Have you tried it? It's 2 lines: > > >>> from TemplateServer.Server import TemplateServer as > > >>> ts print ts('$a', {'a':1}) > > $a > > Doesn't work for me. What about you? > >Yes, it w

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
I just tried this with ver 0.8.1 and it works here. You might be getting clashes between versions, though I don't see how. On Wednesday 06 June 2001 12:28, Chuck Esterbrook wrote: > Have you tried it? It's 2 lines: > >>> from TemplateServer.Server import TemplateServer as > >>> ts print ts('$a

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
On Wednesday 06 June 2001 12:28, Chuck Esterbrook wrote: > Have you tried it? It's 2 lines: > >>> from TemplateServer.Server import TemplateServer as > >>> ts print ts('$a', {'a':1}) > $a > Doesn't work for me. What about you? Yes, it works fine with ver 0.8.2, though I can't vouch for 0.8.1. I

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Chuck Esterbrook
At 12:16 PM 6/6/2001 -0700, Tavis Rudd wrote: >Hi Chuck, >can you try this with TS 0.8.2, which I've just uploaded. >It includes half-complete docs, which should be 3/4 complete >by the end of the day. Have you tried it? It's 2 lines: >>> from TemplateServer.Server import TemplateServer as ts

Re: [Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Tavis Rudd
Hi Chuck, can you try this with TS 0.8.2, which I've just uploaded. It includes half-complete docs, which should be 3/4 complete by the end of the day. CHANGES TO NOTE: - the explicit tag closure is now /# - <# multi-line comments #> are now #comment /# ... #/comment/# - you must use the current

[Webware-devel] TS 0.8.1 bug

2001-06-06 Thread Chuck Esterbrook
I switched from TS 1.2.2 (an older version) to 0.8.1 (a newer version). My tiny test suite now fails: FAIL -- Traceback (most recent call last): File "test.py", line 23, in checkCases