RE: [Zope-dev] Zope 2.4.2 Error
Thanks Andreas, -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 20, 2001 12:07 AM To: E. Seifert; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope 2.4.2 Error Jup, I assume you are using some 3rd party products that still use the old SearchIndex stuff. Nothing to worry about -just a warning. But what's about this error then (it's not just a warning)? Does it perhaps relate to the Renderable Product? TIA Erich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of E. Seifert Sent: Friday, October 19, 2001 11:01 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] Zope 2.4.2 Error Hi list, I just installed the 2.4.2 update over my Linux Zope 2.4.1 and I get the following traceback: Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: de) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199, in __call__ (Object: index_html) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: index_html) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__ (Object: standard_html_header) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: standard_html_header) File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: standard_site_menue) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__ (Object: render) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: render) File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in renderwob (Object: objectValues(['SimpleNav Element'])) File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: ab) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__ (Object: render) KeyError: validate Is there someone who can help me? TIA Erich ___ 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 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 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] Zope Cygwin
- Original Message - From: Norman Vine [EMAIL PROTECTED] To: 'Chris McDonough' [EMAIL PROTECTED] I wanted to torture test the Zope session manager under the cygwin-built Zope using ab, which is good real-world threading test. It appears that neither ab nor wget much like something about their communication with the cygwin-built Zope. Here's a wget session with a cygwin-built python/Zope combo: .. Yup... I get the same results :-( If you can tell me where the code is in Zope that is determining the Content-Length I will look into the Python Cygwin 'C code that is being called. This may well be related to the reported breakage with cygwin more recent than 1.3.1/1.1.8 and apache. I've got a faulting setup with squid showing the same thing, but no time to debug (yet). You might consider testing with 1.1.8 and seeing if that fixes the issue. If reverting does 'fix' this, and the time to cause the fault is relatively short, consider doing a binary CVS search to find the commit that broke it. Rob ___ 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] zope redistibution
Hi Lukas, Have you tried a simple export/import? -steve On Thursday, October 18, 2001, at 07:44 PM, Lukas Maag wrote: hi, i use zope 2.4.1 and the redistribution fuction works not. i can not distribute a product under allowance of redistribution. if i want to distrbute on another zope installation it says, that this is not redistributable, although i marked explicitely 'allow redistribution' on the other distribution! it's now a problem for me, because i relied on this. i can not reuse my improved product! can anyone help me, please. thanx lukas ___ 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 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] ComputedAttribute, Persitent and too many datafull baseclasses
Hi, In a product I am writing, I am trying to add a ComputedAttribute to an instance of a Folder descendant class. This is the code I use: def addComputedAttribute(self, attributeName, sourceCode): methodName = '_ca_get%s' % attributeName self.addMethod(methodName, sourceCode) setattr(self, attributeName, ContextComputedAttribute(self.__class__.__dict__[methodName])) where at first I defined ContextComputed Attribute like this: import ComputedAttribute _ComputedAttribute = ComputedAttribute.ComputedAttribute del ComputedAttribute class ContextComputedAttribute(_ComputedAttribute): pass This put the Folder in a bad state : when I access it later, the Zope instance crashes. So I supposed I needed to use a persistent Attribute and I tried with ContextComputedAttribute class defined like this: class ContextComputedAttribute(Persistent): def __init__(self, test): pass In this case, the Folder stays in a good state but it does not fullfill the requirements as ContextComputedAttribute does not descend from the real Zope ComputedAttribute class. My problem is the following : I cannot define a class like this: import ComputedAttribute _ComputedAttribute = ComputedAttribute.ComputedAttribute del ComputedAttribute class ContextComputedAttribute(_ComputedAttribute, Persistent): pass In this case, I get the following error TypeError: too many datafull base classes which has to do with too many ExtensionClass derivation... Can someone tell me how to define a class with both ComputedAttribute and Persistent behaviours ? Thanks a lot. -- Godefroid Chapelle BubbleNet sprl rue Victor Horta, 30 1348 Louvain-la-Neuve Belgium Tel + 32 (10) 457490 Mob + 32 (477) 363942 TVA 467 093 008 RC Niv 49849 ___ 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] Zope 2.4.2 Error
Hi Andreas, thanks again for your answer. Why do you say it is an error. It is a deprecation warning. This warning framework is also used in Python to warn about the usage of deprecated features that will change or go away in a later release. But it is not an error and does not limit your functionality. I'm not talking about the deprecation warning but about the error message I received after installing the update (it was in the citation - I should have mentioned it more explicitly): Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: de) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 199, in __call__ (Object: index_html) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: index_html) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 188, in __call__ (Object: standard_html_header) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: standard_html_header) File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: standard_site_menue) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 195, in __call__ (Object: render) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: render) File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 770, in renderwob (Object: objectValues(['SimpleNav Element'])) File /usr/local/zope/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: ab) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 203, in __call__ (Object: render) KeyError: validate Bye Erich ___ 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] Zope Cygwin
Possibly dumb question - Are there binary distributions of v 1.1.8 of cygwin1.dll available from cygwin.org anywhere or should I compile it from source? I looked around for a while on there and it seems that I'd need to use CVS to check out a 1.1.8-tagged branch and compile to get back to that revision. This may well be related to the reported breakage with cygwin more recent than 1.3.1/1.1.8 and apache. I've got a faulting setup with squid showing the same thing, but no time to debug (yet). You might consider testing with 1.1.8 and seeing if that fixes the issue. If reverting does 'fix' this, and the time to cause the fault is relatively short, consider doing a binary CVS search to find the commit that broke it. Rob ___ 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] Anyone know how to add a property to a Zope Product (not its instances)?
By default, Zope adds the title and version properties, for which it gets the value from version.txt and meta_type, but does anyone know a way to add more? This is only half an answer, but maybe it helps: I am not quite sure if you can do that the easy way from Python. (I.e. just define a _properties list). But you certainly can use manage_addProperty: self.Control_Panel.Products.YOURPRODUCT.manage_addProperty(id=TEST, value=TEST ENTRY, type=string) The question is where to put this, probably somewhere in the __init__.py? I don't know if you CAN call it from there. It definitely works from the contructor method of your product, but then the new property will only show up after the first instance has been added ... Joachim ___ 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] Zope Cygwin
- Original Message - From: Chris McDonough [EMAIL PROTECTED] To: Robert Collins [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; 'Chris McDonough' [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, October 21, 2001 3:08 AM Subject: Re: [Zope-dev] Zope Cygwin Possibly dumb question - Are there binary distributions of v 1.1.8 of cygwin1.dll available from cygwin.org anywhere or should I compile it from source? I looked around for a while on there and it seems that I'd need to use CVS to check out a 1.1.8-tagged branch and compile to get back to that revision. I'd suggest using CVS, if only to get ready for binary searching :}. -Rob ___ 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] not Python 2.2a1 but Python 2.2b1
Andy McKay wrote: Is out and: Large file support is now enabled on Win32 and Win64 platforms, and automatically configured (at least on Linux and Solaris). Cool, that will mean there will be less worries about Zope users hitting the 2 gig limit. But will Zope 2.4.x run on 2.2 ? --- Hannu ___ 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] not Python 2.2a1 but Python 2.2b1
Hannu Krosing wrote: Andy McKay wrote: Is out and: Large file support is now enabled on Win32 and Win64 platforms, and automatically configured (at least on Linux and Solaris). Cool, that will mean there will be less worries about Zope users hitting the 2 gig limit. But will Zope 2.4.x run on 2.2 ? No guarantees, but I do know the PythonLabs crew and the Zope development crew try to keep things working with 2.2. That doesn't mean there won't be problems, but I don't suspect it'll be as tricky as the move from 1.5.2 to 2.1. The main thing is that the Zope C extensions keep working, but that seems to be watched fairly carefully. So, perhaps yes, perhaps no, but don't expect a long period of Zope trying to catch up with Python again. Regards, Martijn ___ 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] not Python 2.2a1 but Python 2.2b1
An important aspect to consider: in some cases, you simply need the ZEO storage server to have large file support. Thus, if you can get the ZSS running under Python 2.2, then you're set. This is considerably less ambitious than getting all of Zope (e.g. the catalog) migrated to a new Python version. Also, since Barry and Jeremy (or, as we say, Barremy) are now calling the shots on ZODB and ZEO, you can bug them about it. :^) They're likely to care a lot about keeping everything in track with Python 2.x. --Paul Martijn Faassen wrote: Hannu Krosing wrote: Andy McKay wrote: Is out and: Large file support is now enabled on Win32 and Win64 platforms, and automatically configured (at least on Linux and Solaris). Cool, that will mean there will be less worries about Zope users hitting the 2 gig limit. But will Zope 2.4.x run on 2.2 ? No guarantees, but I do know the PythonLabs crew and the Zope development crew try to keep things working with 2.2. That doesn't mean there won't be problems, but I don't suspect it'll be as tricky as the move from 1.5.2 to 2.1. The main thing is that the Zope C extensions keep working, but that seems to be watched fairly carefully. So, perhaps yes, perhaps no, but don't expect a long period of Zope trying to catch up with Python again. Regards, Martijn ___ 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 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 )