Re: [Zope-dev] access of non html documents

2002-11-13 Thread Tino Wildenhain
Hi Roberto, One solution is to provide a temporary identifyer via cookie, which gets set if the user sees your page but is not set if she wants to download it directly. A simple non guessable scrable mechanism using your page url, file url and probably ip of the downloader should do for the

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Toby Dickenson
On Tuesday 12 November 2002 7:16 pm, Barry A. Warsaw wrote: Looks like Toby's recent change to ApplicationManager.py causes DB.close() to never be called when you hit Shutdown in the Control Panel. Yes. This is a bad thing for the Berkeley storages because their .close() must get called or

[Zope-dev] defining PythonScript custom permission ?

2002-11-13 Thread Andreas Heckel
Hi, I'd like to be able to define custom permissions throug ZMI that I can query within a number of PythonScript instancse. The permission should express that a set of PythonScripts are executable. The PythonScript do not return a class so the methode described at Zope Book Class Security

[Zope-dev] Strange bug (NOT a Zope bug!) when exporting Zope objects on Windows with Norton Personal Firewall running ...

2002-11-13 Thread Joachim Werner
Hi! I just encountered a very strange bug: One of our clients had problems with exporting and importing his stuff from his local machine to our servers. What happened was that lines like meta name=keywords content=dtml-var keywords became meta name=keywords content=dtml-var keywords and

[Zope-dev] Strange bug (NOT a Zope bug!) when exporting Zope objects on Windows with Norton Personal Firewall running ...

2002-11-13 Thread Joachim Werner
Hi! Sorry for the corrupted mail. I just hit some button by accident and the mail was gone ... Here is the full text: I just encountered a very strange bug: One of our clients had problems with exporting and importing his stuff from his local machine to our servers. What happened was that lines

[Zope-dev] Re: [ZODB-Dev] deadlock prevention for ZODB3 / Zope 2.6

2002-11-13 Thread Chris Withers
Jeremy Hylton wrote: We recently discovered that ZODB3 applications, like Zope 2.6, can deadlock when run in a system that uses multiple storages. This was a fundamental design flaw in ZODB that, happily, has a simple fix. Would this fix also help with this problem:

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Barry A. Warsaw
TD == Toby Dickenson [EMAIL PROTECTED] writes: This is a bad thing for the Berkeley storages because their .close() must get called or you'll end up with corrupt databases or worse wink. TD How much of that paragraph is covered by the wink? The or worse part. If you've

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Chris McDonough
Maybe normal shutdown should manually call the shutdown signal handler function and normal restart should manually call the restart signal handler function? On Wed, 2002-11-13 at 10:28, Toby Dickenson wrote: On Wednesday 13 November 2002 2:10 pm, Barry A. Warsaw wrote: TD == Toby Dickenson

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Chris McDonough
Nevermind. I see what Toby did in the signals module and it makes sense. On Wed, 2002-11-13 at 11:01, Chris McDonough wrote: Maybe normal shutdown should manually call the shutdown signal handler function and normal restart should manually call the restart signal handler function? On

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Toby Dickenson
On Wednesday 13 November 2002 4:01 pm, Chris McDonough wrote: Maybe normal shutdown should manually call the shutdown signal handler function and normal restart should manually call the restart signal handler function? We are pretty close to that now, which I agree is a good thing. The

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Barry A. Warsaw
TD == Toby Dickenson [EMAIL PROTECTED] writes: worse part. If you've enable autopacking and you don't cleanly close the storage, you won't exit the process because the autopack thread won't get stopped and joined. TD Yes, I had the same problem with DirectoryStorage, which

Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Toby Dickenson
(cc zodb-dev, who may also be interested) On Wednesday 13 November 2002 4:18 pm, Barry A. Warsaw wrote: TD == Toby Dickenson [EMAIL PROTECTED] writes: worse part. If you've enable autopacking and you don't cleanly close the storage, you won't exit the process because the

Re: [ZODB-Dev] Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Barry A. Warsaw
TD == Toby Dickenson [EMAIL PROTECTED] writes: What would happen if the thread got killed in the middle of the move? TD A more interesting question is what happens if the thread is TD killed when it has moved some, but not all, of the files which TD relate to one

Re: [ZODB-Dev] Re: [Zope-dev] DB.close() needs to be called

2002-11-13 Thread Toby Dickenson
On Wednesday 13 November 2002 5:27 pm, Barry A. Warsaw wrote: Potentially yes, although the steps in the pack process are BerkeleyDB transactionally protected. I think the mark-and-sweep phases are examples of things that could take a long time. It should be possible to craft some escape

[Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-13 Thread Jeff Rush
Working on updating my ZOPE and ZEO RPMs I got to wondering... What's in the default data.fs that ships with Zope? I mean, ZEO (actually ZODB) auto-creates a data.fs when one isn't found, so why does Zope come with one? Or if there -is- something Zope-specific in data.fs, then shouldn't there

Re: [Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-13 Thread Casey Duncan
It is only there due to lack of time to take it out. We had planned to take it out for 2.6, but time was never made to replace it with code to bootstrap an empty storage with the proper root level elements still residing in Data.fs.in. -Casey On Wednesday 13 November 2002 02:22 pm, Jeff Rush

[Zope-dev] HTTP content negotiation-- has anyone tried this in Zope?

2002-11-13 Thread Craeg Strong
Hello: I try to keep tabs on other open source CMSs, in particular Apache Cocoon, and I noticed this message: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103717736917834w=2 talking about software that, in effect, enables one to configure a server to respond to the HTTP headers having to do

Re: [Zope-dev] HTTP content negotiation-- has anyone tried this in Zope?

2002-11-13 Thread Heiichiro NAKAMURA
On Wed, 13 Nov 2002 16:14:11 -0800 Craeg Strong [EMAIL PROTECTED] wrote: Hello: talking about software that, in effect, enables one to configure a server to respond to the HTTP headers having to do with content negotiation: preferred charset, preferred language, and content-type.

Re: [Zope-dev] HTTP content negotiation-- has anyone tried this in Zope?

2002-11-13 Thread Joachim Werner
Hi! We've talked a lot about that when we discussed Zope I18N some time ago. Most of this is relatively easy to accomplish even now. Regarding language negotiation: Both Localizer and ZBabel do this. The problem in my practical experience is that most people do not configure their browsers

Re: [Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-13 Thread Jeff Rush
I don't quite understand -- so there *are* root level elements specific to Zope that need to be copied into a Zope-over-ZEO environment? (hm, how do those elements get into a non-FileStorage Zope-over-ZEO environment?) And do those elements interfere even a little in a non-Zope-just-ZEO

[Zope-dev] SSL Server integrated to Zope

2002-11-13 Thread Hajime Nakagami
Hi! I try to hack SSL Server integreted to Zope. http://www.zope.org/Members/nakagami/zSSL #I wan't to use M2Crypto, Because It's difficult to me. I don't have enoght test, And I only tested on Cygwin. But I think zSSL good for several platform and some version (Probably 2.5 and later) of Zope.