Re: [Zope-dev] Re: [Zope-Coders] Proposal: put i18n into 2.6
Lennart Regebro wrote: True. But in true XP fashion, each release could simply contain the features that are finished. And if this i18n is finished, then it can be included. I think that would also prevent some drag, because now we decided on which features should be included, and several of them wasn't finished. This I agree with. cheers, Chris ___ 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] Plone, PageTemplates and Zope2.6
alan runyan wrote: 300Mhz Celeron w/ 256MB RAM Zope2.5.1 Python 2.1.3 ab -n 10 http://mysite/plone 1.30 Requests per second Zope2.6 Python 2.1.3 ab -n 10 http://mysite/plone 0.87 Requests per second When you say '2.6', what do you mean? 2.6.0a1, a Zope-2_6-branch checkout (date would be handy) or something else? cheers, Chris ___ 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] Plone, PageTemplates and Zope2.6
Are you using Zope's PageTemplates or AltPT/AltTAL? Also, was this before or after my i18n merge? I still have Fred's recent improvements to TAL to merge. Florent alan runyan [EMAIL PROTECTED] wrote: using chrism-install-branch and caring much less than I have in my past life - I have run ab against Plone in Zope2.6. It appears that Zope2.6 is significantly slower than Zope2.5.1. I ran ab from my Windows XP machine on a local network. 300Mhz Celeron w/ 256MB RAM Zope2.5.1 Python 2.1.3 ab -n 10 http://mysite/plone 1.30 Requests per second Zope2.6 Python 2.1.3 ab -n 10 http://mysite/plone 0.87 Requests per second I ran the tests a few times and picked the highest number. In both 2.5.1 and 2.6 the target cache setting is higher than 4000 (and I am only requesting the first plone page). Also Andy McKay did some quick benchmarks using a simplified PageTemplate skin and he is getting ugly results (he is migrating from DTML to PageTempaltes). -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:[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 )
[Zope-dev] What builds zlib.so?
Hi, I'm trying to compile and use a checkout of the Zope-2_6-branch. I'm compiling it using: usr/local/bin/python2.1 setup.py build_ext -i ...but when I start Zope I get: 2002-09-19T11:15:31 PANIC(300) z2 Startup exception Traceback (innermost last): Module __main__, line 214, in main Module __main__, line 40, in get_storage Module storages, line 4, in ? Module Globals, line 24, in ? Module TreeDisplay, line 14, in ? Module TreeDisplay.TreeTag, line 23, in ? ImportError: No module named zlib Now, in my 2.5.1 source build, there's a zlib.so in /lib/python. In the 2.6 build, there is not. What builds zlib.so? What needs to be fixed so this works? cheers, Chris ___ 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] Testing changes break tests when Products are in INSTANCE_HOME
Hi, The changes made to bring the Testing package into play some while back appear to have broken usage of testrunner.py to run tests if the products you're trying to test are in an INSTANCE_HOME's Products directory. If, for example, I do: set ZOPE_HOME=D:\Zope\2.5.1\ set SOFTWARE_HOME=D:\Zope\2.5.1\lib\python set INSTANCE_HOME=D:\Zope\cmf_dev\ set PYTHONPATH=D:\Zope\2.5.1\;D:\Zope\2.5.1\lib\python set Z_DEBUG_MODE=1 D:\Zope\2.5.1\bin\python D:\Zope\2.5.1\utilities\testrunner.py -d D:\zope\cmf_dev\products\cmfcore\ -v 1 (apologies for wrapping) Then I get a myriad of import errors for things like Products.CMFCore.x.y The reason for this is the that Testing sets it's own INSTANCE_HOME before Zope is imported, so while testrunner.py is still happily finding tests wherever you told it to, the INSTANCE_HOME is pointing to the Testing folder which, of course, is missing all the products. What should we do about this situation? I've tried using PRODUCTS_PATH to get around this, but a few tests still seem to fail when executed under that method :-( cheers, Chris ___ 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] Testing changes break tests when Products are inINSTANCE_HOME
I have modified testrunner to support INSTANCE_HOME installations: http://www.zope.org/Members/shh/TestRunner To test an INSTANCE_HOME product specify the -i flag. plug This is in the collector as a feature+solution. http://collector.zope.org/Zope/489. /plug Cheers, Stefan --On Donnerstag, 19. September 2002 15:00 +0100 Chris Withers [EMAIL PROTECTED] wrote: Hi, The changes made to bring the Testing package into play some while back appear to have broken usage of testrunner.py to run tests if the products you're trying to test are in an INSTANCE_HOME's Products directory. If, for example, I do: set ZOPE_HOME=D:\Zope\2.5.1\ set SOFTWARE_HOME=D:\Zope\2.5.1\lib\python set INSTANCE_HOME=D:\Zope\cmf_dev\ set PYTHONPATH=D:\Zope\2.5.1\;D:\Zope\2.5.1\lib\python set Z_DEBUG_MODE=1 D:\Zope\2.5.1\bin\python D:\Zope\2.5.1\utilities\testrunner.py -d D:\zope\cmf_dev\products\cmfcore\ -v 1 (apologies for wrapping) Then I get a myriad of import errors for things like Products.CMFCore.x.y The reason for this is the that Testing sets it's own INSTANCE_HOME before Zope is imported, so while testrunner.py is still happily finding tests wherever you told it to, the INSTANCE_HOME is pointing to the Testing folder which, of course, is missing all the products. What should we do about this situation? I've tried using PRODUCTS_PATH to get around this, but a few tests still seem to fail when executed under that method :-( cheers, Chris -- Those who write software only for pay should go hurt some other field. /Erik Naggum/ ___ 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] Product construction question
- Forwarded message from [EMAIL PROTECTED] - Date: Thu, 19 Sep 2002 10:56:07 -0400 Subject: Mailman results for Zope-Dev From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi, I have some problems with creating folders and objects. PF is a Folderish class. This is the add function (or manage_add): def addPF(self, id=None, title=None, usercontract=None): Create a portfolio if not id: id = uuidgen() p = PF(id, title, usercontract) self.Destination()._setObject(id, p) # create an account p.addAccount(id='account', valuta='EUR') p.manage_addFolder(id='KKK') return id Now I have the same type of construction for an Account class which is a SimpleItemish class : def addAccount(self, id=None, title=None, valuta=None): Create an user Account if not id: id = uuidgen() p = Account(id, title, valuta) 1: #self.Destination()._setObject(id, p) 2: self._setObject(id, p) return id When I comment in line 1 and leave out line 2, I get an Attribute Error on Destination. When line 1 is commented out and 2 goes in: Voila! I can still create Account objects in the ZMI. So what does the Destination() method do in construction of an object? Cheers, Joost -- Joost van Lawick E: [EMAIL PROTECTED] W: http://www.lawick.com/ -- Joost van Lawick E: [EMAIL PROTECTED] W: http://www.lawick.com/ ___ 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] What builds zlib.so?
Chris Withers writes: I'm trying to compile and use a checkout of the Zope-2_6-branch. I'm compiling it using: usr/local/bin/python2.1 setup.py build_ext -i What happens when you use usr/local/bin/python2.1 setup.py build Dieter ___ 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] Plone, PageTemplates and Zope2.6
alan runyan writes: using chrism-install-branch and caring much less than I have in my past life - I have run ab against Plone in Zope2.6. It appears that Zope2.6 is significantly slower than Zope2.5.1. I would use the profiler (Control_Panel - Debug information - Profiling) to find out where the time is spent. Dieter ___ 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] Product construction question
Joost van Lawick writes: ... def addAccount(self, id=None, title=None, valuta=None): Create an user Account if not id: id = uuidgen() p = Account(id, title, valuta) 1: #self.Destination()._setObject(id, p) 2: self._setObject(id, p) return id When I comment in line 1 and leave out line 2, I get an Attribute Error on Destination. When line 1 is commented out and 2 goes in: Voila! I can still create Account objects in the ZMI. So what does the Destination() method do in construction of an object? Destination is a method of FactoryDispatchers, the kind of thing returned by manage_addProduct[product_name] Apparently, you call addAccount with a self that is not a FactoryDispatcher. Dieter ___ 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] WebDAV Redirects or overriding IDs duing creation
Hi gurus, I'll try this question on this list as well (a part form [EMAIL PROTECTED]). Is it possible to make a redirect during a WebDAV request. For instance I have a PROPFIND one an object that has been renamed and I whan the PROPFIND to access the object with the new ID. I have tried to return a prop result with the information from the renamed object, but the client seems to ignore that (no kidding its MS Web Folder, so what did I expect ;-) Is there a correct way to do this. What I want to do is for the server to override the requested ID on any object or collection that is being created with something more appropriate like the created objects/collections meta_type. MS WebFolders defaults to New Folder for collections. Best Regards, Johan Carlsson -- Torped Strategi och Kommunikation AB Johan Carlsson [EMAIL PROTECTED] Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.torped.se http://www.easypublisher.com ___ 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] Product construction question
def addPF(self, id=None, title=None, usercontract=None): Create a portfolio if not id: id = uuidgen() p = PF(id, title, usercontract) self.Destination()._setObject(id, p) # create an account p.addAccount(id='account', valuta='EUR') p.manage_addFolder(id='KKK') return id Do not call the first argument self if it is not a real method self. Here it should probably be called dispatcher def addAccount(self, id=None, title=None, valuta=None): Create an user Account if not id: id = uuidgen() p = Account(id, title, valuta) 1: #self.Destination()._setObject(id, p) 2: self._setObject(id, p) return id Same comment. Have you read the Developer's Guide? It talks about product creation and should answer your questions. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:[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 )