Re: [Zope-dev] ZopeTime Warp
- The output of the 3rd test case is incorrect. It's as if strftime is - changing the time zone. I'd recommend two things: 1) Look at TZ and LC_TIME to see if either is defined in Zope's shell environment 2) Write a super-simple test program in C that utilizes the C version of strftime() and see if your results differ from doing it in Zope. My guess is that doing (2) above will produce the same result, meaning the problem is not within Zope. Good luck. --Derek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Benchmarks: DTML vs. ZPT?
- Has anyone done any performance comparisons between DTML and ZPT yet? The - reason I'm asking is that we did some first(completely unscientific) tests - and had the impression that ZPT were actually quite a bit SLOWER than DTML - - and I just can't believe that ... I haven't done any tests (or even used ZPT on a production site yet), but I'd be shocked if there was any significant speed difference at all. If there *is* a measurable difference, then somebody really futzed up the ZPT parser (enough to have it classified as a bug). ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PDF-specific Bug in the ZServer implementation??? Orjust strange behavoiur of IE?
- Any hints on that? The failure to open a PDF can be caused by the browser never knowing that file is all done downloading. If Zope is running on WindowsNT and you're using Solaris (either as the workstation or else as an HTTP proxy) then you may be getting a rare bug between the WindowsNT and Solaris TCP/IP stacks. The Solaris packet sends an out-of-order FIN (or was it just a FIN with no data? Can't remember) and the WindowsNT stack never closes the connection, NOR does it acknowledge the last packet before the FIN, so you wind up just stuck. I.e., you'll see a failed PDF download. Sun and MS both know about this, but neither will claim responsibility. I don't remember the exact details, but we saw this problem a few months ago. It was more prevalent with PDFs than anything else because of large filesize and the fact that I.E. must spawn the PDF control (aka 'widget') with the browser. Just a thought. --Derek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Patch acceptance. What about this one?
- I'd like to second this. There's nothing more annoying than a - corporate-sponsered Open Source project ignoring patches from the - community... - - - maybe you'd like to re-evaulate that comment given the rest of the thread ;-) I'm delighted to see the prompt response. I brought it up because I have seen a couple of projects where a company published a product under an Open Source license, but did not utilize the community. It seems that, when a group of people are getting paid to work on a project, anything patches from outside that company gets ignored because of the Not Developed Here anti-pattern. But I do admit that Zope Corp. has done an excellent job of embracing (and supporting!) its community. Thank you! Now, can I get a reponse to my previous question regarding PUT_factory()? :) --Derek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Patch acceptance. What about this one?
- Fellow Zope addicts, I'd like to second this. There's nothing more annoying than a corporate-sponsered Open Source project ignoring patches from the community... --Derek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: [Zope] WebDAV or FTP types?
- Instead of creating a Product, you can just put an External Method in the - root of your site. A couple of weeks ago, I asked about customizing the default Zope type when a file is uploaded with either WebDAV or FTP. For example, I want .html files to be a ZopePageTemplate instead of a DTML Document, which is the default. Ron gave me the excellent suggestion of creating an External Method that looks like the following: - def PUT_factory(self, name, typ, body): - Make Page Template the default type for ftp uploads. - from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate - - if typ == 'text/html': - return ZopePageTemplate(name) - return None Since then, I've done some learning, and now I'd like to understand exactly *why* Ron's external method works. I'm creating a Zope Product that will introduce a new Zope type called MIME Remapper. This MIME Remapper will be a ZClass that has a single property sheet, which allows you to associate particular MIME types with particular Zope types using a nifty text field and dropdown. The problem is, I don't understand why Ron's suggestion actually works. I assume that the method PUT_factory() is over-riding the built-in default, and when it returns None (for an unknown MIME type), Zope --for some magical reason-- falls back to its built-in PUT_factory() to figure out the MIME type. Is that right? Now, does that mean that the only way to override PUT_factory() is via an external method? If so, why is that? If not, can I create a new ZClass that has a method called PUT_factory()? Will a new instance of my ZClass mean that PUT_factory() is overridden for the folder the instance is in? If so, then why is Zope finding the PUT_factory() of my new MIME Remapper type when it actually wants the PUT_factory() for the folder that I'm in? Do I need to redefine the PUT_factory() of the instance's folder? How do I do that? Obviously, I'm confused. I feel like this particular problem will give me good insight into how Zope works, so I'd love an explanation of why Ron's PUT_factory() works. (FYI, I understand class inheritance, just not within the Zope framework.) Thanks, Derek Simkowiak [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )