Re: [Zope] Write log file from script

2005-10-08 Thread Dieter Maurer
Brian Sullivan wrote at 2005-10-7 11:42 -0400: I am looking for a simple strategy to write a debug log file from a python script. In an External Method (trusted code), you can write files as usual in Python. An elementary log function could be: def log(msg): open(LOGFILE, a).write(msg)

Re: [Zope] Packaging a zope application

2005-10-08 Thread Dieter Maurer
Joshua Burvill wrote at 2005-10-7 12:28 +1000: ... Currently there is a three step process: 1. install correct version of zope 2. unzip a zip file which I maintain that contains all the added libraries, products, .zexp file, and external methods into their correct paths in the zope root folder

Re: [Zope] python: calling DTML-methods without quoting

2005-10-08 Thread Dieter Maurer
Chris wrote at 2005-10-4 17:00 +0200: ... If I call a DTML-Method from an other Method (e.g. dtml-var someDTML), HTML entities are not converted. This calls (renders) the DTML object However if I call it from python (e.g. dtml-var somePath.someDTML the entities are html_quoted. this does

Re: [Zope] How to prevent web access to specific folder ?

2005-10-08 Thread Dieter Maurer
Vladimir Petrovic wrote at 2005-10-6 17:44 +0300: ... restricting Web Publishing in specific folders ... I know this can be done by restricting View/Access Contents information privileges for folders/scripts to the specific role and then giving DTML methods proxy role. But, is there any other

[Zope] ZAjax anyone?

2005-10-08 Thread Greg Fischer
So I have been reading and learning a lot the last couple days about this whole AJAX thing. I really think it is something I am going to move towards for web apps. However, I don't want to lose Zope. I wonder if any of you would be willing to comment on this? I quickly tested Ruby on Rails, given

Re: [Zope] ZAjax anyone?

2005-10-08 Thread Greg Fischer
Oh, that's cool! The naming RPC threw me off. I knew that was there, but I guess my assumptions (I know , bad) were that it communicated over a different protocol, not using port 80. But, I suppose, tcp over port 80, spewing out xml is good. Probably just what I need. I'll look into that and get a

[Zope] Re: ZAjax anyone?

2005-10-08 Thread Maik Jablonski
Greg Fischer wrote: Oh, that's cool! The naming RPC threw me off. I knew that was there, but I guess my assumptions (I know , bad) were that it communicated over a different protocol, not using port 80. But, I suppose, tcp over port 80, spewing out xml is good. Probably just what I need.

[Zope] ooops... ZMYSQL tests fail in the ZMI on batching dynamic queries

2005-10-08 Thread Dennis Allison
Sorry for the long message, but there's a lot of context. I've tried to factor the problem out and then provide supporting stuff for the interested. Zope 2.7.6, Python 2.4.1 (Python 2.3.5 behaves in the same fashion). In summary, the problem is that a query run as a test from the ZMI of the

Re: [Zope] ZAjax anyone?

2005-10-08 Thread Peter Bengtsson
2005/10/8, Chris McDonough [EMAIL PROTECTED]: On Oct 8, 2005, at 6:54 AM, Greg Fischer wrote: I would love to have a product (called ZAjax :) that simply receives a request from the client and spits out xml. To be more specific, a set of classes that call ZSQL methods and retrieve

[Zope] Re: ooops... ZMYSQL tests fail in the ZMI on batching dynamic queries

2005-10-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: Sorry for the long message, but there's a lot of context. I've tried to factor the problem out and then provide supporting stuff for the interested. Zope 2.7.6, Python 2.4.1 (Python 2.3.5 behaves in the same fashion).

Re: [Zope] Re: ooops... ZMYSQL tests fail in the ZMI on batching dynamic queries

2005-10-08 Thread Dennis Allison
Right. And that is the problem. I patched lib/python/Shared/DC/ZRDB/dtml/customDefaultReport.dtml per your suggestion and it fixed the bug I'd reported earlier which had to do with proper termination of the ranges. Those now work. Now, there is a second bug. When the query is dynamic,

[Zope-Coders] Zope tests: 8 OK

2005-10-08 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Fri Oct 7 11:01:02 2005 UTC to Sat Oct 8 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Fri Oct 7 22:22:18 EDT

[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-08 Thread Stefan H. Holek
This change breaks Gadfly which doesn't seem to like 'null' at all. I poked around in ZGadflyDA/gadfly a bit, but it's not obvious to me how to fix the parser (*.mar files anyone?). Stefan [snip] File /usr/local/Zope-2_8-branch/lib/python/Products/ZGadflyDA/ gadfly/kjParser.py, line

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-08 Thread Andreas Jung
--On 8. Oktober 2005 15:41:57 +0200 Stefan H. Holek [EMAIL PROTECTED] wrote: This change breaks Gadfly which doesn't seem to like 'null' at all. I poked around in ZGadflyDA/gadfly a bit, but it's not obvious to me how to fix the parser (*.mar files anyone?). No idea about the specific

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-08 Thread Andreas Jung
--On 8. Oktober 2005 16:04:46 +0200 Andreas Jung [EMAIL PROTECTED] wrote: --On 8. Oktober 2005 15:41:57 +0200 Stefan H. Holek [EMAIL PROTECTED] wrote: This change breaks Gadfly which doesn't seem to like 'null' at all. I poked around in ZGadflyDA/gadfly a bit, but it's not obvious to me

[Zope-dev] Decoding of source for text/xml ZPTs

2005-10-08 Thread Chris Withers
Hi All, During complication, the XML parser that processes non-HTML mode ZPT's decodes the string of the source into unicode instructions. In HTML mode, the parse does no decoding and so we get string instructions. My question as a result is: what characterset does the XML parser in

[Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Hi All, I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

[Zope-dev] Re: Decoding of source for text/xml ZPTs

2005-10-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: During complication, the XML parser that processes non-HTML mode ZPT's ^ +- compilation, I'm guessing, but see below ;) decodes the string of the source into unicode instructions. In HTML mode, the parse

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Andreas Jung
--On 8. Oktober 2005 19:15:57 +0100 Chris Withers [EMAIL PROTECTED] wrote: Hi All, I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? The 2.8 branch is closed for new features. With the

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? The 2.8 branch is closed for new features. With the time-based schedule new features should appear regularly with new

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: The 2.8 branch is closed for new features. With the time-based schedule new features should appear regularly with new major releases. So only bug fixes should go into minor releases. In fact, just noticing other mails, I'd also like to merge this to the 2.7 branch, I

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Tino Wildenhain
Am Samstag, den 08.10.2005, 19:15 +0100 schrieb Chris Withers: Hi All, I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? Surely not, but what fix? :-) Nice to see some movement on this

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Andreas Jung
--On 8. Oktober 2005 20:10:21 +0100 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? The 2.8 branch is closed for new

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: Well, this is arguably a bug fix and I incorrectly filed it as a new feature on the trunk. If you can justify it as a bugfix before god and the world,go ahead :-) Cool, will do so to the 2.7 and 2.8 branches tomorrow :-) cheers, Chris PS: I'll mark it as a bug fix in