Re: [Zope-dev] Possible ZCatalog Bug
Does this work? (it does for me) If not, does this? If so, what kind of index is 'date'? - Original Message - From: "Edmund Goppelt" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 9:05 PM Subject: Re: [Zope-dev] Possible ZCatalog Bug > On Thu, Apr 05, 2001 at 05:31:23PM -0400, Chris McDonough wrote: > > What does "cleanrequest" return? > > It removes null strings from the REQUEST variable. But I substituted > the empty mapping {} and got the same anomolous behavior. > > -- > > Ed Goppelt > ___ 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] Possible ZCatalog Bug
On Thu, Apr 05, 2001 at 05:31:23PM -0400, Chris McDonough wrote: > What does "cleanrequest" return? It removes null strings from the REQUEST variable. But I substituted the empty mapping {} and got the same anomolous behavior. -- Ed Goppelt ___ 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] Strange errors in the log
> My hunch is on CST but maybe it's catalog or (less likely) something else. > I'd agree with the conflicts thing, it certainly seems to make them happen > more often. I see a lot of them when packing zodb's too. For us, it definitely is not the Catalog. The site I saw the error first uses just ZClasses (with catalogAware subclassed, but that should not be relevant) and Core Session Tracking (not the release from this week, the last one). It seems to come up after a while, maybe when sessions expire or so ... 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] Strange errors in the log
> This bug will be the death of me. I see it every once in a while. It > happens with mounted storages. I think it has something to do with conflict > errors, but I'm not certain. If you can reproduce it reliably, I'd love to > fix it. Hmmm... I can produce this pretty reliably now on versions 2.2.4 through 2.3.1. I need to try and get it into something I can post to someone. Pretty much all our servers now exhibit this. My hunch is on CST but maybe it's catalog or (less likely) something else. I'd agree with the conflicts thing, it certainly seems to make them happen more often. I see a lot of them when packing zodb's too. The only other thing I've noticed (well, haven't noticed ;-) is that I've _never_ had any noticable data loss due to these messages and the OIDs are always really low numbers. Dunno if that helps, I'm just feeding in what data I can. That FieldIndex bug is causing my much more pain right now :-S Good luck, 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] Strange errors in the log
This bug will be the death of me. I see it every once in a while. It happens with mounted storages. I think it has something to do with conflict errors, but I'm not certain. If you can reproduce it reliably, I'd love to fix it. - Original Message - From: "Joachim Werner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 4:47 PM Subject: [Zope-dev] Strange errors in the log > Hi! > > We have this in the logs of a brand new 2.3.1: > > -- > 2001-04-06T03:16:10 ERROR(200) ZODB Couldn't load state for > '\000\000\000\000\000\000\354\222' > Traceback (innermost last): > File /var/lib/zope/iuvenoProducts/lib/python/ZODB/Connection.py, line 508, > in setstate > AttributeError: 'None' object has no attribute 'load' > > Does anybody know where it comes from? > > We are using the CoreSession product. > > 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 ) > ___ 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] Possible ZCatalog Bug
What does "cleanrequest" return? - Original Message - From: "Edmund Goppelt" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 5:04 PM Subject: Re: [Zope-dev] Possible ZCatalog Bug > On Thu, Apr 05, 2001 at 12:02:31PM -0400, Chris McDonough wrote: > > I tried this in the most recent 2.3 branch: > > > > > > > > And it returned all objects. Are you sure the mapping is empty? > > Yep, though I am passing in some other parameters. Here's the dtml code that failed: > > > > My recollection is that this worked fine under 2.3.0, but I could be wrong about this. > > -- > > Ed Goppelt > ___ 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] Possible ZCatalog Bug
On Thu, Apr 05, 2001 at 12:02:31PM -0400, Chris McDonough wrote: > I tried this in the most recent 2.3 branch: > > > > And it returned all objects. Are you sure the mapping is empty? Yep, though I am passing in some other parameters. Here's the dtml code that failed: My recollection is that this worked fine under 2.3.0, but I could be wrong about this. -- Ed Goppelt ___ 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] Strange errors in the log
Hi! We have this in the logs of a brand new 2.3.1: -- 2001-04-06T03:16:10 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\000\354\222' Traceback (innermost last): File /var/lib/zope/iuvenoProducts/lib/python/ZODB/Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute 'load' Does anybody know where it comes from? We are using the CoreSession product. 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] dtml-in performance
> > What can I do to maximize the peformance of a dtml-in statement? > > When iterating over a 2000 row database query, it takes about 20 > > seconds - time mostly spent doing security checks, and calling > > __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? > > -Brett > > > > Another performance consideration with looping in DTML is that whatever > is in your DTML block is reinterpreted each time through. Although it is > parsed (hopefully) only the first time through, this overhead is still > considerable when multiplied over 2000 rows. You are essentially using > an interpreter (Python) as an interpreter for DTML. I would seriously > consider moving this entire operation (query, iteration and html > generation) to native Python if performance is a big consideration. We have had similar performance problems with the first version of our Content Management demo. It used both dtml-in loops and ZClasses (with other ZCLasses as base classes) heavily. The combination of the both can be very efficient in slowing down Zope. I remember the first versions of Martijn Faassen's XML-Widgets that had a similar performance problem. The reason is that in addition to the dtml-in overhead ZClasses take a lot of time for acquiring from their containers and inheriting from their "base classes" as all the inheritance stuff is only simulated - in fact almost everything is just stored in property sheets and has to be processed by the security engine if I got it right. In Python these problems go away. Maybe it is time for a good reimplementation of ZClasses, inlcuding the creation of REAL Python classes in the filesystem on the fly. BTW: Does anybody know if the Zope Page Templates (ZPT) parser is faster with looping than the DTML one? Cheers, 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] DBObjects 1.0 and Demos for Proiektor & ZQuest released
Hi! First of all, sorry if the http://demo.iuveno-net.de server is not available from time to time. We are experiencing a very strange Zope stability problem that has not been localized yet. > 1. dbobjects demo is not existent Yes, it is. > 2. the documentation for projektor is password protected Right. This is documented on the site now. The docs are not publicly available yet as they are not completely "cleaned up" from customer-specific stuff yet. > 3. there are no downloads apparent for anything but dbobjects Right, but better telling the world that we are GOING TO publish something than just keeping it secret, yes? > dbobjects distro > 1. no __init__.py, hence not usable in zope without guessing your own. The documentation says that it is not a product package yet. But this will change soon, sorry. > 2. the DBFolderishObject references a SQLTools module that is not present >- it does not seem to use this so i just removed the reference. Yep, I think this is an unnecessary reference. But ask Stephan to be sure ;-) > documentation > 1. it should be explicitly stated that these are for subclassing in python > and the name restrictions imposed. Will be fixed. > dbobjects arch > 1. no use of volatile variables to minimize read/writes to db. > 2. the use of exec can lead to only sorts of ref count problems, using > of __imp__ (or imp) would probably be better. That's what we opened it up for: Feedback on how to improve it ... Thanks! > hopefully some of the above can be fixed, and then i'm sure these products > will see some use in the zope community. > kapil Thanks again for the feedback! Regarding the code downloads: I think code for the CMS stuff will be publicly available rather soon. We had the ZClass version on the site already, but now it is just a couple of days before a "real" Python-based version will be ready for Alpha release. For ZQuest and Proiektor we might not offer a PUBLIC download before the code is reasonably cleaned up. but for "hard-core" developers who can live with "half-baked" stuff as you put it: Stephan can give you the code. We will also set up a CVS, but this will not be done in the next couple of days ... Cheers, Joachim Werner CEO iuveno AG ___ 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] dtml-in performance
> > What can I do to maximize the peformance of a dtml-in statement? > > When iterating over a 2000 row database query, it takes about 20 > > seconds - time mostly spent doing security checks, and calling > > __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? > > -Brett > > > > Another performance consideration with looping in DTML is that whatever > is in your DTML block is reinterpreted each time through. Although it is > parsed (hopefully) only the first time through, this overhead is still > considerable when multiplied over 2000 rows. You are essentially using > an interpreter (Python) as an interpreter for DTML. I would seriously > consider moving this entire operation (query, iteration and html > generation) to native Python if performance is a big consideration. We have had similar performance problems with the first version of our Content Management demo. It used both dtml-in loops and ZClasses (with other ZCLasses as base classes) heavily. The combination of the both can be very efficient in slowing down Zope. I remember the first versions of Martijn Faassen's XML-Widgets that had a similar performance problem. The reason is that in addition to the dtml-in overhead ZClasses take a lot of time for acquiring from their containers and inheriting from their "base classes" as all the inheritance stuff is only simulated - in fact almost everything is just stored in property sheets and has to be processed by the security engine if I got it right. In Python these problems go away. Maybe it is time for a good reimplementation of ZClasses, inlcuding the creation of REAL Python classes in the filesystem on the fly. BTW: Does anybody know if the Zope Page Templates (ZPT) parser is faster with looping than the DTML one? Cheers, 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 )
[Zope-dev] make an object unowned
Does anybody know how to make an object unowned, programmatically or through the interface? Thanks, Tim ___ 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] DBObjects 1.0 and Demos for Proiektor & ZQuest released
hi, this seems pretty cool, and i'd like to thank stephen and iuveno for releasing it, but the release seems pretty half-baked. the website 1. dbobjects demo is not existent 2. the documentation for projektor is password protected 3. there are no downloads apparent for anything but dbobjects dbobjects distro 1. no __init__.py, hence not usable in zope without guessing your own. 2. the DBFolderishObject references a SQLTools module that is not present - it does not seem to use this so i just removed the reference. documentation 1. it should be explicitly stated that these are for subclassing in python and the name restrictions imposed. dbobjects arch 1. no use of volatile variables to minimize read/writes to db. 2. the use of exec can lead to only sorts of ref count problems, using of __imp__ (or imp) would probably be better. hopefully some of the above can be fixed, and then i'm sure these products will see some use in the zope community. cheers kapil >>Hello everyone, >> >>iuveno AG, Ingolstadt Germany, has made available a demo and products page, >>releasing several products: >> >>THE LINK: http://demo.iuveno-net.de/ >> >>1. DBObjects 1.0 - DBObjects is a framework that maps relational data to a >>Zope object tree. It provides many features (such as SQL Method >>auto-generation) and saves up to 95% development time on object creation >>with relational data. API Documentation, a Demo, Feature List and so on are >>available on the site. >> >>2. Proiektor - Proiektor is a groupware and project management system >>developed by iuveno. It is based on DBObjects and implements a nice set of >>features with some unique design ideas. But see yourself... >> >>3. ZQuest - ZQuest was originally written for a university as testing tool >>and is now also developed by iuveno AG. It has a good set of features, >>especially for scientific questions. ZQuest uses DBObjects of course. If >>you are interested, click on the link above ... >> >>4. CMS - Our Content Management System is coming soon with a true >>user-friendly management interface... >> >>ALL THESE PRODUCTS ARE OPEN SOURCE!!! Please feel free to contact me any >>time via E-mail ([EMAIL PROTECTED] or [EMAIL PROTECTED]) or via phone at >>+1-901-230-ZOPE (9673). >> >>I hope you enjoy! >> >>Regards, >>Stephan >> >> >>-- >>Stephan Richter >>CBU - Physics and Chemistry Student >>Web2k - Web Design/Development & Technical Project Management >> >> >>___ >>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] ZCatalog FieldIndex Bug
Hi, Correct me if I'm wrong, but if I query a field index with an empty string, I expect to get returned all catalogued objects where that attribute's value _is_ the empty string. Anyway, this happens most of the time and I wish it happened all the time. Basically, the only situation where this _doesn't_ happen is when _none_ of the objects catalogued in the field index have a value of the empty string, which seems really bug and nasty to me ;-) Well, the attached .zexp will demonstrate the problem nicely. Import it and 'Test' the 'dotest' python script. ..then read the source. You'll also see my gripe about the hard coded redirect in manage_catalogReindex, which prevents you automatically re-indexing catalogs unless you use the hack I did. Right, I'm off to the collector :-) cheers, Chris fieldindexTest.zexp
Re: [Zope-dev] 27 million objects.
I did try that but gave up when it got very unwieldy. Mind you that was nearly a year ago before btree folders and I knew what the heck I was actually doing in Zope. Cheers. -- Andy McKay. - Original Message - From: "Michael R. Bernstein" <[EMAIL PROTECTED]> To: "Erik Enge" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 7:24 AM Subject: Re: [Zope-dev] 27 million objects. > Erik Enge wrote: > > > > The programmer solving our problems with the post codes has solved it in a > > different way than what I would've done (his method is way superior), so > > we're not ending up adding all addresses as Zope Objects. > > Oh well. Does anyone else have any setups that store truly > massive (50k, 100k, 1M, you know, *lots*) numbers of > objects? Preferably stored in a BTree of some sort > (ZPatterns Rack, BTree folder, etc.). the objects can be > simple ZClasses, or almost anything else. I'm trying to find > out of there is a point where you start getting non-linear > performance penalties for additional objects (storing, > retreiving, or indexing). > > Meanwhile Erik, what approach *did* your programmer take? > > > Therefore, I don't have any benchmark tests available. We are going to > > transfer some 10GB of data at a later stage though (within a month), and > > that could result in some tests being done - if so, I'll send you an > > email. :-) > > I'll look forward to it. > > Cheers, > > Michael Bernstein. > > ___ > 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] Possible ZCatalog Bug
I tried this in the most recent 2.3 branch: And it returned all objects. Are you sure the mapping is empty? The collector is the right place for things like this. I hope it's not broken. :-( - Original Message - From: "Edmund Goppelt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 11:54 AM Subject: [Zope-dev] Possible ZCatalog Bug > A ZCatalog when passed an empty mapping of search terms returns no > records found in Zope 2.3.1, instead of all records. This is not the > way I remember ZCatalog working in previous versions of Zope. Is this > a bug? > > Too, can someone clue me in on the proper place to look for bugs in > Zope before posting an email like this one? I really hate to take up > people's time raising known bugs. Maybe I just don't know how to use > it, but the bug collector seems to be out of date or broken or both. > > -- > > Ed Goppelt > > ___ > 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] Possible ZCatalog Bug
A ZCatalog when passed an empty mapping of search terms returns no records found in Zope 2.3.1, instead of all records. This is not the way I remember ZCatalog working in previous versions of Zope. Is this a bug? Too, can someone clue me in on the proper place to look for bugs in Zope before posting an email like this one? I really hate to take up people's time raising known bugs. Maybe I just don't know how to use it, but the bug collector seems to be out of date or broken or both. -- Ed Goppelt ___ 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] 27 million objects.
Erik Enge wrote: > > The programmer solving our problems with the post codes has solved it in a > different way than what I would've done (his method is way superior), so > we're not ending up adding all addresses as Zope Objects. Oh well. Does anyone else have any setups that store truly massive (50k, 100k, 1M, you know, *lots*) numbers of objects? Preferably stored in a BTree of some sort (ZPatterns Rack, BTree folder, etc.). the objects can be simple ZClasses, or almost anything else. I'm trying to find out of there is a point where you start getting non-linear performance penalties for additional objects (storing, retreiving, or indexing). Meanwhile Erik, what approach *did* your programmer take? > Therefore, I don't have any benchmark tests available. We are going to > transfer some 10GB of data at a later stage though (within a month), and > that could result in some tests being done - if so, I'll send you an > email. :-) I'll look forward to it. Cheers, Michael Bernstein. ___ 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] Trouble with ZODB when switching betweenZope-releases with Python 1.5 and Python2.0
yes I removed all .pyc files with rm -Rf *.pyc :) thanks Ulrich Eck - Original Message - From: "Bill Anderson" <[EMAIL PROTECTED]> To: "ZOPE-DEV Mailingliste" <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 4:43 PM Subject: Re: [Zope-dev] Trouble with ZODB when switching betweenZope-releases with Python 1.5 and Python2.0 > On 05 Apr 2001 12:28:34 +0200, Ulrich Eck wrote: > > hi out there, > > > > I recently tried Zope-2.3.1b3 with Python 2.0 and it worked so far ... > > except some of the known issues at compile time .. > > > > I had trouble with a few products including ParsedXML so I switched back > > to Python 1.5.2 and updated to Zope-2.3.1 > > > > I did not replace my Data.fs. > > > > Everything works fine .. except when i want to browse one of my > > test-directories > > where I have many Instances of different Products I get this Error: > > > > When you switched python versions, did you use a cleanzope tree? > > if not (or just to clean it out) try deleting all the .pyc files in your > zope tree. I've seen this error when distributing .pyc files from 2.0 > machines to 1.52 machines. > > cd $ZOPEHOME > find * |grep .pyc$ |xargs rm > > i use thiswhenever I seem to be having an issue, just to clear out > potential problems there (have had that before). > > Bill > > > > ___ > 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] Trouble with ZODB when switching betweenZope-releases with Python 1.5 and Python2.0
On 05 Apr 2001 12:28:34 +0200, Ulrich Eck wrote: > hi out there, > > I recently tried Zope-2.3.1b3 with Python 2.0 and it worked so far ... > except some of the known issues at compile time .. > > I had trouble with a few products including ParsedXML so I switched back > to Python 1.5.2 and updated to Zope-2.3.1 > > I did not replace my Data.fs. > > Everything works fine .. except when i want to browse one of my > test-directories > where I have many Instances of different Products I get this Error: When you switched python versions, did you use a cleanzope tree? if not (or just to clean it out) try deleting all the .pyc files in your zope tree. I've seen this error when distributing .pyc files from 2.0 machines to 1.52 machines. cd $ZOPEHOME find * |grep .pyc$ |xargs rm i use thiswhenever I seem to be having an issue, just to clear out potential problems there (have had that before). Bill ___ 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] dtml-in performance
Brett Carter wrote: > > What can I do to maximize the peformance of a dtml-in statement? > When iterating over a 2000 row database query, it takes about 20 > seconds - time mostly spent doing security checks, and calling > __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? > -Brett > Another performance consideration with looping in DTML is that whatever is in your DTML block is reinterpreted each time through. Although it is parsed (hopefully) only the first time through, this overhead is still considerable when multiplied over 2000 rows. You are essentially using an interpreter (Python) as an interpreter for DTML. I would seriously consider moving this entire operation (query, iteration and html generation) to native Python if performance is a big consideration. -- | Casey Duncan | Kaivo, Inc. | [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 )
RE: [Zope-dev] Trouble with ZODB when switching between Zope-releases with Python 1.5 and Python2.0
> ZopeERROR > Error Type: UnpicklingError > Error Value: invalid load key, 'X'. > > > > It seems, that there is one Instance in a undefined state which > is probably > caused by the differences > in pickling between Python 1.5 and 2.0. Not an undefined state; 'X' is the marker for BINUNICODE, which means that you have managed to pickle a unicode object while you were running under Python 2. > Is there a way to find out which object causes this error and > delete it If you run under 1.5.2, the objects in your test directory containing the unicode should appear to be "Broken" objects, or not work correctly when you visit them. Once you identify the culprits, you could load the db under Python 2 again and either get rid of those objects or change them to get rid of the unicode data in them. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
[Zope-dev] DBObjects 1.0 and Demos for Proiektor & ZQuest released
Hello everyone, iuveno AG, Ingolstadt Germany, has made available a demo and products page, releasing several products: THE LINK: http://demo.iuveno-net.de/ 1. DBObjects 1.0 - DBObjects is a framework that maps relational data to a Zope object tree. It provides many features (such as SQL Method auto-generation) and saves up to 95% development time on object creation with relational data. API Documentation, a Demo, Feature List and so on are available on the site. 2. Proiektor - Proiektor is a groupware and project management system developed by iuveno. It is based on DBObjects and implements a nice set of features with some unique design ideas. But see yourself... 3. ZQuest - ZQuest was originally written for a university as testing tool and is now also developed by iuveno AG. It has a good set of features, especially for scientific questions. ZQuest uses DBObjects of course. If you are interested, click on the link above ... 4. CMS - Our Content Management System is coming soon with a true user-friendly management interface... ALL THESE PRODUCTS ARE OPEN SOURCE!!! Please feel free to contact me any time via E-mail ([EMAIL PROTECTED] or [EMAIL PROTECTED]) or via phone at +1-901-230-ZOPE (9673). I hope you enjoy! Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management ___ 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] BTrees Documentation avaliable ??
Is documentation for the new BTrees available ?? thanks Ulrich Eck ___ 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] MySQL-python-0.3.5 with ZMySQLDAMike
Mike, Is your Zope one of the standard installs or did you build it yourself? If it's one of the standard installs then it was built with Python 1.5.2. This means that your build of _mysql.pyd won't work with Zope as it was built with Python2.0. You will need to get Python 1.5.2 and rebuild _mysql.pyd. At least that's my take on it. Phil [EMAIL PROTECTED] - Original Message - From: "Mike Blake" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 10:20 AM Subject: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike > Hello! > > There are two copies of the _mysql.pyd file on my disk: > > the one I built yesterday is here >C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 > > and there's another one here that I didn't know about here: >C:\Python20 > I'm not sure where that one came from... > > Anyway, I took the _mysql.pyd from >C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 > > and tried putting it in bin/lib > > But then when I tried to startup zope, it died. No error messages. > It just tried to start and then died (on win, this is a console > window that opens and closes itself) > > I then tried putting it in >C:\zopes\chikoon\lib\python\Products\ZMySQLDA > but had the same results. > > Sorry to continue with the saga, but at least there's no > copy in html this time! I apologize to everyone for that... > > bye! > mike blake > > > phil wrote: > > RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike, > > You need to put the file _mysql.pyd into your PYTHONPATH. > > Try putting it into the same folder as the ZMySQLDA or into > > bin/lib. Either should work OK. > > mike wrote: > >> Ok, I installed Microsoft Visual C++ from Studio 6, and > >> after I did a successful build and install of the > >> setup.py file for the MySQL-python-0.3.5 > >> I installed it in a folder in my python directory: > >> C:\Python20\win32comext\MySQL-python-0.3.5 > > >> the error reads as follows: > >> Traceback (innermost last): > >> File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products > >>(Object: string) > >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ? > >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ? > >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ? > >> ImportError: No module named _mysql > > -- > [[EMAIL PROTECTED] chikoon]$ whoami > Mike Blake > > ___ > 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] Trouble with ZODB when switching between Zope-releases with Python 1.5 and Python2.0
hi out there, I recently tried Zope-2.3.1b3 with Python 2.0 and it worked so far ... except some of the known issues at compile time .. I had trouble with a few products including ParsedXML so I switched back to Python 1.5.2 and updated to Zope-2.3.1 I did not replace my Data.fs. Everything works fine .. except when i want to browse one of my test-directories where I have many Instances of different Products I get this Error: --- ZopeERROR Error Type: UnpicklingError Error Value: invalid load key, 'X'. --- Traceback (innermost last): File /usr/share/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/share/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/share/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/share/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_main) File /usr/share/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_main) File /usr/share/Zope-2.3.1/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage_main) File /usr/share/Zope-2.3.1/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: manage_main) File /usr/share/Zope-2.3.1/lib/python/App/special_dtml.py, line 236, in _exec (Object: manage_main) File /usr/share/Zope-2.3.1/lib/python/DocumentTemplate/DT_In.py, line 666, in renderwob (Object: objectItems) File /usr/share/Zope-2.3.1/lib/python/DocumentTemplate/DT_In.py, line 761, in sort_sequence (Object: objectItems) File /usr/share/Zope-2.3.1/lib/python/ZODB/Connection.py, line 533, in setstate UnpicklingError: (see above) --- and stderr says: 2001-04-05T09:35:45 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\001\034\377' Traceback (innermost last): File /usr/share/Zope-2.3.1/lib/python/ZODB/Connection.py, line 533, in setstate UnpicklingError: invalid load key, 'X'. --- It seems, that there is one Instance in a undefined state which is probably caused by the differences in pickling between Python 1.5 and 2.0. Is there a way to find out which object causes this error and delete it thanks for your help Ulrich Eck net-labs ___ 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] MySQL-python-0.3.5 with ZMySQLDAMike
Hello! There are two copies of the _mysql.pyd file on my disk: the one I built yesterday is here C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 and there's another one here that I didn't know about here: C:\Python20 I'm not sure where that one came from... Anyway, I took the _mysql.pyd from C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 and tried putting it in bin/lib But then when I tried to startup zope, it died. No error messages. It just tried to start and then died (on win, this is a console window that opens and closes itself) I then tried putting it in C:\zopes\chikoon\lib\python\Products\ZMySQLDA but had the same results. Sorry to continue with the saga, but at least there's no copy in html this time! I apologize to everyone for that... bye! mike blake phil wrote: > RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike, > You need to put the file _mysql.pyd into your PYTHONPATH. > Try putting it into the same folder as the ZMySQLDA or into > bin/lib. Either should work OK. mike wrote: >> Ok, I installed Microsoft Visual C++ from Studio 6, and >> after I did a successful build and install of the >> setup.py file for the MySQL-python-0.3.5 >> I installed it in a folder in my python directory: >> C:\Python20\win32comext\MySQL-python-0.3.5 >> the error reads as follows: >> Traceback (innermost last): >> File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products >>(Object: string) >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ? >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ? >> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ? >> ImportError: No module named _mysql -- [[EMAIL PROTECTED] chikoon]$ whoami Mike Blake ___ 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] 27 million objects.
Hi, Michael. Sorry for taking so long getting back to you. The programmer solving our problems with the post codes has solved it in a different way than what I would've done (his method is way superior), so we're not ending up adding all addresses as Zope Objects. Therefore, I don't have any benchmark tests available. We are going to transfer some 10GB of data at a later stage though (within a month), and that could result in some tests being done - if so, I'll send you an email. :-) ___ 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 )